bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public long getLastModified(){ return 0; }
public long getLastModified(){ return 0; }
35,458
public void actionPerformed(ActionEvent ev) { Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML.Attribute.TYPE); ...
public void actionPerformed(ActionEvent ev) { Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML.Attribute.TYPE); ...
35,461
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
protected Component createComponent() { Component comp = null; Element el = getElement(); AttributeSet atts = el.getAttributes(); Object tag = atts.getAttribute(StyleConstants.NameAttribute); Object model = atts.getAttribute(StyleConstants.ModelAttribute); if (tag.equals(HTML.Tag.INPUT)) { At...
35,462
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { String type = (String) atts.getAttribute(HTML.Attribute.TYPE); String value = (...
35,463
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
35,464
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
35,465
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
35,466
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
35,467
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
35,468
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
35,469
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
35,470
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
35,471
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
35,472
protected Component createComponent() { Component comp = null; Element el = getElement(); Object tag = el.getAttributes().getAttribute(StyleConstants.NameAttribute); if (tag.equals(HTML.Tag.INPUT)) { AttributeSet atts = el.getAttributes(); String type = (String) atts.getAttribute(HTML....
else if (tag == HTML.Tag.TEXTAREA) { JTextArea textArea = new JTextArea((Document) model); int rows = HTML.getIntegerAttributeValue(atts, HTML.Attribute.ROWS, 1); textArea.setRows(rows); int cols = HTML.getIntegerAttributeValue(atts, HTML.Attribute.COLS, 20); textArea.setColumns(cols); maxIsPreferred = true; comp = new...
35,473
public float getMaximumSpan(int axis) { // FIXME: The specs say that for some components the maximum span == the // preferred span of the component. This should be figured out and // implemented accordingly. float span; if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if ...
public float getMaximumSpan(int axis) { // FIXME: The specs say that for some components the maximum span == the // preferred span of the component. This should be figured out and // implemented accordingly. float span; if (axis == X_AXIS)span = getComponent().getMaximumSize().width; else if (axis == Y_AXIS)span = g...
35,474
public float getMaximumSpan(int axis) { // FIXME: The specs say that for some components the maximum span == the // preferred span of the component. This should be figured out and // implemented accordingly. float span; if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if ...
public float getMaximumSpan(int axis) { // FIXME: The specs say that for some components the maximum span == the // preferred span of the component. This should be figured out and // implemented accordingly. float span; if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if ...
35,475
public float getMaximumSpan(int axis) { // FIXME: The specs say that for some components the maximum span == the // preferred span of the component. This should be figured out and // implemented accordingly. float span; if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if ...
public float getMaximumSpan(int axis) { // FIXME: The specs say that for some components the maximum span == the // preferred span of the component. This should be figured out and // implemented accordingly. float span; if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if ...
35,476
protected void submitData(String data) { // FIXME: Implement this. }
SubmitThread submitThread = new SubmitThread(data); submitThread.start(); SubmitThread submitThread = new SubmitThread(data); submitThread.start(); protectedSubmitThread submitThread = new SubmitThread(data); submitThread.start(); voidSubmitThread submitThread = new SubmitThread(data); submitThread.start(); submitData(...
35,477
public Image getOffscreenBuffer(Component component, int proposedWidth, int proposedHeight) { Component root = SwingUtilities.getRoot(component); Image buffer = (Image) offscreenBuffers.get(root); if (buffer == null || buffer.getWidth(null) < proposedWidth ||...
public Image getOffscreenBuffer(Component component, int proposedWidth, int proposedHeight) { Component root = getRoot(component); Image buffer = (Image) offscreenBuffers.get(root); if (buffer == null || buffer.getWidth(null) < proposedWidth || buffer.getHeig...
35,478
public Rectangle getBounds() { return new Rectangle(this); }
public Rectangle getBounds() { return new Rectangle(this); }
35,479
public final boolean visit(Object object) { final int gcColor = helper.getObjectColor(object); if (gcColor == GC_WHITE) { final boolean finalized = helper.isFinalized(object); if (finalized) { // Already finalized, we can free it now currentHeap.free...
public final boolean visit(Object object) { final int gcColor = helper.getObjectColor(object); if (gcColor == GC_WHITE) { final boolean finalized = helper.isFinalized(object); if (finalized) { // Already finalized, we can free it now currentHeap.free...
35,480
public static byte[] getSeed(int numBytes) { byte[] tmp = new byte[numBytes]; new Random().nextBytes(tmp); return tmp; //return secureRandomSpi.engineGenerateSeed( numBytes ); }
public static byte[] getSeed(int numBytes) { byte[] tmp = new byte[numBytes]; generateSeed(tmp); return tmp; //return secureRandomSpi.engineGenerateSeed( numBytes ); }
35,482
public static byte[] getSeed(int numBytes) { byte[] tmp = new byte[numBytes]; new Random().nextBytes(tmp); return tmp; //return secureRandomSpi.engineGenerateSeed( numBytes ); }
publicstaticbyte[]getSeed(intnumBytes){byte[]tmp=newbyte[numBytes];newRandom().nextBytes(tmp);returntmp;//returnsecureRandomSpi.engineGenerateSeed(numBytes);}
35,483
public String getAccessibleName() { return null; // TODO }
public String getAccessibleName() { String result = super.getAccessibleName(); if (result == null) result = text; return result; // TODO }
35,490
public void setContentAreaFilled(boolean b) { if (contentAreaFilled == b) return; boolean old = contentAreaFilled; contentAreaFilled = b; firePropertyChange(CONTENT_AREA_FILLED_CHANGED_PROPERTY, old, b); // The JDK sets the opaque property to the value of the contentAreaFilled ...
public void setContentAreaFilled(boolean b) { if (contentAreaFilled == b) return; boolean old = contentAreaFilled; contentAreaFilled = b; firePropertyChange(CONTENT_AREA_FILLED_CHANGED_PROPERTY, old, b); // The JDK sets the opaque property to the value of the contentAreaFilled ...
35,511
public void setIconTextGap(int i) { if (iconTextGap == i) return; int old = iconTextGap; iconTextGap = i; fireStateChanged(); revalidate(); repaint(); }
public void setIconTextGap(int i) { if (iconTextGap == i) return; int old = iconTextGap; iconTextGap = i; firePropertyChange("iconTextGap", new Integer(old), new Integer(i)); revalidate(); repaint(); }
35,513
private Cache () { // If we didn't synchronize on this, then cache would be initialized // without holding a lock. Undefined behavior would occur if the // first thread to call get(int) was not the same as the one that // called the constructor. synchronized (this) { cac...
private Cache () { // If we didn't synchronize on this, then cache would be initialized // without holding a lock. Undefined behavior would occur if the // first thread to call get(int) was not the same as the one that // called the constructor. synchronized (this) { cac...
35,514
private Cache () { // If we didn't synchronize on this, then cache would be initialized // without holding a lock. Undefined behavior would occur if the // first thread to call get(int) was not the same as the one that // called the constructor. synchronized (this) { cac...
private Cache () { // If we didn't synchronize on this, then cache would be initialized // without holding a lock. Undefined behavior would occur if the // first thread to call get(int) was not the same as the one that // called the constructor. synchronized (this) { cac...
35,515
private synchronized CoderResult get (int length) { if (length <= 0) throw new IllegalArgumentException ("Non-positive length"); Integer len = new Integer (length); CoderResult cr = null; Object o; if ((o = cache.get (len)) != null) cr = (CoderResult) ((WeakReference) o).ge...
synchronized CoderResult get (int length) { if (length <= 0) throw new IllegalArgumentException ("Non-positive length"); Integer len = new Integer (length); CoderResult cr = null; Object o; if ((o = cache.get (len)) != null) cr = (CoderResult) ((WeakReference) o).get (); ...
35,516
private CoderResult (int type, int length) { this.type = type; this.length = length; }
CoderResult (int type, int length) { this.type = type; this.length = length; }
35,517
public void setImage(Image image) { this.image = Toolkit.getDefaultToolkit().createImage(image.getSource()); }
public void setImage(Image image) { loadImage(image); this.image = image; }
35,518
public void updateUI() { setUI((SliderUI) UIManager.getUI(this)); invalidate(); repaint(); }
public void updateUI() { setUI((SliderUI) UIManager.getUI(this)); invalidate(); repaint(); }
35,519
public final Object attach(Object obj) { Object old = attached; attached = obj; return old; }
public final synchronized Object attach(Object obj) { Object old = attached; attached = obj; return old; }
35,524
protected BeanContextEvent(BeanContext source) { super(source); }
protected BeanContextEvent(BeanContext source) { super(source); }
35,525
public ZipInputStream(InputStream in) { super(in, new Inflater(true)); }
public ZipInputStream(InputStream in) { super(in, new Inflater(true)); }
35,526
public int available() throws IOException { return entryAtEOF ? 0 : 1; }
public int available() throws IOException { return entryAtEOF ? 0 : 1; }
35,527
public void close() throws IOException { super.close(); crc = null; entry = null; entryAtEOF = true; }
public void close() throws IOException { super.close(); crc = null; entry = null; entryAtEOF = true; }
35,528
public void closeEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry == null) return; if (method == ZipOutputStream.DEFLATED) { if ((flags & 8) != 0) { /* We don't know how much we must skip, read until end. */ byte[] tmp = new byte[2048]; while (read(tmp)...
public void closeEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry == null) return; if (method == ZipOutputStream.DEFLATED) { if ((flags & 8) != 0) { /* We don't know how much we must skip, read until end. */ byte[] tmp = new byte[2048]; while (read(tmp)...
35,529
public void closeEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry == null) return; if (method == ZipOutputStream.DEFLATED) { if ((flags & 8) != 0) { /* We don't know how much we must skip, read until end. */ byte[] tmp = new byte[2048]; while (read(tmp)...
public void closeEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry == null) return; if (method == ZipOutputStream.DEFLATED) { if ((flags & 8) != 0) { /* We don't know how much we must skip, read until end. */ byte[] tmp = new byte[2048]; while (read(tmp)...
35,530
public void closeEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry == null) return; if (method == ZipOutputStream.DEFLATED) { if ((flags & 8) != 0) { /* We don't know how much we must skip, read until end. */ byte[] tmp = new byte[2048]; while (read(tmp)...
public void closeEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry == null) return; if (method == ZipOutputStream.DEFLATED) { if ((flags & 8) != 0) { /* We don't know how much we must skip, read until end. */ byte[] tmp = new byte[2048]; while (read(tmp)...
35,531
public void closeEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry == null) return; if (method == ZipOutputStream.DEFLATED) { if ((flags & 8) != 0) { /* We don't know how much we must skip, read until end. */ byte[] tmp = new byte[2048]; while (read(tmp)...
public void closeEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry == null) return; if (method == ZipOutputStream.DEFLATED) { if ((flags & 8) != 0) { /* We don't know how much we must skip, read until end. */ byte[] tmp = new byte[2048]; while (read(tmp)...
35,532
public void closeEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry == null) return; if (method == ZipOutputStream.DEFLATED) { if ((flags & 8) != 0) { /* We don't know how much we must skip, read until end. */ byte[] tmp = new byte[2048]; while (read(tmp)...
public void closeEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry == null) return; if (method == ZipOutputStream.DEFLATED) { if ((flags & 8) != 0) { /* We don't know how much we must skip, read until end. */ byte[] tmp = new byte[2048]; while (read(tmp)...
35,533
protected ZipEntry createZipEntry(String name) { return new ZipEntry(name); }
protected ZipEntry createZipEntry(String name) { return new ZipEntry(name); }
35,534
private void fillBuf() throws IOException { avail = len = in.read(buf, 0, buf.length); }
private void fillBuf() throws IOException { avail = len = in.read(buf, 0, buf.length); }
35,535
public ZipEntry getNextEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry != null) closeEntry(); int header = readLeInt(); if (header == CENSIG) { /* Central Header reached. */ close(); return null; } if (header != LOCSIG) throw new ZipException("Wrong Lo...
public ZipEntry getNextEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry != null) closeEntry(); int header = readLeInt(); if (header == CENSIG) { /* Central Header reached. */ close(); return null; } if (header != LOCSIG) throw new ZipException("Wrong Lo...
35,536
public ZipEntry getNextEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry != null) closeEntry(); int header = readLeInt(); if (header == CENSIG) { /* Central Header reached. */ close(); return null; } if (header != LOCSIG) throw new ZipException("Wrong Lo...
public ZipEntry getNextEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry != null) closeEntry(); int header = readLeInt(); if (header == CENSIG) { /* Central Header reached. */ close(); return null; } if (header != LOCSIG) throw new ZipException("Wrong Lo...
35,537
public ZipEntry getNextEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry != null) closeEntry(); int header = readLeInt(); if (header == CENSIG) { /* Central Header reached. */ close(); return null; } if (header != LOCSIG) throw new ZipException("Wrong Lo...
public ZipEntry getNextEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry != null) closeEntry(); int header = readLeInt(); if (header == CENSIG) { /* Central Header reached. */ close(); return null; } if (header != LOCSIG) throw new ZipException("Wrong Lo...
35,538
public ZipEntry getNextEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry != null) closeEntry(); int header = readLeInt(); if (header == CENSIG) { /* Central Header reached. */ close(); return null; } if (header != LOCSIG) throw new ZipException("Wrong Lo...
public ZipEntry getNextEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry != null) closeEntry(); int header = readLeInt(); if (header == CENSIG) { /* Central Header reached. */ close(); return null; } if (header != LOCSIG) throw new ZipException("Wrong Lo...
35,539
public ZipEntry getNextEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry != null) closeEntry(); int header = readLeInt(); if (header == CENSIG) { /* Central Header reached. */ close(); return null; } if (header != LOCSIG) throw new ZipException("Wrong Lo...
public ZipEntry getNextEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry != null) closeEntry(); int header = readLeInt(); if (header == CENSIG) { /* Central Header reached. */ close(); return null; } if (header != LOCSIG) throw new ZipException("Wrong Lo...
35,540
public ZipEntry getNextEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry != null) closeEntry(); int header = readLeInt(); if (header == CENSIG) { /* Central Header reached. */ close(); return null; } if (header != LOCSIG) throw new ZipException("Wrong Lo...
public ZipEntry getNextEntry() throws IOException { if (crc == null) throw new IOException("Stream closed."); if (entry != null) closeEntry(); int header = readLeInt(); if (header == CENSIG) { /* Central Header reached. */ close(); return null; } if (header != LOCSIG) throw new ZipException("Wrong Lo...
35,541
public int read() throws IOException { byte[] b = new byte[1]; if (read(b, 0, 1) <= 0) return -1; return b[0] & 0xff; }
public int read() throws IOException { byte[] b = new byte[1]; if (read(b, 0, 1) <= 0) return -1; return b[0] & 0xff; }
35,542
private int readBuf(byte[] out, int offset, int length) throws IOException { if (avail <= 0) { fillBuf(); if (avail <= 0) return -1; } if (length > avail) length = avail; System.arraycopy(buf, len - avail, out, offset, length); avail -= length; return length; }
private int readBuf(byte[] out, int offset, int length) throws IOException { if (avail <= 0) { fillBuf(); if (avail <= 0) return -1; } if (length > avail) length = avail; System.arraycopy(buf, len - avail, out, offset, length); avail -= length; return length; }
35,543
private void readDataDescr() throws IOException { if (readLeInt() != EXTSIG) throw new ZipException("Data descriptor signature not found"); entry.setCrc(readLeInt() & 0xffffffffL); csize = readLeInt(); size = readLeInt(); entry.setSize(size & 0xffffffffL); entry.setCompressedSize(csize & 0xffffffffL); }
private void readDataDescr() throws IOException { if (readLeInt() != EXTSIG) throw new ZipException("Data descriptor signature not found"); entry.setCrc(readLeInt() & 0xffffffffL); csize = readLeInt(); size = readLeInt(); entry.setSize(size & 0xffffffffL); entry.setCompressedSize(csize & 0xffffffffL); }
35,544
private void readFully(byte[] out) throws IOException { int off = 0; int len = out.length; while (len > 0) { int count = readBuf(out, off, len); if (count == -1) throw new EOFException(); off += count; len -= count; } }
private void readFully(byte[] out) throws IOException { int off = 0; int len = out.length; while (len > 0) { int count = readBuf(out, off, len); if (count == -1) throw new EOFException(); off += count; len -= count; } }
35,545
private void readFully(byte[] out) throws IOException { int off = 0; int len = out.length; while (len > 0) { int count = readBuf(out, off, len); if (count == -1) throw new EOFException(); off += count; len -= count; } }
private void readFully(byte[] out) throws IOException { int off = 0; int len = out.length; while (len > 0) { int count = readBuf(out, off, len); if (count == -1) throw new EOFException(); off += count; len -= count; } }
35,546
private final int readLeByte() throws IOException { if (avail <= 0) { fillBuf(); if (avail <= 0) throw new ZipException("EOF in header"); } return buf[len - avail--] & 0xff; }
private final int readLeByte() throws IOException { if (avail <= 0) { fillBuf(); if (avail <= 0) throw new ZipException("EOF in header"); } return buf[len - avail--] & 0xff; }
35,547
private final int readLeInt() throws IOException { return readLeShort() | (readLeShort() << 16); }
private final int readLeInt() throws IOException { return readLeShort() | (readLeShort() << 16); }
35,548
private final int readLeShort() throws IOException { return readLeByte() | (readLeByte() << 8); }
private final int readLeShort() throws IOException { return readLeByte() | (readLeByte() << 8); }
35,549
private void _doInitialization () throws TransportException { _group = new ThreadGroup ("JDWP threads"); // initialize transport ITransport transport = TransportFactory.newInstance (_properties); _connection = new JdwpConnection (_group, transport); _connection.initialize (); _connection.start (...
private void _doInitialization () throws TransportException { _group = new ThreadGroup ("JDWP threads"); // initialize transport ITransport transport = TransportFactory.newInstance (_properties); _connection = new JdwpConnection (_group, transport); _connection.initialize (); _connection.start (...
35,550
private void _enforceSuspendPolicy (byte suspendPolicy) throws JdwpException { switch (suspendPolicy) { case EventRequest.SUSPEND_NONE: // do nothing break; case EventRequest.SUSPEND_THREAD: VMVirtualMachine.suspendThread (this); break; case EventRequest.SUSPEND_ALL: VMVirtualMachine.suspen...
private void _enforceSuspendPolicy (byte suspendPolicy) throws JdwpException { switch (suspendPolicy) { case EventRequest.SUSPEND_NONE: // do nothing break; case EventRequest.SUSPEND_THREAD: VMVirtualMachine.suspendThread (this); break; case EventRequest.SUSPEND_ALL: VMVirtualMachine.suspen...
35,551
public final Class getCategory() { return Compression.class; }
public Class getCategory() { return Compression.class; }
35,552
public final String getName() { return "compression"; }
public String getName() { return "compression"; }
35,553
public void updateUI() { setUI((ColorChooserUI) UIManager.getUI(this)); revalidate(); } // updateUI()
public void updateUI() { setUI((ColorChooserUI) UIManager.getUI(this)); revalidate(); } // updateUI()
35,555
protected void changeState(int stateflag, boolean b) { int oldstate = stateMask; int newstate; if (b) newstate = oldstate | stateflag; else newstate = oldstate & ~stateflag; if (oldstate == newstate) return; if ((stateflag != SELECTED) && (stateflag != ENABLED) && (s...
protected void changeState(int stateflag, boolean b) { int oldstate = stateMask; int newstate; if (b) newstate = oldstate | stateflag; else newstate = oldstate & ~stateflag; if (oldstate == newstate) return; if ((stateflag != SELECTED) && (stateflag != ENABLED) && (s...
35,556
public void fireActionPerformed(ActionEvent e) { EventListener[] ll = listenerList.getListeners(ActionListener.class); for (int i = 0; i < ll.length; i++) ((ActionListener)ll[i]).actionPerformed(e); }
public void fireActionPerformed(ActionEvent e) { ActionListener[] ll = getActionListeners(); for (int i = 0; i < ll.length; i++) ((ActionListener)ll[i]).actionPerformed(e); }
35,557
public void fireActionPerformed(ActionEvent e) { EventListener[] ll = listenerList.getListeners(ActionListener.class); for (int i = 0; i < ll.length; i++) ((ActionListener)ll[i]).actionPerformed(e); }
public void fireActionPerformed(ActionEvent e) { EventListener[] ll = listenerList.getListeners(ActionListener.class); for (int i = 0; i < ll.length; i++) ll[i].actionPerformed(e); }
35,558
public void fireItemStateChanged(ItemEvent e) { EventListener[] ll = listenerList.getListeners(ItemListener.class); for (int i = 0; i < ll.length; i++) ((ItemListener)ll[i]).itemStateChanged(e); }
public void fireItemStateChanged(ItemEvent e) { ItemListener[] ll = getItemListeners(); for (int i = 0; i < ll.length; i++) ((ItemListener)ll[i]).itemStateChanged(e); }
35,559
public void fireItemStateChanged(ItemEvent e) { EventListener[] ll = listenerList.getListeners(ItemListener.class); for (int i = 0; i < ll.length; i++) ((ItemListener)ll[i]).itemStateChanged(e); }
public void fireItemStateChanged(ItemEvent e) { EventListener[] ll = listenerList.getListeners(ItemListener.class); for (int i = 0; i < ll.length; i++) ll[i].itemStateChanged(e); }
35,560
public void fireStateChanged(ChangeEvent e) { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(e); }
public void fireStateChanged() { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(e); }
35,561
public void fireStateChanged(ChangeEvent e) { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(e); }
public void fireStateChanged(ChangeEvent e) { ChangeListener[] ll = getChangeListeners(); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(e); }
35,562
public void fireStateChanged(ChangeEvent e) { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(e); }
public void fireStateChanged(ChangeEvent e) { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ll[i].stateChanged(changeEvent); }
35,563
public void setActionCommand(String s) { if (actionCommand != s) { actionCommand = s; fireStateChanged(changeEvent); } }
public void setActionCommand(String s) { if (actionCommand != s) { actionCommand = s; fireStateChanged(); } }
35,564
public void setGroup(ButtonGroup g) { if (group != g) { group = g; fireStateChanged(changeEvent); } }
public void setGroup(ButtonGroup g) { if (group != g) { group = g; fireStateChanged(); } }
35,565
public void setMnemonic(int key) { if (mnemonic != key) { mnemonic = key; fireStateChanged(changeEvent); } }
public void setMnemonic(int key) { if (mnemonic != key) { mnemonic = key; fireStateChanged(); } }
35,566
static private Icon currentIcon(AbstractButton b) { Icon i = b.getIcon(); ButtonModel model = b.getModel(); if (model.isPressed() && b.getPressedIcon() != null) i = b.getPressedIcon(); else if (model.isRollover()) { if (b.isSelected() && b.getRolloverSelectedIcon() != null) i = ...
private static Icon currentIcon(AbstractButton b) { Icon i = b.getIcon(); ButtonModel model = b.getModel(); if (model.isPressed() && b.getPressedIcon() != null) i = b.getPressedIcon(); else if (model.isRollover()) { if (b.isSelected() && b.getRolloverSelectedIcon() != null) i = ...
35,567
public GnuDHPublicKey(BigInteger q, BigInteger p, BigInteger g, BigInteger y) { super(q, p, g); this.y = y; }
public GnuDHPublicKey(BigInteger q, BigInteger p, BigInteger g, BigInteger y) { super(q, p, g); this.y = y; }
35,568
private void readSignatures() throws IOException { Map pkcs7Dsa = new HashMap(); Map pkcs7Rsa = new HashMap(); Map sigFiles = new HashMap(); // Phase 1: Read all signature files. These contain the user // certificates as well as the signatures themselves. for (Enumeration e = super.entries(); e.has...
void readSignatures() throws IOException { Map pkcs7Dsa = new HashMap(); Map pkcs7Rsa = new HashMap(); Map sigFiles = new HashMap(); // Phase 1: Read all signature files. These contain the user // certificates as well as the signatures themselves. for (Enumeration e = super.entries(); e.hasMoreElem...
35,569
public void installUI(final JComponent c) { super.installUI(c); c.setOpaque(true); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = getEditorKit(textComponent).createDefaultDocument(); textComponent.setDocument(doc); } installDefault...
public void installUI(final JComponent c) { super.installUI(c); textComponent = (JTextComponent) c; Document doc = textComponent.getDocument(); if (doc == null) { doc = getEditorKit(textComponent).createDefaultDocument(); textComponent.setDocument(doc); } installDefaults(); installList...
35,570
public void append(byte[] src, int srcOffset, int length) { if (next != null) { next.append(src, srcOffset, length); } else { final int dstOffset = start + size; setSize(size + length); System.arraycopy(src, srcOffset, data, dstOffset, length); } testBuffer(); }
public void append(byte[] src, int srcOffset, int length) { if (next != null) { next.append(src, srcOffset, length); } else { final int dstOffset = start + size; setSize(size + length); System.arraycopy(src, srcOffset, data, dstOffset, length); } testBuffer(); }
35,571
public void append(byte[] src, int srcOffset, int length) { if (next != null) { next.append(src, srcOffset, length); } else { final int dstOffset = start + size; setSize(size + length); System.arraycopy(src, srcOffset, data, dstOffset, length); } testBuffer(); }
public void append(byte[] src, int srcOffset, int length) { if (next != null) { next.append(src, srcOffset, length); } else { final int dstOffset = start + size; setSize(size + length); System.arraycopy(src, srcOffset, data, dstOffset, length); } testBuffer(); }
35,572
public void append(byte[] src, int srcOffset, int length) { if (next != null) { next.append(src, srcOffset, length); } else { final int dstOffset = start + size; setSize(size + length); System.arraycopy(src, srcOffset, data, dstOffset, length); } testBuffer(); }
public void append(byte[] src, int srcOffset, int length) { if (next != null) { next.append(src, srcOffset, length); } else { final int dstOffset = start + size; setSize(size + length); System.arraycopy(src, srcOffset, data, dstOffset, length); } testBuffer(); }
35,573
private static final void checkPermission() { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new ReflectPermission("suppressAccessChecks")); }
private static void checkPermission() { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new ReflectPermission("suppressAccessChecks")); }
35,574
BoxPainter(AttributeSet as) { Length l = (Length) as.getAttribute(CSS.Attribute.MARGIN_LEFT); if (l != null) leftInset = l.getValue(); l = (Length) as.getAttribute(CSS.Attribute.MARGIN_RIGHT); if (l != null) rightInset = l.getValue(); l = (Length) as.getAttribute(CSS.Attrib...
BoxPainter(AttributeSet as, StyleSheet ss) { Length l = (Length) as.getAttribute(CSS.Attribute.MARGIN_LEFT); if (l != null) leftInset = l.getValue(); l = (Length) as.getAttribute(CSS.Attribute.MARGIN_RIGHT); if (l != null) rightInset = l.getValue(); l = (Length) as.getAttri...
35,575
public void paint(Graphics g, float x, float y, float w, float h, View v) { // FIXME: Not implemented. }
int inX = (int) (x + leftInset); int inY = (int) (y + topInset); int inW = (int) (w - leftInset - rightInset); int inH = (int) (h - topInset - bottomInset); if (background != null) { g.setColor(background); g.fillRect(inX, inY, inW, inH); } if (border != null) { border.paintBorder(null, g, inX, inY, inW, inH); } int in...
35,578
public void declaration(String property, String value) { for (int i = 0; i < selector.length; i++) { CSSStyle style = (CSSStyle) css.get(selector[i]); if (style == null) { style = new CSSStyle(); css.put(selector[i], style); } ...
public void declaration(String property, String value) { for (int i = 0; i < selector.length; i++) { CSSStyle style = (CSSStyle) css.get(selector[i]); if (style == null) { style = new CSSStyle(); css.put(selector[i], style); } ...
35,579
public void declaration(String property, String value) { for (int i = 0; i < selector.length; i++) { CSSStyle style = (CSSStyle) css.get(selector[i]); if (style == null) { style = new CSSStyle(); css.put(selector[i], style); } ...
public void declaration(String property, String value){for (int i = 0; i < selector.length; i++){CSSStyle style = (CSSStyle) css.get(selector[i]);if (style == null){style = new CSSStyle();css.put(selector[i], style);}CSS.Attribute cssAtt = CSS.getAttribute(property);Object val = CSS.getValue(cssAtt, value);if (cssAtt !...
35,580
public void endStatement() { selector = null; }
public void endStatement() { for (int i = 0; i < styles.length; i++) css.add(styles[i]); styles = null; }
35,581
public void startStatement(String sel) { StringTokenizer tokens = new StringTokenizer(sel); selector = new String[tokens.countTokens()]; for (int index = 0; tokens.hasMoreTokens(); index++) selector[index] = tokens.nextToken(); }
public void startStatement(Selector[] sel) { StringTokenizer tokens = new StringTokenizer(sel); selector = new String[tokens.countTokens()]; for (int index = 0; tokens.hasMoreTokens(); index++) selector[index] = tokens.nextToken(); }
35,582
public void startStatement(String sel) { StringTokenizer tokens = new StringTokenizer(sel); selector = new String[tokens.countTokens()]; for (int index = 0; tokens.hasMoreTokens(); index++) selector[index] = tokens.nextToken(); }
public void startStatement(String sel) { StringTokenizer tokens = new StringTokenizer(sel); selector = new String[tokens.countTokens()]; for (int index = 0; tokens.hasMoreTokens(); index++) selector[index] = tokens.nextToken(); }
35,583
ListPainter(AttributeSet as) { this.as = as; }
ListPainter(AttributeSet as, StyleSheet ss) { this.as = as; }
35,584
ListPainter(AttributeSet as) { this.as = as; }
ListPainter(AttributeSet as) { attributes = as; styleSheet = ss; type = (String) as.getAttribute(CSS.Attribute.LIST_STYLE_TYPE); }
35,585
public void paint(Graphics g, float x, float y, float w, float h, View v, int item) { // FIXME: Not implemented. }
View itemView = v.getView(item); AttributeSet viewAtts = itemView.getAttributes(); Object tag = viewAtts.getAttribute(StyleConstants.NameAttribute); if (tag != null && tag == HTML.Tag.LI) { g.setColor(Color.BLACK); int centerX = (int) (x - 12); int centerY = -1; tmpRect.setBounds((int) x, (int) y, (int) w, (int)...
35,586
public void addRule(String rule) throws NotImplementedException { // FIXME: Implement. }
public void addRule(String rule) { // FIXME: Implement. }
35,588
public void addRule(String rule) throws NotImplementedException { // FIXME: Implement. }
CSSStyleSheetParserCallback cb = new CSSStyleSheetParserCallback(CSSStyle.PREC_AUTHOR_NORMAL); StringReader in = new StringReader(rule); CSSParser parser = new CSSParser(in, cb); try { parser.parse(); } catch (IOException ex) { } resolvedStyles.clear(); CSSStyleSheetParserCallback cb = new CSSStyleSheetParserCallba...
35,589
public void addStyleSheet(StyleSheet ss) { if (styleSheet == null) styleSheet = new StyleSheet[] {ss}; else System.arraycopy(new StyleSheet[] {ss}, 0, styleSheet, styleSheet.length, 1); }
public void addStyleSheet(StyleSheet ss) { if (styleSheet == null) styleSheet = new StyleSheet[] {ss}; else System.arraycopy(new StyleSheet[] {ss}, 0, styleSheet, styleSheet.length, 1); }
35,590
public BoxPainter getBoxPainter(AttributeSet a) { return new BoxPainter(a); }
public BoxPainter getBoxPainter(AttributeSet a) { return new BoxPainter(a, this); }
35,591
public Font getFont(AttributeSet a) { FontSize size = (FontSize) a.getAttribute(CSS.Attribute.FONT_SIZE); int realSize = 12; if (size != null) realSize = size.getValue(); // Decrement size for subscript and superscript. Object valign = a.getAttribute(CSS.Attribute.VERTICAL_ALIGN); if (valign !...
public Font getFont(AttributeSet a) { FontSize size = (FontSize) a.getAttribute(CSS.Attribute.FONT_SIZE); int realSize = 12; if (size != null) realSize = size.getValue(); // Decrement size for subscript and superscript. Object valign = a.getAttribute(CSS.Attribute.VERTICAL_ALIGN); if (valign !...
35,592
public ListPainter getListPainter(AttributeSet a) { return new ListPainter(a); }
public ListPainter getListPainter(AttributeSet a) { return new ListPainter(a, this); }
35,593
public Style getRule(HTML.Tag t, Element e) { // Create list of the element and all of its parents, starting // with the bottommost element. ArrayList path = new ArrayList(); Element el; AttributeSet atts; for (el = e; el != null; el = el.getParentElement()) path.add(el); // Create fully qu...
public Style getRule(HTML.Tag t, Element e) { // Create list of the element and all of its parents, starting // with the bottommost element. ArrayList path = new ArrayList(); Element el; AttributeSet atts; for (el = e; el != null; el = el.getParentElement()) path.add(el); // Create fully qu...
35,594
public Style getRule(HTML.Tag t, Element e) { // Create list of the element and all of its parents, starting // with the bottommost element. ArrayList path = new ArrayList(); Element el; AttributeSet atts; for (el = e; el != null; el = el.getParentElement()) path.add(el); // Create fully qu...
public Style getRule(HTML.Tag t, Element e) { // Create list of the element and all of its parents, starting // with the bottommost element. ArrayList path = new ArrayList(); Element el; AttributeSet atts; for (el = e; el != null; el = el.getParentElement()) path.add(el); // Create fully qu...
35,595