bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void visit_if_icmpne(int address) { addBranch(address); }
public void visit_if_icmpne(int address) { addBranch(address, true); }
23,571
public void visit_ifeq(int address) { addBranch(address); }
public void visit_ifeq(int address) { addBranch(address, true); }
23,572
public void visit_ifge(int address) { addBranch(address); }
public void visit_ifge(int address) { addBranch(address, true); }
23,573
public void visit_ifgt(int address) { addBranch(address); }
public void visit_ifgt(int address) { addBranch(address, true); }
23,574
public void visit_ifle(int address) { addBranch(address); }
public void visit_ifle(int address) { addBranch(address, true); }
23,575
public void visit_iflt(int address) { addBranch(address); }
public void visit_iflt(int address) { addBranch(address, true); }
23,576
public void visit_ifne(int address) { addBranch(address); }
public void visit_ifne(int address) { addBranch(address, true); }
23,577
public void visit_ifnonnull(int address) { addBranch(address); }
public void visit_ifnonnull(int address) { addBranch(address, true); }
23,578
public void visit_ifnull(int address) { addBranch(address); }
public void visit_ifnull(int address) { addBranch(address, true); }
23,579
public void visit_ireturn() { endBB(); nextIsSuccessor = false; }
public void visit_ireturn() { endBB(); nextIsSuccessor = false; }
23,580
public void visit_jsr(int address) { addBranch(address); }
public void visit_jsr(int address) { addBranch(address, false); }
23,581
public void visit_lookupswitch(int defValue, int[] matchValues, int[] addresses) { for (int i = 0; i < addresses.length; i++) { addBranch(addresses[i]); } addBranch(defValue); }
public void visit_lookupswitch(int defValue, int[] matchValues, int[] addresses) { for (int i = 0; i < addresses.length; i++) { addBranch(addresses[i], true); } addBranch(defValue); }
23,582
public void visit_lookupswitch(int defValue, int[] matchValues, int[] addresses) { for (int i = 0; i < addresses.length; i++) { addBranch(addresses[i]); } addBranch(defValue); }
public void visit_lookupswitch(int defValue, int[] matchValues, int[] addresses) { for (int i = 0; i < addresses.length; i++) { addBranch(addresses[i]); } addBranch(defValue, true); }
23,583
public void visit_lreturn() { endBB(); nextIsSuccessor = false; }
public void visit_lreturn() { endBB(); nextIsSuccessor = false; }
23,584
public void visit_ret(int index) { endBB(); nextIsSuccessor = false; }
public void visit_ret(int index) { endBB(); nextIsSuccessor = false; }
23,585
public void visit_return() { endBB(); nextIsSuccessor = false; }
public void visit_return() { endBB(); nextIsSuccessor = false; }
23,586
public void visit_tableswitch(int defValue, int lowValue, int highValue, int[] addresses) { for (int i = 0; i < addresses.length; i++) { addBranch(addresses[i]); } addBranch(defValue); }
public void visit_tableswitch(int defValue, int lowValue, int highValue, int[] addresses) { for (int i = 0; i < addresses.length; i++) { addBranch(addresses[i], true); } addBranch(defValue); }
23,587
public void visit_tableswitch(int defValue, int lowValue, int highValue, int[] addresses) { for (int i = 0; i < addresses.length; i++) { addBranch(addresses[i]); } addBranch(defValue); }
public void visit_tableswitch(int defValue, int lowValue, int highValue, int[] addresses) { for (int i = 0; i < addresses.length; i++) { addBranch(addresses[i]); } addBranch(defValue, true); }
23,588
public void parse(InputStream in) throws IOException { LineInputStream lin = (in instanceof LineInputStream) ? (LineInputStream) in : new LineInputStream(in); String name = null; StringBuffer value = new StringBuffer(); while (true) { String line = lin.readLine(); if (line ...
public void parse(InputStream in) throws IOException { LineInputStream lin = (in instanceof LineInputStream) ? (LineInputStream) in : new LineInputStream(in); String name = null; StringBuffer value = new StringBuffer(); while (true) { String line = lin.readLine(); if (line ...
23,589
public void parse(InputStream in) throws IOException { LineInputStream lin = (in instanceof LineInputStream) ? (LineInputStream) in : new LineInputStream(in); String name = null; StringBuffer value = new StringBuffer(); while (true) { String line = lin.readLine(); if (line ...
public void parse(InputStream in) throws IOException { LineInputStream lin = (in instanceof LineInputStream) ? (LineInputStream) in : new LineInputStream(in); String name = null; StringBuffer value = new StringBuffer(); while (true) { String line = lin.readLine(); if (line ...
23,590
protected AccessibleJCheckBoxMenuItem(JCheckBoxMenuItem component) { super(component); // TODO }
protected AccessibleJCheckBoxMenuItem() { super(component); // TODO }
23,591
protected AccessibleJCheckBoxMenuItem(JCheckBoxMenuItem component) { super(component); // TODO }
protected AccessibleJCheckBoxMenuItem(JCheckBoxMenuItem component) { // TODO }
23,592
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJCheckBoxMenuItem(this); return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJCheckBoxMenuItem(); return accessibleContext; }
23,593
public boolean isAnyLocalAddress() { byte[] anylocal = { 0, 0, 0, 0 }; return addr == anylocal; }
public boolean isAnyLocalAddress() { byte[] anylocal = { 0, 0, 0, 0 }; return addr == anylocal; }
23,594
public static void write(cdrBufOutput output, Throwable t) { t.fillInStackTrace(); output.write_Value(t); }
public static void write(BufferedCdrOutput output, Throwable t) { t.fillInStackTrace(); output.write_Value(t); }
23,595
public PartialInputStream(RandomAccessFile raf, long start, long len) { this.raf = raf; filepos = start; end = start + len; }
public PartialInputStream(RandomAccessFile raf, int bufferSize) throws IOException { this.raf = raf; filepos = start; end = start + len; }
23,596
public PartialInputStream(RandomAccessFile raf, long start, long len) { this.raf = raf; filepos = start; end = start + len; }
public PartialInputStream(RandomAccessFile raf, long start, long len) { this.raf = raf; filepos = start; end = start + len; }
23,597
public int available() { long amount = end - filepos; if (amount > Integer.MAX_VALUE) return Integer.MAX_VALUE; return (int) amount; }
public int available() { long amount = end - (bufferOffset + pos); if (amount > Integer.MAX_VALUE) return Integer.MAX_VALUE; return (int) amount; }
23,598
public int read() throws IOException { if (filepos == end) return -1; synchronized (raf) { raf.seek(filepos++); return raf.read(); } }
public int read() throws IOException { if (bufferOffset + pos >= end) return -1; synchronized (raf) { raf.seek(filepos++); return raf.read(); } }
23,599
public int read() throws IOException { if (filepos == end) return -1; synchronized (raf) { raf.seek(filepos++); return raf.read(); } }
public int read() throws IOException { if (filepos == end) return -1; if (pos == buffer.length) { raf.seek(filepos++); return raf.read(); } }
23,600
public int read() throws IOException { if (filepos == end) return -1; synchronized (raf) { raf.seek(filepos++); return raf.read(); } }
public int read() throws IOException { if (filepos == end) return -1; synchronized (raf) { raf.seek(filepos++); return raf.read(); } }
23,601
public long skip(long amount) { if (amount < 0) throw new IllegalArgumentException(); if (amount > end - filepos) amount = end - filepos; filepos += amount; return amount; }
public long skip(long amount) throws IOException { if (amount < 0) throw new IllegalArgumentException(); if (amount > end - filepos) amount = end - filepos; filepos += amount; return amount; }
23,603
public long skip(long amount) { if (amount < 0) throw new IllegalArgumentException(); if (amount > end - filepos) amount = end - filepos; filepos += amount; return amount; }
public long skip(long amount) { if (amount < 0) throw new IllegalArgumentException(); if (amount > end - filepos) amount = end - filepos; filepos += amount; return amount; }
23,604
private void checkZipFile() throws IOException, ZipException { byte[] magicBuf = new byte[4]; boolean validRead = true; try { raf.readFully(magicBuf); } catch (EOFException eof) { validRead = false; } if (validRead == false || readLeInt(magicBuf, 0) != LOCSIG) { raf.close(...
private void checkZipFile() throws ZipException { byte[] magicBuf = new byte[4]; boolean validRead = true; try { raf.readFully(magicBuf); } catch (EOFException eof) { validRead = false; } if (validRead == false || readLeInt(magicBuf, 0) != LOCSIG) { raf.close(); throw new ...
23,605
private void checkZipFile() throws IOException, ZipException { byte[] magicBuf = new byte[4]; boolean validRead = true; try { raf.readFully(magicBuf); } catch (EOFException eof) { validRead = false; } if (validRead == false || readLeInt(magicBuf, 0) != LOCSIG) { raf.close(...
private void checkZipFile() throws IOException, ZipException { byte[] magicBuf = new byte[4]; boolean validRead = true; try { raf.readFully(magicBuf); } catch (EOFException eof) { validRead = false; } if (validRead == false || readLeInt(magicBuf, 0) != LOCSIG) { raf.close(...
23,606
private void checkZipFile() throws IOException, ZipException { byte[] magicBuf = new byte[4]; boolean validRead = true; try { raf.readFully(magicBuf); } catch (EOFException eof) { validRead = false; } if (validRead == false || readLeInt(magicBuf, 0) != LOCSIG) { raf.close(...
private void checkZipFile() throws IOException, ZipException { byte[] magicBuf = new byte[4]; boolean validRead = true; try { byte[] buf = new byte[4]; raf.readFully(buf); int sig = buf[0] & 0xFF | ((buf[1] & 0xFF) << 8) | ((buf[2] & 0xFF) << 16) | ((buf[3] & 0xFF) << 24); valid = sig == LOCSIG; ...
23,607
private void checkZipFile() throws IOException, ZipException { byte[] magicBuf = new byte[4]; boolean validRead = true; try { raf.readFully(magicBuf); } catch (EOFException eof) { validRead = false; } if (validRead == false || readLeInt(magicBuf, 0) != LOCSIG) { raf.close(...
private void checkZipFile() throws IOException, ZipException { byte[] magicBuf = new byte[4]; boolean validRead = true; try { raf.readFully(magicBuf); } catch (IOException _) { validRead = false; } if (validRead == false || readLeInt(magicBuf, 0) != LOCSIG) { raf.close(); ...
23,608
private void checkZipFile() throws IOException, ZipException { byte[] magicBuf = new byte[4]; boolean validRead = true; try { raf.readFully(magicBuf); } catch (EOFException eof) { validRead = false; } if (validRead == false || readLeInt(magicBuf, 0) != LOCSIG) { raf.close(...
private void checkZipFile() throws IOException, ZipException { byte[] magicBuf = new byte[4]; boolean validRead = true; try { raf.readFully(magicBuf); } catch (EOFException eof) { } if (validRead == false || readLeInt(magicBuf, 0) != LOCSIG) { raf.close(); throw new ZipEx...
23,609
private void checkZipFile() throws IOException, ZipException { byte[] magicBuf = new byte[4]; boolean validRead = true; try { raf.readFully(magicBuf); } catch (EOFException eof) { validRead = false; } if (validRead == false || readLeInt(magicBuf, 0) != LOCSIG) { raf.close(...
private void checkZipFile() throws IOException, ZipException { byte[] magicBuf = new byte[4]; boolean validRead = true; try { raf.readFully(magicBuf); } catch (EOFException eof) { validRead = false; } if (!valid) { try { raf.close(); throw new ZipException("Not a valid zip...
23,610
public InputStream getInputStream(ZipEntry entry) throws IOException { checkClosed(); HashMap entries = getEntries(); String name = entry.getName(); ZipEntry zipEntry = (ZipEntry) entries.get(name); if (zipEntry == null) return null; long start = checkLocalHeader(zipEntry); int method = zipEntry.getMet...
public InputStream getInputStream(ZipEntry entry) throws IOException { checkClosed(); HashMap entries = getEntries(); String name = entry.getName(); ZipEntry zipEntry = (ZipEntry) entries.get(name); if (zipEntry == null) return null; PartialInputStream inp = new PartialInputStream(raf, 1024); inp.seek(z...
23,612
public InputStream getInputStream(ZipEntry entry) throws IOException { checkClosed(); HashMap entries = getEntries(); String name = entry.getName(); ZipEntry zipEntry = (ZipEntry) entries.get(name); if (zipEntry == null) return null; long start = checkLocalHeader(zipEntry); int method = zipEntry.getMet...
public InputStream getInputStream(ZipEntry entry) throws IOException { checkClosed(); HashMap entries = getEntries(); String name = entry.getName(); ZipEntry zipEntry = (ZipEntry) entries.get(name); if (zipEntry == null) return null; long start = checkLocalHeader(zipEntry); int method = zipEntry.getMet...
23,613
public InputStream getInputStream(ZipEntry entry) throws IOException { checkClosed(); HashMap entries = getEntries(); String name = entry.getName(); ZipEntry zipEntry = (ZipEntry) entries.get(name); if (zipEntry == null) return null; long start = checkLocalHeader(zipEntry); int method = zipEntry.getMet...
public InputStream getInputStream(ZipEntry entry) throws IOException { checkClosed(); HashMap entries = getEntries(); String name = entry.getName(); ZipEntry zipEntry = (ZipEntry) entries.get(name); if (zipEntry == null) return null; long start = checkLocalHeader(zipEntry); int method = zipEntry.getMet...
23,614
public InputStream getInputStream(ZipEntry entry) throws IOException { checkClosed(); HashMap entries = getEntries(); String name = entry.getName(); ZipEntry zipEntry = (ZipEntry) entries.get(name); if (zipEntry == null) return null; long start = checkLocalHeader(zipEntry); int method = zipEntry.getMet...
public InputStream getInputStream(ZipEntry entry) throws IOException { checkClosed(); HashMap entries = getEntries(); String name = entry.getName(); ZipEntry zipEntry = (ZipEntry) entries.get(name); if (zipEntry == null) return null; long start = checkLocalHeader(zipEntry); int method = zipEntry.getMet...
23,615
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
23,616
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; long...
23,617
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
23,618
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
23,619
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
23,620
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
23,621
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
23,622
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
23,623
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
23,624
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
23,625
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
23,626
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
23,627
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
23,628
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
private void readEntries() throws ZipException, IOException { /* Search for the End Of Central Directory. When a zip comment is * present the directory may start earlier. * FIXME: This searches the whole file in a very slow manner if the * file isn't a zip file. */ long pos = raf.length() - ENDHDR; byte...
23,629
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); angExtDeg = a.getAngleExtent(); startAngRad = a.getAngleStart() * (Math.PI / 180); extentAngRad = angExtDeg * (Math.PI / 180); type = a.getArcType(); double e = extent...
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); angExtDeg = a.getAngleExtent(); startAngRad = a.getAngleStart() * (Math.PI / 180); extentAngRad = angExtDeg * (Math.PI / 180); type = a.getArcType(); double e = extent...
23,630
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); angExtDeg = a.getAngleExtent(); startAngRad = a.getAngleStart() * (Math.PI / 180); extentAngRad = angExtDeg * (Math.PI / 180); type = a.getArcType(); double e = extent...
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); angExtDeg = a.getAngleExtent(); startAngRad = a.getAngleStart() * (Math.PI / 180); extentAngRad = angExtDeg * (Math.PI / 180); type = a.getArcType(); double e = extent...
23,631
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); angExtDeg = a.getAngleExtent(); startAngRad = a.getAngleStart() * (Math.PI / 180); extentAngRad = angExtDeg * (Math.PI / 180); type = a.getArcType(); double e = extent...
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); angExtDeg = a.getAngleExtent(); startAngRad = a.getAngleStart() * (Math.PI / 180); extentAngRad = angExtDeg * (Math.PI / 180); type = a.getArcType(); double e = extent...
23,632
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); angExtDeg = a.getAngleExtent(); startAngRad = a.getAngleStart() * (Math.PI / 180); extentAngRad = angExtDeg * (Math.PI / 180); type = a.getArcType(); double e = extent...
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); angExtDeg = a.getAngleExtent(); startAngRad = a.getAngleStart() * (Math.PI / 180); extentAngRad = angExtDeg * (Math.PI / 180); type = a.getArcType(); double e = extent...
23,633
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); angExtDeg = a.getAngleExtent(); startAngRad = a.getAngleStart() * (Math.PI / 180); extentAngRad = angExtDeg * (Math.PI / 180); type = a.getArcType(); double e = extent...
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); angExtDeg = a.getAngleExtent(); startAngRad = a.getAngleStart() * (Math.PI / 180); extentAngRad = angExtDeg * (Math.PI / 180); type = a.getArcType(); double e = extent...
23,634
public int currentSegment(float[] coords) { if (current > limit) { throw new NoSuchElementException("arc iterator out of bounds"); } if (current == 0) { coords[0] = (float) (Math.cos(startAngRad) * w + x) / 2; coords[1] = (float) (Math.sin(startAngRad) * h + y) / 2; if (xform != null) { xform.tr...
public int currentSegment(float[] coords) { if (current > limit) { throw new NoSuchElementException("arc iterator out of bounds"); } if (current == 0) { coords[0] = (float) (Math.cos(startAngRad) * w + x) / 2; coords[1] = (float) (Math.sin(startAngRad) * h + y) / 2; if (xform != null) { xform.tr...
23,635
public boolean containsAngle(double a) { // XXX Implement. throw new Error("not implemented"); }
public boolean containsAngle(double a) { // XXX Implement. throw new Error("not implemented"); }
23,636
public Rectangle2D getBounds2D() { double extent = getAngleExtent(); if (Math.abs(extent) >= 360) return makeBounds(getX(), getY(), getWidth(), getHeight()); // XXX Finish implementing. throw new Error("not implemented"); }
public Rectangle2D getBounds2D() { double extent = getAngleExtent(); if (Math.abs(extent) >= 360) return makeBounds(getX(), getY(), getWidth(), getHeight()); // XXX Finish implementing. double rX = getWidth() / 2; double rY = getHeight() / 2; double centerX = getX() + rX; double centerY = getY() + rY; Point2D p...
23,637
public Point2D getEndPoint() { double angle = (getAngleStart() + getAngleExtent()) * (-180 / Math.PI); double x = (Math.cos(angle) * getWidth() + getX()) / 2; double y = (Math.sin(angle) * getHeight() + getY()) / 2; return new Point2D.Double(x, y); }
public Point2D getEndPoint() { double angle = (getAngleStart() + getAngleExtent()) * (-180 / Math.PI); double x = (Math.cos(angle) * getWidth() + getX()) / 2; double y = (Math.sin(angle) * getHeight() + getY()) / 2; return new Point2D.Double(x, y); }
23,638
public Point2D getStartPoint() { double angle = getAngleStart() * (-180 / Math.PI); double x = (Math.cos(angle) * getWidth() + getX()) / 2; double y = (Math.sin(angle) * getHeight() + getY()) / 2; return new Point2D.Double(x, y); }
public Point2D getStartPoint() { double angle = getAngleStart() * (-180 / Math.PI); double x = (Math.cos(angle) * getWidth() + getX()) / 2; double y = (Math.sin(angle) * getHeight() + getY()) / 2; return new Point2D.Double(x, y); }
23,639
public void setAngles(double x1, double y1, double x2, double y2) { // Normalize the points. double mx = getX(); double my = getY(); double mw = getWidth(); double mh = getHeight(); x1 = ((x1 * 2) - mx) / mw; y1 = ((y1 * 2) - my) / mh; x2 = ((x2 * 2) - mx) / mw; y2 = ((y2 * 2) - my) / mh; double start = Math...
public void setAngles(double x1, double y1, double x2, double y2) { // Normalize the points. double mx = getX(); double my = getY(); double mw = getWidth(); double mh = getHeight(); x1 = ((x1 * 2) - mx) / mw; y1 = ((y1 * 2) - my) / mh; x2 = ((x2 * 2) - mx) / mw; y2 = ((y2 * 2) - my) / mh; double start = Math...
23,640
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur...
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current = 0; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int...
23,641
protected JButton createLeftOneTouchButton() { int dir = SwingConstants.WEST; if (orientation == JSplitPane.VERTICAL_SPLIT) dir = SwingConstants.NORTH; JButton button = new BasicArrowButton(dir); button.setBorderPainted(false); return button; }
protected JButton createLeftOneTouchButton() { int dir = SwingConstants.WEST; if (orientation == JSplitPane.VERTICAL_SPLIT) dir = SwingConstants.NORTH; JButton button = new BasicArrowButton(dir); button.setBorder(null); return button; }
23,642
protected JButton createRightOneTouchButton() { int dir = SwingConstants.EAST; if (orientation == JSplitPane.VERTICAL_SPLIT) dir = SwingConstants.SOUTH; JButton button = new BasicArrowButton(dir); button.setBorderPainted(false); return button; }
protected JButton createRightOneTouchButton() { int dir = SwingConstants.EAST; if (orientation == JSplitPane.VERTICAL_SPLIT) dir = SwingConstants.SOUTH; JButton button = new BasicArrowButton(dir); button.setBorder(null); return button; }
23,643
protected URLConnection openConnection(URL url) throws IOException { return (new gnu.java.net.protocol.file.FileURLConnection(url)); }
protected URLConnection openConnection(URL url) throws IOException { return (new gnu.java.net.protocol.file.FileURLConnection(url)); }
23,644
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
23,645
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
23,646
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
23,647
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
23,648
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
23,649
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
23,650
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
23,651
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
23,652
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
23,653
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i...
23,654
protected String toExternalForm(URL url) { StringBuffer sb = new StringBuffer(PlatformHelper.INITIAL_MAX_PATH); sb.append("file:"); String prefix = url.getHost(); if (prefix != null && prefix.length() > 0) { sb.append(prefix); int port = url.getPort(); if (port > 0) { sb.append(':'); sb.append(port); ...
protected String toExternalForm(URL url) { StringBuffer sb = new StringBuffer(PlatformHelper.INITIAL_MAX_PATH); sb.append("file:"); String prefix = url.getHost(); if (prefix != null && prefix.length() > 0) { sb.append(prefix); int port = url.getPort(); if (port > 0) { sb.append(':'); sb.append(port); ...
23,655
protected String toExternalForm(URL url) { StringBuffer sb = new StringBuffer(PlatformHelper.INITIAL_MAX_PATH); sb.append("file:"); String prefix = url.getHost(); if (prefix != null && prefix.length() > 0) { sb.append(prefix); int port = url.getPort(); if (port > 0) { sb.append(':'); sb.append(port); ...
protected String toExternalForm(URL url) { StringBuffer sb = new StringBuffer(PlatformHelper.INITIAL_MAX_PATH); sb.append("file:"); String prefix = url.getHost(); if (prefix != null && prefix.length() > 0) { sb.append(prefix); int port = url.getPort(); if (port > 0) { sb.append(':'); sb.append(port); ...
23,656
public void setArgumentVariables(Variable<T>[] vars, int nArgs) { displacement = 0; for (int i = 0; i < nArgs; i += 1) { // TODO this might not be right, check with Ewout displacement = vars[i].getIndex() * 4; vars[i].setLocation(new StackLocation(displacement)); ...
public void setArgumentVariables(Variable<T>[] vars, int nArgs) { displacement = 0; for (int i = 0; i < nArgs; i += 1) { // TODO this might not be right, check with Ewout displacement = vars[i].getIndex() * 4; vars[i].setLocation(new StackLocation<T>(displacement)); ...
23,657
public int getAssignAddress() { if (assignQuad == null) { return 0; } // Add one so this live range starts just after this operation. // This way live range interference computation is simplified. return this.assignQuad.getLHSLiveAddress(); }
public int getAssignAddress() { if (assignQuad == null) { return 0; } // Add one so this live range starts just after this operation. // This way live range interference computation is simplified. return assignQuad.getLHSLiveAddress(); }
23,658
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (! (keySpec instanceof PKCS8EncodedKeySpec)) throw new InvalidKeySpecException("only supports PKCS8 key specs"); byte[] input = ((PKCS8EncodedKeySpec) keySpec).getEncoded(); // try DSS try { ...
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (! (keySpec instanceof PKCS8EncodedKeySpec)) throw new InvalidKeySpecException("Unsupported key specification"); byte[] input = ((PKCS8EncodedKeySpec) keySpec).getEncoded(); // try DSS try { ...
23,659
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (! (keySpec instanceof PKCS8EncodedKeySpec)) throw new InvalidKeySpecException("only supports PKCS8 key specs"); byte[] input = ((PKCS8EncodedKeySpec) keySpec).getEncoded(); // try DSS try { ...
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (! (keySpec instanceof PKCS8EncodedKeySpec)) throw new InvalidKeySpecException("only supports PKCS8 key specs"); byte[] input = ((PKCS8EncodedKeySpec) keySpec).getEncoded(); // try DSS try { ...
23,660
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (! (keySpec instanceof X509EncodedKeySpec)) throw new InvalidKeySpecException("only supports X.509 key specs"); byte[] input = ((X509EncodedKeySpec) keySpec).getEncoded(); // try DSS try { ...
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (! (keySpec instanceof X509EncodedKeySpec)) throw new InvalidKeySpecException("Unsupported key specification"); byte[] input = ((X509EncodedKeySpec) keySpec).getEncoded(); // try DSS try { ...
23,661
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (! (keySpec instanceof X509EncodedKeySpec)) throw new InvalidKeySpecException("only supports X.509 key specs"); byte[] input = ((X509EncodedKeySpec) keySpec).getEncoded(); // try DSS try { ...
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (! (keySpec instanceof X509EncodedKeySpec)) throw new InvalidKeySpecException("only supports X.509 key specs"); byte[] input = ((X509EncodedKeySpec) keySpec).getEncoded(); // try DSS try { ...
23,662
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[StyleContext.SmallattributeSet:"); for (int i = 0; i < attrs.length; ++i) { sb.append(" ("); sb.append(attrs[i].toString()); sb.append("="); sb.append(attrs[i+1].toString()); ...
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[StyleContext.SmallattributeSet:"); for (int i = 0; i < attrs.length - 1; ++i) { sb.append(" ("); sb.append(attrs[i].toString()); sb.append("="); sb.append(attrs[i+1].toString());...
23,663
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { consumer.setPixels(x, y, w, h, model, pixels, offset, scansize); }
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { Rectangle filterBounds = new Rectangle(this.x, this.y, this.width, this.height); Rectangle pixelBounds = new Rectangle(x, y, w, h); if (filterBounds.intersects(pixelBounds)) { Rectangle bounds = fi...
23,664
public void addVetoableChangeListener(String name, VetoableChangeListener l) { if (l != null) vetoableChangeSupport.addVetoableChangeListener(name, l); }
public void addVetoableChangeListener(VetoableChangeListener l) { if (l != null) vetoableChangeSupport.addVetoableChangeListener(name, l); }
23,666
public void addVetoableChangeListener(String name, VetoableChangeListener l) { if (l != null) vetoableChangeSupport.addVetoableChangeListener(name, l); }
public void addVetoableChangeListener(String name, VetoableChangeListener l) { if (l != null) vetoableChangeSupport.addVetoableChangeListener(l); }
23,667
public void clearGlobalFocusOwner() { // XXX Is this enough? setGlobalFocusOwner(null); }
public void clearGlobalFocusOwner () { synchronized (currentFocusOwners) { Component focusOwner = getGlobalFocusOwner (); Component permanentFocusOwner = getGlobalPermanentFocusOwner (); setGlobalFocusOwner (null); setGlobalPermanentFocusOwner (null); if (focusOwner != null) { // XXX Is this enough? setGlo...
23,668
public void clearGlobalFocusOwner() { // XXX Is this enough? setGlobalFocusOwner(null); }
public void clearGlobalFocusOwner() { // XXX Is this enough? EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue (); if (focusOwner != permanentFocusOwner) q.postEvent (new FocusEvent (focusOwner, FocusEvent.FOCUS_LOST, true)); else q.postEvent (new FocusEvent (focusOwner, FocusEvent.FOCUS_LOST, fa...
23,669
public Container getCurrentFocusCycleRoot() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalCurrentFocusCycleRoot(); } catch (SecurityException e) { retu...
public Container getCurrentFocusCycleRoot() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalCurrentFocusCycleRoot(); } catch (SecurityException e) { retu...
23,671
public Container getCurrentFocusCycleRoot() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalCurrentFocusCycleRoot(); } catch (SecurityException e) { retu...
public Container getCurrentFocusCycleRoot() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalCurrentFocusCycleRoot(); } catch (SecurityException e) { retu...
23,672
public Component getPermanentFocusOwner() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalPermanentFocusOwner(); } catch (SecurityException e) { return n...
public Component getPermanentFocusOwner() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalPermanentFocusOwner(); } catch (SecurityException e) { return n...
23,673
public void reshape(int x, int y, int width, int height) { super.reshape(x, y, width, height); //TODO fix it /* if (awtFrame.isVisible()) { Point p = awtFrame.getLocationOnScreen(); Insets ins = swingPeer.getInsets(); awtFr...
public void reshape(int x, int y, int width, int height) { super.reshape(x, y, width, height); //TODO fix it /* if (awtFrame.isVisible()) { Point p = awtFrame.getLocationOnScreen(); Insets ins = swingPeer.getInsets(); awtFr...
23,674