bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
private static final int[] euclidInv(int a, int b, int prevDiv) { if (b == 0) throw new ArithmeticException("not invertible"); if (b == 1) // Success: values are indeed invertible! // Bottom of the recursion reached; start unwinding. return new int[] { -prevDiv, 1 }; int[] xy = euclidInv(b, a % b, a /...
private static int[] euclidInv(int a, int b, int prevDiv) { if (b == 0) throw new ArithmeticException("not invertible"); if (b == 1) // Success: values are indeed invertible! // Bottom of the recursion reached; start unwinding. return new int[] { -prevDiv, 1 }; int[] xy = euclidInv(b, a % b, a / b); /...
20,044
private static final int gcd(int a, int b) { // Euclid's algorithm, copied from libg++. int tmp; if (b > a) { tmp = a; a = b; b = tmp; } for(;;) { if (b == 0) return a; if (b == 1) return b; tmp = b; b = a % b; a = tmp; } }
private static int gcd(int a, int b) { // Euclid's algorithm, copied from libg++. int tmp; if (b > a) { tmp = a; a = b; b = tmp; } for(;;) { if (b == 0) return a; if (b == 1) return b; tmp = b; b = a % b; a = tmp; } }
20,045
private final boolean isNegative() { return (words == null ? ival : words[ival - 1]) < 0; }
private boolean isNegative() { return (words == null ? ival : words[ival - 1]) < 0; }
20,046
private final boolean isOne() { return words == null && ival == 1; }
private boolean isOne() { return words == null && ival == 1; }
20,047
private final boolean isZero() { return words == null && ival == 0; }
private boolean isZero() { return words == null && ival == 0; }
20,048
private final void set(long y) { int i = (int) y; if ((long) i == y) { ival = i; words = null; } else { realloc(2); words[0] = i; words[1] = (int) (y >> 32); ival = 2; } }
private void set(long y) { int i = (int) y; if ((long) i == y) { ival = i; words = null; } else { realloc(2); words[0] = i; words[1] = (int) (y >> 32); ival = 2; } }
20,049
private static final BigInteger times(BigInteger x, int y) { if (y == 0) return ZERO; if (y == 1) return x; int[] xwords = x.words; int xlen = x.ival; if (xwords == null) return valueOf((long) xlen * (long) y); boolean negative; BigInteger result = BigInteger.alloc(xlen + 1); i...
private static BigInteger times(BigInteger x, int y) { if (y == 0) return ZERO; if (y == 1) return x; int[] xwords = x.words; int xlen = x.ival; if (xwords == null) return valueOf((long) xlen * (long) y); boolean negative; BigInteger result = BigInteger.alloc(xlen + 1); if (xwo...
20,050
private NumericShaper (int ranges, int context) { this.ranges = ranges; this.context = context; }
private NumericShaper (int key, int mask) { this.ranges = ranges; this.context = context; }
20,051
private NumericShaper (int ranges, int context) { this.ranges = ranges; this.context = context; }
private NumericShaper (int ranges, int context) { this.ranges = ranges; this.context = context; }
20,052
public boolean equals (Object obj) { if (! (obj instanceof NumericShaper)) return false; NumericShaper tmp = (NumericShaper) obj; return (ranges == tmp.ranges && context == tmp.context); }
public boolean equals (Object obj) { if (! (obj instanceof NumericShaper)) return false; NumericShaper tmp = (NumericShaper) obj; return (ranges == tmp.ranges && context == tmp.context); }
20,053
public static NumericShaper getContextualShaper (int ranges) { throw new Error ("not implemented"); }
public static NumericShaper getContextualShaper (int ranges) { if ((ranges & ~ALL_RANGES) != 0) throw new IllegalArgumentException("argument out of range"); return new NumericShaper(EUROPEAN, ranges); }
20,054
public int getRanges () { return ranges; }
public int getRanges () { return mask & ALL_RANGES; }
20,055
public static NumericShaper getShaper (int singleRange) { throw new Error ("not implemented"); }
public static NumericShaper getShaper (int singleRange) { if (Integer.bitCount(singleRange) != 1) throw new IllegalArgumentException("more than one bit set in argument"); if ((singleRange & ~ALL_RANGES) != 0) throw new IllegalArgumentException("argument out of range"); return new NumericShaper(singleRange, Intege...
20,056
public int hashCode () { throw new Error ("not implemented"); }
public int hashCode () { return key ^ mask; }
20,057
public boolean isContextual () { throw new Error ("not implemented"); }
public boolean isContextual () { return mask > 0; }
20,058
public void shape (char[] text, int start, int count) { shape (text, start, count, context); }
public void shape (char[] text, int start, int count) { shape (text, start, count, 1 << key); }
20,059
public String toString () { throw new Error ("not implemented"); }
public String toString () { return "key=" + key + "; mask=" + mask; }
20,060
void setPage(URL page) throws IOException { // Sets the current URL being displayed. }
void setPage(URL page) throws IOException { // Sets the current URL being displayed. }
20,061
public X509CRL(InputStream encoded) throws CRLException, IOException { super(); revokedCerts = new HashMap(); extensions = new HashMap(); critOids = new HashSet(); nonCritOids = new HashSet(); try { parse(encoded); } catch (IOException ioe) { ioe.printStackTrace(); ...
public X509CRL(InputStream encoded) throws CRLException, IOException { super(); revokedCerts = new HashMap(); extensions = new HashMap(); critOids = new HashSet(); nonCritOids = new HashSet(); try { parse(encoded); } catch (IOException ioe) { ioe.printStackTrace(); ...
20,062
public boolean equals(Object o) { return ((X509CRL) o).revokedCerts.equals(revokedCerts); }
public boolean equals(Object o) { if (!(o instanceof X509CRL)) return false; return ((X509CRL) o).getRevokedCertificates().equals(revokedCerts.values()); }
20,063
public Set getCriticalExtensionOIDs() { return Collections.unmodifiableSet(critOids); }
public Set getCriticalExtensionOIDs() { HashSet s = new HashSet(); for (Iterator it = extensions.values().iterator(); it.hasNext(); ) { Extension e = (Extension) it.next(); if (e.isCritical()) s.add(e.getOid().toString()); } return Collections.unmodifiableSet(s); }
20,064
public byte[] getExtensionValue(String oid) { byte[] ext = (byte[]) extensions.get(oid); if (ext != null) return (byte[]) ext.clone(); return null; }
public byte[] getExtensionValue(String oid) { byte[] ext = (byte[]) extensions.get(oid); if (ext != null) return (byte[]) ext.clone(); return null; }
20,065
public X500Principal getIssuerX500Principal() { return issuerDN; }
public X500Principal getIssuerX500Principal() { return new X500Principal(issuerDN.getDer()); }
20,066
public Set getNonCriticalExtensionOIDs() { return Collections.unmodifiableSet(nonCritOids); }
public Set getNonCriticalExtensionOIDs() { HashSet s = new HashSet(); for (Iterator it = extensions.values().iterator(); it.hasNext(); ) { Extension e = (Extension) it.next(); if (!e.isCritical()) s.add(e.getOid().toString()); } return Collections.unmodifiableSet(s); }
20,067
public X509CRLEntry getRevokedCertificate(BigInteger serialNo) { return (X509CRLEntry) revokedCerts.get(serialNo); }
public java.security.cert.X509CRLEntry getRevokedCertificate(BigInteger serialNo) { return (X509CRLEntry) revokedCerts.get(serialNo); }
20,068
public X509CRLEntry getRevokedCertificate(BigInteger serialNo) { return (X509CRLEntry) revokedCerts.get(serialNo); }
public X509CRLEntry getRevokedCertificate(BigInteger serialNo) { return (java.security.cert.X509CRLEntry) revokedCerts.get(serialNo); }
20,069
public boolean hasUnsupportedCriticalExtension() { return false; // XXX }
public boolean hasUnsupportedCriticalExtension() { for (Iterator it = extensions.values().iterator(); it.hasNext(); ) { Extension e = (Extension) it.next(); if (e.isCritical() && !e.isSupported()) return true; } return false; // XXX }
20,070
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingEx...
20,071
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new IOEx...
20,072
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
20,073
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
20,074
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
20,075
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
20,076
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue if (version < 2) throw new IOException("extra data in CRL"); DERValue exts = der.read(); if (!exts.isConstructed()) throw new IOException("malformed Extensions"); debug("start Extensions len == " + exts.getLength...
20,077
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
20,078
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
20,079
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue debug("read tag == " + val.getTag()); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); debug("read tag == " + val.getTag()); if (!...
20,080
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1...
20,081
public String toString() { return gnu.java.security.x509.X509CRL.class.getName(); }
public String toString() { return X509CRL.class.getName(); }
20,083
public boolean equals(Object other) { if( other instanceof X509CRL ) { try { X509CRL x = (X509CRL) other; if( getEncoded().length != x.getEncoded().length ) return false; byte b1[] = getEncoded(); byte b2[] = x.getEncoded(); for( int i = 0; i < b1.length; i++ ) if( b1[i] != b2[i] ) return false; ...
public boolean equals(Object other) { if( other instanceof X509CRL ) { try { X509CRL x = (X509CRL) other; if( getEncoded().length != x.getEncoded().length ) return false; byte b1[] = getEncoded(); byte b2[] = x.getEncoded(); for( int i = 0; i < b1.length; i++ ) if( b1[i] != b2[i] ) return false; ...
20,084
public Register request(int type, Object owner) { if (type == Operand.LONG) { return null; } if (type == Operand.FLOAT || type == Operand.DOUBLE) { return null; } for (int i = regCount-1; i >= 0; i--) { final RegisterUsage ru = registers[i]; if (ru.request(owner)) ...
public Register request(int type, Object owner) { if (type == Operand.LONG) { return null; } if (type == Operand.FLOAT || type == Operand.DOUBLE) { return null; } for (int i = regCount-1; i >= 0; i--) { final RegisterUsage ru = registers[i]; if (ru.request(owner)) ...
20,085
public BufferedImage filter(BufferedImage src, BufferedImage dst) { if (src.getColorModel() instanceof IndexColorModel) throw new IllegalArgumentException("LookupOp.filter: IndexColorModel " + "not allowed"); if (dst == null) dst = createCompatibleDestImage(src, src.getColorModel()); // Set u...
public final BufferedImage filter(BufferedImage src, BufferedImage dst) { if (src.getColorModel() instanceof IndexColorModel) throw new IllegalArgumentException("LookupOp.filter: IndexColorModel " + "not allowed"); if (dst == null) dst = createCompatibleDestImage(src, src.getColorModel()); //...
20,086
public LookupTable getTable() { return lut; }
public final LookupTable getTable() { return lut; }
20,087
public static String getenv(String name) { if (name == null) throw new NullPointerException(); SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPermission(new RuntimePermission("getenv." + name)); return VMSystem.getenv(name); }
public static String getenv(String name) { if (name == null) throw new NullPointerException(); SecurityManager sm = SecurityManager.current; // Be thread-safe. if (sm != null) sm.checkPermission(new RuntimePermission("getenv." + name)); return VMSystem.getenv(name); }
20,088
public ScrollPane() { this(SCROLLBARS_AS_NEEDED); }
ScrollPane() { this(SCROLLBARS_AS_NEEDED); }
20,089
public final void addImpl(Component component, Object constraints, int index) { Component[] list = getComponents(); if ((list != null) && (list.length > 0)) remove(list[0]); super.addImpl(component, constraints, -1); doLayout(); }
protected final void addImpl (Component component, Object constraints, int index) { Component[] list = getComponents(); if ((list != null) && (list.length > 0)) remove(list[0]); super.addImpl(component, constraints, -1); doLayout(); }
20,090
public void addNotify() { if (getPeer() == null) return; setPeer((ComponentPeer) getToolkit().createScrollPane(this)); if (hAdjustable != null) hAdjustable.addNotify(); if (vAdjustable != null) vAdjustable.removeNotify(); }
public void addNotify() { if (getPeer() == null) return; setPeer((ComponentPeer) getToolkit().createScrollPane(this)); if (hAdjustable != null) hAdjustable.addNotify(); if (vAdjustable != null) vAdjustable.removeNotify(); }
20,091
public void addNotify() { if (getPeer() == null) return; setPeer((ComponentPeer) getToolkit().createScrollPane(this)); if (hAdjustable != null) hAdjustable.addNotify(); if (vAdjustable != null) vAdjustable.removeNotify(); }
public void addNotify() { if (getPeer() == null) return; setPeer((ComponentPeer) getToolkit().createScrollPane(this)); if (hAdjustable != null) hAdjustable.addNotify(); if (vAdjustable != null) vAdjustable.removeNotify(); }
20,092
public void doLayout() { Component[] list = getComponents(); if ((list != null) && (list.length > 0)) { Dimension dim = list[0].getPreferredSize(); list[0].resize(dim); Point p = getScrollPosition(); if (p.x > dim.width) p.x = dim.width; if (p.y > dim.height) p.y = dim.height; setScrollPosition(p);...
public void doLayout() { Component[] list = getComponents(); if ((list != null) && (list.length > 0)) { Dimension dim = list[0].getPreferredSize(); list[0].resize(dim); Point p = getScrollPosition(); if (p.x > dim.width) p.x = dim.width; if (p.y > dim.height) p.y = dim.height; setScrollPosition(p);...
20,093
public Adjustable getHAdjustable() { return (hAdjustable); }
public Adjustable getHAdjustable() { return (hAdjustable); }
20,094
public int getHScrollbarHeight() { ScrollPanePeer spp = (ScrollPanePeer) getPeer(); if (spp != null) return (spp.getHScrollbarHeight()); else return (0); // FIXME: What to do here? }
public int getHScrollbarHeight() { ScrollPanePeer spp = (ScrollPanePeer) getPeer(); if (spp != null) return (spp.getHScrollbarHeight()); else return (0); // FIXME: What to do here? }
20,095
public Point getScrollPosition() { int x = 0; int y = 0; Adjustable v = getVAdjustable(); Adjustable h = getHAdjustable(); if (v != null) y = v.getValue(); if (h != null) x = h.getValue(); return (new Point(x, y)); }
getScrollPosition() { int x = 0; int y = 0; Adjustable v = getVAdjustable(); Adjustable h = getHAdjustable(); if (v != null) y = v.getValue(); if (h != null) x = h.getValue(); return (new Point(x, y)); }
20,096
public int getScrollbarDisplayPolicy() { return (scrollbarDisplayPolicy); }
public int getScrollbarDisplayPolicy() { return (scrollbarDisplayPolicy); }
20,097
public Adjustable getVAdjustable() { return (vAdjustable); }
public Adjustable getVAdjustable() { return (vAdjustable); }
20,098
public int getVScrollbarWidth() { ScrollPanePeer spp = (ScrollPanePeer) getPeer(); if (spp != null) return (spp.getVScrollbarWidth()); else return (0); // FIXME: What to do here? }
public int getVScrollbarWidth() { ScrollPanePeer spp = (ScrollPanePeer) getPeer(); if (spp != null) return (spp.getVScrollbarWidth()); else return (0); // FIXME: What to do here? }
20,099
public Dimension getViewportSize() { Dimension viewsize = getSize(); Insets insets = getInsets(); viewsize.width = viewsize.width - (insets.left + insets.right); viewsize.height = viewsize.height - (insets.top + insets.bottom); ScrollPaneAdjustable v = (ScrollPaneAdjustable) getVAdjustable(); ScrollPaneAdjustabl...
public Dimension getViewportSize() { Dimension viewsize = getSize(); Insets insets = getInsets(); viewsize.width = viewsize.width - (insets.left + insets.right); viewsize.height = viewsize.height - (insets.top + insets.bottom); ScrollPaneAdjustable v = (ScrollPaneAdjustable) getVAdjustable(); ScrollPaneAdjustabl...
20,100
public Dimension getViewportSize() { Dimension viewsize = getSize(); Insets insets = getInsets(); viewsize.width = viewsize.width - (insets.left + insets.right); viewsize.height = viewsize.height - (insets.top + insets.bottom); ScrollPaneAdjustable v = (ScrollPaneAdjustable) getVAdjustable(); ScrollPaneAdjustabl...
public Dimension getViewportSize() { Dimension viewsize = getSize(); Insets insets = getInsets(); viewsize.width = viewsize.width - (insets.left + insets.right); viewsize.height = viewsize.height - (insets.top + insets.bottom); ScrollPaneAdjustable v = (ScrollPaneAdjustable) getVAdjustable(); ScrollPaneAdjustabl...
20,101
public Dimension getViewportSize() { Dimension viewsize = getSize(); Insets insets = getInsets(); viewsize.width = viewsize.width - (insets.left + insets.right); viewsize.height = viewsize.height - (insets.top + insets.bottom); ScrollPaneAdjustable v = (ScrollPaneAdjustable) getVAdjustable(); ScrollPaneAdjustabl...
public Dimension getViewportSize() { Dimension viewsize = getSize(); Insets insets = getInsets(); viewsize.width = viewsize.width - (insets.left + insets.right); viewsize.height = viewsize.height - (insets.top + insets.bottom); ScrollPaneAdjustable v = (ScrollPaneAdjustable) getVAdjustable(); ScrollPaneAdjustabl...
20,102
public Dimension getViewportSize() { Dimension viewsize = getSize(); Insets insets = getInsets(); viewsize.width = viewsize.width - (insets.left + insets.right); viewsize.height = viewsize.height - (insets.top + insets.bottom); ScrollPaneAdjustable v = (ScrollPaneAdjustable) getVAdjustable(); ScrollPaneAdjustabl...
public Dimension getViewportSize() { Dimension viewsize = getSize(); Insets insets = getInsets(); viewsize.width = viewsize.width - (insets.left + insets.right); viewsize.height = viewsize.height - (insets.top + insets.bottom); ScrollPaneAdjustable v = (ScrollPaneAdjustable) getVAdjustable(); ScrollPaneAdjustabl...
20,103
public void layout() { doLayout(); }
public void layout() { doLayout(); }
20,105
public String paramString() { return (getClass().getName()); }
public String paramString() { return (getClass().getName()); }
20,107
public void printComponents(Graphics graphics) { super.printComponents(graphics); }
printComponents(Graphics graphics) { super.printComponents(graphics); }
20,108
public void removeNotify() { if (hAdjustable != null) hAdjustable.removeNotify(); if (vAdjustable != null) vAdjustable.removeNotify(); super.removeNotify(); }
public void removeNotify() { if (hAdjustable != null) hAdjustable.removeNotify(); if (vAdjustable != null) vAdjustable.removeNotify(); super.removeNotify(); }
20,109
public final void setLayout(LayoutManager layoutManager) { return; }
setLayout(LayoutManager layoutManager) { return; }
20,110
public void setScrollPosition(Point scrollPosition) throws IllegalArgumentException { setScrollPosition(scrollPosition.x, scrollPosition.y); }
setScrollPosition(Point scrollPosition) throws IllegalArgumentException { setScrollPosition(scrollPosition.x, scrollPosition.y); }
20,111
ScrollPaneAdjustable(int orientation){ super(orientation);}
ScrollPaneAdjustable(int orientation){ super(orientation);}
20,112
public void clear(int memPtr, int size) { testMemPtr(memPtr, size); Unsafe.clear(start.add(Offset.fromIntZeroExtend(memPtr)), Extent.fromIntZeroExtend(size)); }
public void clear(int memPtr, int size) { testMemPtr(memPtr, size); Unsafe.clear(start.add(Offset.fromIntZeroExtend(memPtr)), Extent.fromIntSignExtend(size)); }
20,113
public int compareTo(Region otherRegion) { final MemoryResourceImpl other = (MemoryResourceImpl) otherRegion; if (this.end.LE(other.start)) { // this < other return -1; } if (this.start.GT(other.end)) { // this > other return 1; } // this overlaps other return 0; }
public int compareTo(Region otherRegion) { final MemoryResourceImpl other = (MemoryResourceImpl) otherRegion; if (this.end.LE(other.start)) { // this < other return -1; } if (this.start.GE(other.end)) { // this > other return 1; } // this overlaps other return 0; }
20,114
public Object getObject(int memPtr) { if (this.data != null) { throw new SecurityException("Cannot get an Object from a byte-array"); } testMemPtr(memPtr, 4); return start.loadObjectReference(Offset.fromIntSignExtend(memPtr)).toObject(); }
public Object getObject(int memPtr) { if (this.data != null) { throw new SecurityException("Cannot get an Object from a byte-array"); } testMemPtr(memPtr, 4); return start.loadObjectReference(Offset.fromIntSignExtend(memPtr)); }
20,115
public void setInt(int memPtr, int value) { testMemPtr(memPtr, 4); start.store(value, Offset.fromIntSignExtend(value)); }
public void setInt(int memPtr, int value) { testMemPtr(memPtr, 4); start.store(value, Offset.fromIntSignExtend(memPtr)); }
20,116
public EEPRO100TxFD(MemoryResource mem) { this.mem = mem; }
public EEPRO100TxFD(MemoryResource mem) { }
20,117
private boolean addNamespace(Attribute attr) throws XMLStreamException { if ("xmlns".equals(attr.name)) { LinkedHashMap ctx = (LinkedHashMap) namespaces.getFirst(); if (ctx.get(XMLConstants.DEFAULT_NS_PREFIX) != null) error("Duplicate default namespace declaration"); if (XMLC...
private boolean addNamespace(Attribute attr) throws XMLStreamException { if ("xmlns".equals(attr.name)) { LinkedHashMap ctx = (LinkedHashMap) namespaces.getFirst(); if (ctx.get(XMLConstants.DEFAULT_NS_PREFIX) != null) error("Duplicate default namespace declaration"); if (XMLC...
20,118
public int getNamespaceCount() { if (!namespaceAware) return 0; switch (event) { case XMLStreamConstants.START_ELEMENT: case XMLStreamConstants.END_ELEMENT: LinkedHashMap ctx = (LinkedHashMap) namespaces.getFirst(); return ctx.size(); default: return 0; } }
public int getNamespaceCount() { if (!namespaceAware || namespaces.isEmpty()) return 0; switch (event) { case XMLStreamConstants.START_ELEMENT: case XMLStreamConstants.END_ELEMENT: LinkedHashMap ctx = (LinkedHashMap) namespaces.getFirst(); return ctx.size(); default: ...
20,119
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; while (!done) { // Block read mark(tmpBuf.length); int l...
private int readCharData(String prefix) throws IOException, XMLStreamException { boolean white = true; buf.setLength(0); if (prefix != null) buf.append(prefix); boolean done = false; boolean entities = false; while (!done) { // Block read mark(tmpBuf.length); int l...
20,121
private String readLiteral(int flags, boolean recognizePEs) throws IOException, XMLStreamException { boolean saved = expandPE; int delim = readCh(); if (delim != 0x27 && delim != 0x22) error("expected '\"' or \"'\"", "U+" + Integer.toHexString(delim)); literalBuf.setLength(0); if ((flags & LIT...
private String readLiteral(int flags, boolean recognizePEs) throws IOException, XMLStreamException { boolean saved = expandPE; int delim = readCh(); if (delim != 0x27 && delim != 0x22) error("expected '\"' or \"'\"", "U+" + Integer.toHexString(delim)); literalBuf.setLength(0); if ((flags & LIT...
20,123
public float getLayoutAlignmentX(Container target) { return 0.0f; }
public float getLayoutAlignmentX(Container target) { return 0.0f; }
20,124
public float getLayoutAlignmentY(Container target) { return 0.0f; }
public float getLayoutAlignmentY(Container target) { return 0.0f; }
20,125
public void invalidateLayout(Container target) { }
public void invalidateLayout(Container target) { }
20,126
public void layoutContainer(Container parent) { }
public void layoutContainer(Container parent) { }
20,127
public Dimension maximumLayoutSize(Container target) { return null; }
public Dimension maximumLayoutSize(Container target) { return null; }
20,128
public Dimension minimumLayoutSize(Container parent) { return null; }
public Dimension minimumLayoutSize(Container parent) { return null; }
20,129
public Dimension preferredLayoutSize(Container parent) { return null; }
public Dimension preferredLayoutSize(Container parent) { return null; }
20,130
public void setConstraints(Component comp, GridBagConstraints constraints) { }
public void setConstraints(Component comp, GridBagConstraints constraints) { }
20,131
FontMetrics(Font font){ this.font = font;}
FontMetrics(Font font){ this.font = font;}
20,132
bytesWidth(byte buf[], int offset, int len){ int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth((char)buf[i]); return(total_width);}
bytesWidth(byte buf[], int offset, int len){ int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth((char)buf[i]); return(total_width);}
20,133
bytesWidth(byte buf[], int offset, int len){ int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth((char)buf[i]); return(total_width);}
bytesWidth(byte buf[], int offset, int len){ int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth((char)buf[i]); return(total_width);}
20,134
getFont(){ return(font);}
getFont(){ return(font);}
20,135
getLeading(){ return(0);}
getLeading(){ return(0);}
20,136
getMaxAdvance(){ return(-1);}
getMaxAdvance(){ return(-1);}
20,137
getMaxDecent(){ return getDescent ();}
getMaxDecent(){ return getDescent ();}
20,138
getWidths(){ int [] result = new int[256]; for(char i = 0; i < 256; i++) { result[i]= charWidth(i); } return(result);}
getWidths(){ int [] result = new int[256]; for(char i = 0; i < 256; i++) { result[i]= charWidth(i); } return(result);}
20,139
getWidths(){ int [] result = new int[256]; for(char i = 0; i < 256; i++) { result[i]= charWidth(i); } return(result);}
getWidths(){ int [] result = new int[256]; for(char i = 0; i < 256; i++) { int[] result = new int[256]; for (char i = 0; i < 256; i++) result[i] = charWidth(i); return result; } return(result);}
20,140
getWidths(){ int [] result = new int[256]; for(char i = 0; i < 256; i++) { result[i]= charWidth(i); } return(result);}
getWidths(){ int [] result = new int[256]; for(char i = 0; i < 256; i++) { result[i]= charWidth(i); } return(result);}
20,141
toString(){ return (this.getClass() + "[font=" + font + ",ascent=" + getAscent() + ",descent=" + getDescent() + ",height=" + getHeight() + "]");}
toString(){ return (this.getClass() + "[font=" + font + ",ascent=" + getAscent() + ",descent=" + getDescent() + ",height=" + getHeight() + "]");}
20,142
public abstract boolean visit(VmThreadVisitor visitor);
public boolean visit(VmThreadVisitor visitor) { VmThreadQueueEntry p = first; while (p != null) { if (!visitor.visit(p.thread)) { return false; } p = p.next; } return true; }
20,143
protected byte[] getResult() { byte[] result = new byte[] { (byte) h0, (byte) (h0 >>> 8), (byte) (h0 >>> 16), (byte) (h0 >>> 24), (byte) h1, (byte) (h1 >>> 8), (byte) (h1 >>> 16), (byte) (h1 >>> 24), ...
protected byte[] getResult() { byte[] result = new byte[] { (byte) h0, (byte) (h0 >>> 8), (byte) (h0 >>> 16), (byte) (h0 >>> 24), (byte) h1, (byte) (h1 >>> 8), (byte) (h1 >>> 16), (byte) (h1 >>> 24), ...
20,144
public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf (DIGEST0.equals(Util.toString(new RipeMD128().digest()))); } return valid.booleanValue(); }
public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf (DIGEST0.equals(Util.toString(new RipeMD128().digest()))); } return valid.booleanValue(); }
20,145
protected void transform(byte[] in, int offset) { int A, B, C, D, Ap, Bp, Cp, Dp, T, s, i; // encode 64 bytes from input block into an array of 16 unsigned // integers. for (i = 0; i < 16; i++) { X[i] = (in[offset++] & 0xFF) | (in[offset++] & 0xFF) << 8 | (in[offset++] & 0xFF) <...
protected void transform(byte[] in, int offset) { int A, B, C, D, Ap, Bp, Cp, Dp, T, s, i; // encode 64 bytes from input block into an array of 16 unsigned // integers. for (i = 0; i < 16; i++) { X[i] = (in[offset++] & 0xFF) | (in[offset++] & 0xFF) << 8 | (in[offset++] & 0xFF) <...
20,146
X509CRLEntry(int version, InputStream encoded) throws CRLException, IOException { super(); extensions = new HashMap(); critOids = new HashSet(); nonCritOids = new HashSet(); try { parse(version, encoded); } catch (IOException ioe) { throw ioe; } catch (Except...
X509CRLEntry(int version, DERReader encoded) throws CRLException, IOException { super(); extensions = new HashMap(); critOids = new HashSet(); nonCritOids = new HashSet(); try { parse(version, encoded); } catch (IOException ioe) { throw ioe; } catch (Exceptio...
20,147
X509CRLEntry(int version, InputStream encoded) throws CRLException, IOException { super(); extensions = new HashMap(); critOids = new HashSet(); nonCritOids = new HashSet(); try { parse(version, encoded); } catch (IOException ioe) { throw ioe; } catch (Except...
X509CRLEntry(int version, InputStream encoded) throws CRLException, IOException { super(); extensions = new HashMap(); critOids = new HashSet(); nonCritOids = new HashSet(); try { parse(version, encoded); } catch (IOException ioe) { throw ioe; } catch (Except...
20,148