bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public abstract Dimension getMinimumSize(int len);
Dimension getMinimumSize(int len);
17,298
public abstract Dimension getPreferredSize(int len);
Dimension getPreferredSize(int len);
17,299
public abstract Dimension minimumSize(int len);
Dimension minimumSize(int len);
17,300
public abstract Dimension preferredSize(int len);
Dimension preferredSize(int len);
17,301
public abstract void setEchoChar(char echo_char);
void setEchoChar(char echo_char);
17,302
public abstract void setEchoCharacter(char echo_char);
void setEchoCharacter(char echo_char);
17,303
protected Object clone() throws CloneNotSupportedException { AbstractMap copy = (AbstractMap) super.clone(); // Clear out the caches; they are stale. copy.keys = null; copy.values = null; return copy; }
protected Object clone() throws CloneNotSupportedException { AbstractMap<K, V> copy = (AbstractMap<K, V>) super.clone(); // Clear out the caches; they are stale. copy.keys = null; copy.values = null; return copy; }
17,304
public abstract Set entrySet();
public abstract Set<Map.Entry<K, V>> entrySet();
17,305
public boolean equals(Object o) { return (o == this || (o instanceof Map && entrySet().equals(((Map) o).entrySet()))); }
public boolean equals(Object o) { return (o == this || (o instanceof Map && entrySet().equals(((Map<K, V>) o).entrySet()))); }
17,306
public Set<K> keySet() { if (keys == null) keys = new AbstractSet<K>() { /** * Retrieves the number of keys in the backing map. * * @return The number of keys. */ public int size() { return AbstractMap.this.size(); } /** * Returns true if the backing map contains the ...
public Set<K> keySet() { if (keys == null) keys = new AbstractSet<K>() { /** * Retrieves the number of keys in the backing map. * * @return The number of keys. */ public int size() { return AbstractMap.this.size(); } /** * Returns true if the backing map contains the ...
17,307
public Iterator<K> iterator() { return new Iterator() { /** * The iterator returned by <code>entrySet()</code>. */ private final Iterator<Map.Entry<K, V>> map_iterator = entrySet().iterator(); /** * Returns true if a call to <code>next()</code> wi...
public Iterator<K> iterator() { return new Iterator<K>() { /** * The iterator returned by <code>entrySet()</code>. */ private final Iterator<Map.Entry<K, V>> map_iterator = entrySet().iterator(); /** * Returns true if a call to <code>next()</code>...
17,308
public void putAll(Map<? extends K, ? extends V> m) { Iterator<Map.Entry<K, V>> entries = ((Map<K,V>) m).entrySet().iterator(); int pos = m.size(); while (--pos >= 0) { Map.Entry<K, V> entry = entries.next(); put(entry.getKey(), entry.getValue()); } }
public void putAll(Map<? extends K, ? extends V> m) { Iterator entries2 = m.entrySet().iterator(); Iterator<Map.Entry<? extends K, ? extends V>> entries = (Iterator<Map.Entry<? extends K, ? extends V>>) entries2; int pos = m.size(); while (--pos >= 0) { Map.Entry<K, V> entry = entries.next(); ...
17,309
public void putAll(Map<? extends K, ? extends V> m) { Iterator<Map.Entry<K, V>> entries = ((Map<K,V>) m).entrySet().iterator(); int pos = m.size(); while (--pos >= 0) { Map.Entry<K, V> entry = entries.next(); put(entry.getKey(), entry.getValue()); } }
public void putAll(Map<? extends K, ? extends V> m) { Iterator<Map.Entry<K, V>> entries = ((Map<K,V>) m).entrySet().iterator(); int pos = m.size(); while (--pos >= 0) { Map.Entry<? extends K, ? extends V> entry = entries.next(); put(entry.getKey(), entry.getValue()); } }
17,310
public Collection<V> values() { if (values == null) values = new AbstractCollection<V>() { /** * Returns the number of values stored in * the backing map. * * @return The number of values. */ public int size() { return AbstractMap.this.size(); } /** * Returns true if ...
public Collection<V> values() { if (values == null) values = new AbstractCollection<V>() { /** * Returns the number of values stored in * the backing map. * * @return The number of values. */ public int size() { return AbstractMap.this.size(); } /** * Returns true if ...
17,311
public Iterator<V> iterator() { return new Iterator() { /** * The iterator returned by <code>entrySet()</code>. */ private final Iterator<Map.Entry<K, V>> map_iterator = entrySet().iterator(); /** * Returns true if a call to <code>next()</call> ...
public Iterator<V> iterator() { return new Iterator<V>() { /** * The iterator returned by <code>entrySet()</code>. */ private final Iterator<Map.Entry<K, V>> map_iterator = entrySet().iterator(); /** * Returns true if a call to <code>next()</cal...
17,312
public final Class getCategory() { return PagesPerMinuteColor.class; }
public Class getCategory() { return PagesPerMinuteColor.class; }
17,313
public final String getName() { return "pages-per-minute-color"; }
public String getName() { return "pages-per-minute-color"; }
17,314
protected void addImpl(Component component, Object constraints, int index) { // XXX: Sun says disable button but test cases show otherwise. super.addImpl(component, constraints, index); // if we added a Swing Button then adjust this a little if (component instanceof AbstractButton) { Abstract...
protected void addImpl(Component component, Object constraints, int index) { // XXX: Sun says disable button but test cases show otherwise. super.addImpl(component, constraints, index); // if we added a Swing Button then adjust this a little if (component instanceof AbstractButton) { Abstract...
17,315
void moveDotImpl(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); handleHighlight(); appear(); adjustVisibility(this); } }
void moveDotImpl(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); handleHighlight(); appear(); } }
17,317
void setDotImpl(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); this.mark = this.dot; clearHighlight(); appear(); ...
void setDotImpl(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); this.mark = this.dot; clearHighlight(); appear(); ...
17,318
public void scrollRectToVisible(Rectangle r) { Component p = getParent(); if (p != null && p instanceof JComponent) ((JComponent) p).scrollRectToVisible(r); }
public void scrollRectToVisible(Rectangle r) { Component p = getParent(); if (p instanceof JComponent) ((JComponent) p).scrollRectToVisible(r); }
17,319
public void setRepeats(boolean flag) { repeat_ticks = flag; }
public void setRepeats(boolean r) { repeat_ticks = flag; }
17,320
public void setRepeats(boolean flag) { repeat_ticks = flag; }
public void setRepeats(boolean flag) { repeats = r; }
17,321
public abstract void removeAll();
void removeAll();
17,322
public abstract void delItems(int start_index, int end_index);
void delItems(int start_index, int end_index);
17,323
public abstract void deselect(int index);
void deselect(int index);
17,324
public abstract int[] getSelectedIndexes();
int[] getSelectedIndexes();
17,325
public abstract void makeVisible(int index);
void makeVisible(int index);
17,326
public abstract Dimension minimumSize(int s);
Dimension minimumSize(int s);
17,327
public abstract Dimension preferredSize(int s);
Dimension preferredSize(int s);
17,328
public abstract void setMultipleMode(boolean multi);
void setMultipleMode(boolean multi);
17,329
public static void addDnsServer(ProtocolAddress _dnsserver) throws NetworkException { if (resolver == null) { try { // resolver = (ExtendedResolver) Lookup.getDefaultResolver(); if (resolver == null) { resolver = new ExtendedResolver(); Lookup.setDefaultR...
public static void addDnsServer(ProtocolAddress _dnsserver) throws NetworkException { if (resolver == null) { try { // resolver = (ExtendedResolver) Lookup.getDefaultResolver(); if (resolver == null) { String[] server = new String[]{_dnsserver.toString()}; resolve...
17,330
public static void addDnsServer(ProtocolAddress _dnsserver) throws NetworkException { if (resolver == null) { try { // resolver = (ExtendedResolver) Lookup.getDefaultResolver(); if (resolver == null) { resolver = new ExtendedResolver(); Lookup.setDefaultR...
public static void addDnsServer(ProtocolAddress _dnsserver) throws NetworkException { if (resolver == null) { try { // resolver = (ExtendedResolver) Lookup.getDefaultResolver(); if (resolver == null) { resolver = new ExtendedResolver(); Lookup.setDefaultR...
17,331
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) { ProtocolAddress protocol...
17,332
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
17,333
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
17,334
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
17,335
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
17,336
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
17,337
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
17,338
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
17,339
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
public ProtocolAddress[] getByName(String hostname) throws UnknownHostException { ProtocolAddress[] protocolAddresses = null; System.out.println("hh0 " + hostname); protocolAddresses = getFromHostsFile(hostname); if (protocolAddresses != null) { for (int i = 0; i < protocolAddresses.length; i++) ...
17,340
public static void removeDnsServer(ProtocolAddress _dnsserver) { if (resolver == null) { return; } String key = _dnsserver.toString(); if (resolvers.containsKey(key)) { SimpleResolver simpleResolver = (SimpleResolver) resolvers.remove(key); resolver.deleteResolver(simpleResolver); ...
public static void removeDnsServer(ProtocolAddress _dnsserver) { if (resolver == null) { return; } String key = _dnsserver.toString(); if (resolvers.containsKey(key)) { SimpleResolver simpleResolver = (SimpleResolver) resolvers.remove(key); resolver.deleteResolver(simpleResolver); ...
17,341
public Set<K> keySet() { if (keys == null) { // Create a synchronized AbstractSet with custom implementations of // those methods that can be overridden easily and efficiently. Set<K> r = new AbstractSet<K>() { public int size() { return size; ...
public Set<K> keySet() { if (keys == null) { // Create a synchronized AbstractSet with custom implementations of // those methods that can be overridden easily and efficiently. Set<K> r = new AbstractSet<K>() { public int size() { return size; ...
17,342
public String getName() { return "fidelity"; }
public String getName() { return "ipp-attribute-fidelity"; }
17,343
public int nextInt(int n) { if (n <= 0) throw new IllegalArgumentException("n must be positive"); if ((n & -n) == n) // i.e., n is a power of 2 return (int) ((n * (long) next(31)) >> 31); int bits, val; do { bits = next(31); val = bits % n; } while (bits - val + (n - ...
public int nextInt() { if (n <= 0) throw new IllegalArgumentException("n must be positive"); if ((n & -n) == n) // i.e., n is a power of 2 return (int) ((n * (long) next(31)) >> 31); int bits, val; do { bits = next(31); val = bits % n; } while (bits - val + (n - 1) < ...
17,344
public int nextInt(int n) { if (n <= 0) throw new IllegalArgumentException("n must be positive"); if ((n & -n) == n) // i.e., n is a power of 2 return (int) ((n * (long) next(31)) >> 31); int bits, val; do { bits = next(31); val = bits % n; } while (bits - val + (n - ...
public int nextInt(int n) { if (n <= 0) throw new IllegalArgumentException("n must be positive"); if ((n & -n) == n) // i.e., n is a power of 2 return (int) ((n * (long) next(31)) >> 31); int bits, val; do { bits = next(31); val = bits % n; } while (bits - val + (n - ...
17,345
public NO_RESOURCES(String a_reason, int a_minor, CompletionStatus a_completed) { super(a_reason, a_minor, a_completed); }
public NO_RESOURCES(String message) { super(a_reason, a_minor, a_completed); }
17,346
public NO_RESOURCES(String a_reason, int a_minor, CompletionStatus a_completed) { super(a_reason, a_minor, a_completed); }
public NO_RESOURCES(String a_reason, int a_minor, CompletionStatus a_completed) { super(message, 0, CompletionStatus.COMPLETED_NO); }
17,347
static Context getURLContext (Object refInfo, Name name, Context nameCtx, String scheme, Hashtable environment) throws NamingException { String prefixes = null; if (environment != null) prefixes = (String) environment.get (Context.URL_PKG_PREFIXES); if (prefixes == null) prefixes =...
static Context getURLContext (Object refInfo, Name name, Context nameCtx, String scheme, Hashtable environment) throws NamingException { String prefixes = null; if (environment != null) prefixes = (String) environment.get (Context.URL_PKG_PREFIXES); if (prefixes == null) prefixes =...
17,349
static Context getURLContext (Object refInfo, Name name, Context nameCtx, String scheme, Hashtable environment) throws NamingException { String prefixes = null; if (environment != null) prefixes = (String) environment.get (Context.URL_PKG_PREFIXES); if (prefixes == null) prefixes =...
static Context getURLContext (Object refInfo, Name name, Context nameCtx, String scheme, Hashtable environment) throws NamingException { String prefixes = null; if (environment != null) prefixes = (String) environment.get (Context.URL_PKG_PREFIXES); if (prefixes == null) prefixes =...
17,350
static Context getURLContext (Object refInfo, Name name, Context nameCtx, String scheme, Hashtable environment) throws NamingException { String prefixes = null; if (environment != null) prefixes = (String) environment.get (Context.URL_PKG_PREFIXES); if (prefixes == null) prefixes =...
static Context getURLContext (Object refInfo, Name name, Context nameCtx, String scheme, Hashtable environment) throws NamingException { String prefixes = null; if (environment != null) prefixes = (String) environment.get (Context.URL_PKG_PREFIXES); if (prefixes == null) prefixes =...
17,351
static Context getURLContext (Object refInfo, Name name, Context nameCtx, String scheme, Hashtable environment) throws NamingException { String prefixes = null; if (environment != null) prefixes = (String) environment.get (Context.URL_PKG_PREFIXES); if (prefixes == null) prefixes =...
static Context getURLContext (Object refInfo, Name name, Context nameCtx, String scheme, Hashtable environment) throws NamingException { String prefixes = null; if (environment != null) prefixes = (String) environment.get (Context.URL_PKG_PREFIXES); if (prefixes == null) prefixes =...
17,352
public static void setInitialContextFactoryBuilder (InitialContextFactoryBuilder builder) throws NamingException { SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkSetFactory (); // Once the builder is installed it cannot be replaced. if (icfb != null) throw new Ill...
public static void setInitialContextFactoryBuilder (InitialContextFactoryBuilder builder) throws NamingException { SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkSetFactory (); // Once the builder is installed it cannot be replaced. if (icfb != null) throw new Ill...
17,354
public static void setObjectFactoryBuilder (ObjectFactoryBuilder builder) throws NamingException { SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkSetFactory (); // Once the builder is installed it cannot be replaced. if (ofb != null) throw new IllegalStateExceptio...
public static void setObjectFactoryBuilder (ObjectFactoryBuilder builder) throws NamingException { SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkSetFactory (); // Once the builder is installed it cannot be replaced. if (ofb != null) throw new IllegalStateExceptio...
17,355
public NoInitialContextException(String msg) { super(msg); }
public NoInitialContextException() { super(msg); }
17,356
public NoInitialContextException(String msg) { super(msg); }
public NoInitialContextException(String msg) { super(); }
17,357
ObjectFactory createObjectFactory(Object obj, Hashtable environment) throws NamingException;
ObjectFactory createObjectFactory(Object refInfo, Hashtable environment) throws NamingException;
17,358
Object getObjectInstance (Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception;
Object getObjectInstance (Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception;
17,359
public Remote activate(boolean force) throws ActivationException, UnknownObjectException, RemoteException { throw new Error("Not implemented");}
public Remote activate(boolean force) throws ActivationException, UnknownObjectException, RemoteException { throw new Error("Not implemented");}
17,360
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof RSAPrivateCrtKeySpec) { RSAPrivateCrtKeySpec spec = (RSAPrivateCrtKeySpec) keySpec; BigInteger n = spec.getModulus(); BigInteger e = spec.getPublicExponent(); B...
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof RSAPrivateCrtKeySpec) { RSAPrivateCrtKeySpec spec = (RSAPrivateCrtKeySpec) keySpec; BigInteger n = spec.getModulus(); BigInteger e = spec.getPublicExponent(); B...
17,361
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof RSAPublicKeySpec) { RSAPublicKeySpec spec = (RSAPublicKeySpec) keySpec; BigInteger n = spec.getModulus(); BigInteger e = spec.getPublicExponent(); return new GnuR...
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof RSAPublicKeySpec) { RSAPublicKeySpec spec = (RSAPublicKeySpec) keySpec; BigInteger n = spec.getModulus(); BigInteger e = spec.getPublicExponent(); return new GnuR...
17,362
public GnuRSAPrivateKey(int preferredFormat, BigInteger n, BigInteger e, BigInteger d, BigInteger p, BigInteger q, BigInteger dP, BigInteger dQ, BigInteger qInv) { super(preferredFormat == Registry.ASN1_ENCODING_ID ? Registry.PKCS8_ENCODING_ID ...
public GnuRSAPrivateKey(int preferredFormat, BigInteger n, BigInteger e, BigInteger d, BigInteger p, BigInteger q, BigInteger dP, BigInteger dQ, BigInteger qInv) { super(preferredFormat == Registry.ASN1_ENCODING_ID ? Registry.PKCS8_ENCODING_ID ...
17,363
public GnuRSAPrivateKey(int preferredFormat, BigInteger n, BigInteger e, BigInteger d, BigInteger p, BigInteger q, BigInteger dP, BigInteger dQ, BigInteger qInv) { super(preferredFormat == Registry.ASN1_ENCODING_ID ? Registry.PKCS8_ENCODING_ID ...
public GnuRSAPrivateKey(int preferredFormat, BigInteger n, BigInteger e, BigInteger d, BigInteger p, BigInteger q, BigInteger dP, BigInteger dQ, BigInteger qInv) { super(preferredFormat == Registry.ASN1_ENCODING_ID ? Registry.PKCS8_ENCODING_ID ...
17,364
public GnuRSAPublicKey(int preferredFormat, BigInteger n, BigInteger e) { super(preferredFormat == Registry.ASN1_ENCODING_ID ? Registry.X509_ENCODING_ID : preferredFormat, n, e); }
public GnuRSAPublicKey(final BigInteger n, final BigInteger e) { super(preferredFormat == Registry.ASN1_ENCODING_ID ? Registry.X509_ENCODING_ID : preferredFormat, n, e); }
17,365
public GnuRSAPublicKey(int preferredFormat, BigInteger n, BigInteger e) { super(preferredFormat == Registry.ASN1_ENCODING_ID ? Registry.X509_ENCODING_ID : preferredFormat, n, e); }
public GnuRSAPublicKey(int preferredFormat, BigInteger n, BigInteger e) { super(preferredFormat == Registry.ASN1_ENCODING_ID ? Registry.X509_ENCODING_ID : preferredFormat, n, e); }
17,366
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI...
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI...
17,367
public void removeUpdate(DocumentEvent event) { if (policy == ALWAYS_UPDATE || (SwingUtilities.isEventDispatchThread() && policy == UPDATE_WHEN_ON_EDT)) { int dot = getDot(); setDot(dot - event.getLength()); } else if (policy == NEVER_UPDATE) { i...
public void removeUpdate(DocumentEvent event) { if (policy == ALWAYS_UPDATE || (SwingUtilities.isEventDispatchThread() && policy == UPDATE_WHEN_ON_EDT)) { int dot = getDot(); setDot(dot - event.getLength()); } else if (policy == NEVER_UPDATE || (! SwingUtilities...
17,368
public void moveDot(int dot) { if (dot >= 0) { this.dot = dot; handleHighlight(); adjustVisibility(this); appear(); } }
public void moveDot(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); handleHighlight(); adjustVisibility(this); appear(); } }
17,369
public void setDot(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); this.mark = dot; handleHighlight(); adjustVisibility(this); appear(); } }
public void setDot(int dot) { if (dot >= 0) { Document doc = textComponent.getDocument(); if (doc != null) this.dot = Math.min(dot, doc.getLength()); this.dot = Math.max(this.dot, 0); this.mark = this.dot; handleHighlight(); adjustVisibility(this); appear(); ...
17,370
public static boolean isWhitespace(char ch) { int attr = readChar(ch); return ((((1 << (attr & TYPE_MASK)) & ((1 << SPACE_SEPARATOR) | (1 << LINE_SEPARATOR) | (1 << PARAGRAPH_SEPARATOR))) != 0) && (attr & NO_BREAK_MASK) == 0) || (ch <= '\u001F' && ((...
public static boolean isWhitespace(char ch) { int attr = readChar(ch); return ((((1 << (attr & TYPE_MASK)) & ((1 << SPACE_SEPARATOR) | (1 << LINE_SEPARATOR) | (1 << PARAGRAPH_SEPARATOR))) != 0) && (attr & NO_BREAK_MASK) == 0) || (ch <= '\u001F' && ((...
17,371
public static boolean isLetterOrDigit(char ch) { return ((1 << getType(ch)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) | (1 << DECIMAL_DIGIT_NUMBER)))...
public static boolean isLetterOrDigit(char ch) { return ((1 << getType(ch)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) | (1 << DECIMAL_DIGIT_NUMBER)))...
17,372
public static IMessageDigest getInstance(String name) { if (name == null) { return null; } name = name.trim(); IMessageDigest result = null; if (name.equalsIgnoreCase(Registry.WHIRLPOOL_HASH)) { result = new Whirlpool(); } else if (name.equalsIgnoreCase(Registry.RIPEM...
public static IMessageDigest getInstance(String name) if (name == null) return null; } name = name.trim(); IMessageDigest result = null; if (name.equalsIgnoreCase(Registry.WHIRLPOOL_HASH)) result = new Whirlpool(); } else if (name.equalsIgnoreCase(Registry.RIPEMD12...
17,373
public static IMessageDigest getInstance(String name) { if (name == null) { return null; } name = name.trim(); IMessageDigest result = null; if (name.equalsIgnoreCase(Registry.WHIRLPOOL_HASH)) { result = new Whirlpool(); } else if (name.equalsIgnoreCase(Registry.RIPEM...
public static IMessageDigest getInstance(String name) { if (name == null) { return null; name = name.trim(); IMessageDigest result = null; if (name.equalsIgnoreCase(Registry.WHIRLPOOL_HASH)) { result = new Whirlpool(); else if (name.equalsIgnoreCase(Registry.RIPEMD1...
17,374
public static IMessageDigest getInstance(String name) { if (name == null) { return null; } name = name.trim(); IMessageDigest result = null; if (name.equalsIgnoreCase(Registry.WHIRLPOOL_HASH)) { result = new Whirlpool(); } else if (name.equalsIgnoreCase(Registry.RIPEM...
public static IMessageDigest getInstance(String name) { if (name == null) { return null; } name = name.trim(); IMessageDigest result = null; if (name.equalsIgnoreCase(Registry.WHIRLPOOL_HASH)) { result = new Whirlpool(); } else if (name.equalsIgnoreCase(Registry.RIPEM...
17,375
public boolean isMCNodeLocal() { return isMCNodeLocal(); }
public boolean isMCNodeLocal() { return super.isMCNodeLocal(); }
17,376
public boolean isMCOrgLocal() { return isMCOrgLocal(); }
public boolean isMCOrgLocal() { return super.isMCOrgLocal(); }
17,377
public abstract void setAlignment(int alignment);
void setAlignment(int alignment);
17,378
public abstract void setText(String text);
void setText(String text);
17,379
public Iterator<E> iterator() { // Bah, Sun's implementation forbids using listIterator(0). return new Iterator<E>() { private int pos = 0; private int size = size(); private int last = -1; private int knownMod = modCount; // This will get inlined, since it is private. /** ...
public Iterator<E> iterator() { // Bah, Sun's implementation forbids using listIterator(0). return new Iterator<E>() { private int pos = 0; private int size = size(); private int last = -1; private int knownMod = modCount; // This will get inlined, since it is private. /** ...
17,380
public Iterator<E> iterator() { // Bah, Sun's implementation forbids using listIterator(0). return new Iterator<E>() { private int pos = 0; private int size = size(); private int last = -1; private int knownMod = modCount; // This will get inlined, since it is private. /** ...
public Iterator<E> iterator() { // Bah, Sun's implementation forbids using listIterator(0). return new Iterator<E>() { private int pos = 0; private int size = size(); private int last = -1; private int knownMod = modCount; // This will get inlined, since it is private. /** ...
17,381
static void checkNCName(String name, boolean xml11) { checkName(name, xml11); int len = name.length(); int index = name.indexOf(':'); if (index != -1) { if (index == 0 || index == (len - 1) || name.lastIndexOf(':') != index) { throw new DomDOMException(DOMExcept...
static void checkNCName(String name, boolean xml11) { checkName(name, xml11); int len = name.length(); int index = name.indexOf(':'); if (index != -1) { if (index == 0 || index == (len - 1) || name.lastIndexOf(':') != index) { throw new DomDOMException(DOMExcept...
17,382
fillPolygon(Polygon polygon){ fillPolygon(polygon.xpoints, polygon.ypoints, polygon.npoints);}
fillPolygon(Polygon polygon){ fillPolygon(polygon.xpoints, polygon.ypoints, polygon.npoints);}
17,384
drawPolygon(Polygon polygon){ drawPolygon(polygon.xpoints, polygon.ypoints, polygon.npoints);}
drawPolygon(Polygon polygon){ drawPolygon(polygon.xpoints, polygon.ypoints, polygon.npoints);}
17,385
public static final ByteBuffer wrap (byte[] array) { return wrap (array, 0, array.length); }
public static final ByteBuffer wrap (byte[] array, int offset, int length) { return wrap (array, 0, array.length); }
17,386
public static final ByteBuffer wrap (byte[] array) { return wrap (array, 0, array.length); }
public static final ByteBuffer wrap (byte[] array) { return new ByteBufferImpl (array, 0, array.length, offset + length, offset, -1, false); }
17,387
public static void fill(byte[] a, int fromIndex, int toIndex, byte val) { if (fromIndex > toIndex) throw new IllegalArgumentException(); for (int i = fromIndex; i < toIndex; i++) a[i] = val; }
public static void fill(boolean[] a, boolean val) { if (fromIndex > toIndex) throw new IllegalArgumentException(); for (int i = fromIndex; i < toIndex; i++) a[i] = val; }
17,388
public static void fill(byte[] a, int fromIndex, int toIndex, byte val) { if (fromIndex > toIndex) throw new IllegalArgumentException(); for (int i = fromIndex; i < toIndex; i++) a[i] = val; }
public static void fill(byte[] a, int fromIndex, int toIndex, byte val) { if (fromIndex > toIndex) throw new IllegalArgumentException(); for (int i = fromIndex; i < toIndex; i++) a[i] = val; }
17,389
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (IllegalStateException x) { throw new RuntimeExceptio...
protected void nextRandomBytes(byte[] buffer) if (rnd != null) rnd.nextBytes(buffer); } else if (irnd != null) try irnd.nextBytes(buffer, 0, buffer.length); } catch (IllegalStateException x) throw new RuntimeException("ne...
17,390
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (IllegalStateException x) { throw new RuntimeExceptio...
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); catch (IllegalStateException x) { throw new RuntimeException(...
17,391
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (IllegalStateException x) { throw new RuntimeExceptio...
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (IllegalStateException x) { throw new RuntimeExceptio...
17,392
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (IllegalStateException x) { throw new RuntimeExceptio...
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (IllegalStateException x) { throw new RuntimeExceptio...
17,393
private void setup(Map attributes) { init(); // do we have a Random or SecureRandom, or should we use our own? Object obj = attributes.get(SOURCE_OF_RANDOMNESS); if (obj instanceof Random) { rnd = (Random) obj; } else if (obj instanceof IRandom) { irnd = (IRandom) obj; ...
private void setup(Map attributes) init(); // do we have a Random or SecureRandom, or should we use our own? Object obj = attributes.get(SOURCE_OF_RANDOMNESS); if (obj instanceof Random) rnd = (Random) obj; } else if (obj instanceof IRandom) irnd = (IRandom) obj; }...
17,394
private void setup(Map attributes) { init(); // do we have a Random or SecureRandom, or should we use our own? Object obj = attributes.get(SOURCE_OF_RANDOMNESS); if (obj instanceof Random) { rnd = (Random) obj; } else if (obj instanceof IRandom) { irnd = (IRandom) obj; ...
private void setup(Map attributes) { init(); // do we have a Random or SecureRandom, or should we use our own? Object obj = attributes.get(SOURCE_OF_RANDOMNESS); if (obj instanceof Random) { rnd = (Random) obj; else if (obj instanceof IRandom) { irnd = (IRandom) obj; ...
17,395
public void setupSign(Map attributes) throws IllegalArgumentException { setup(attributes); // do we have a private key? PrivateKey key = (PrivateKey) attributes.get(SIGNER_KEY); if (key != null) { setupForSigning(key); } }
public void setupSign(Map attributes) throws IllegalArgumentException setup(attributes); // do we have a private key? PrivateKey key = (PrivateKey) attributes.get(SIGNER_KEY); if (key != null) setupForSigning(key); } }
17,396
public void setupSign(Map attributes) throws IllegalArgumentException { setup(attributes); // do we have a private key? PrivateKey key = (PrivateKey) attributes.get(SIGNER_KEY); if (key != null) { setupForSigning(key); } }
public void setupSign(Map attributes) throws IllegalArgumentException { setup(attributes); // do we have a private key? PrivateKey key = (PrivateKey) attributes.get(SIGNER_KEY); if (key != null) { setupForSigning(key);
17,397
public void setupVerify(Map attributes) throws IllegalArgumentException { setup(attributes); // do we have a public key? PublicKey key = (PublicKey) attributes.get(VERIFIER_KEY); if (key != null) { setupForVerification(key); } }
public void setupVerify(Map attributes) throws IllegalArgumentException setup(attributes); // do we have a public key? PublicKey key = (PublicKey) attributes.get(VERIFIER_KEY); if (key != null) setupForVerification(key); } }
17,398
public void setupVerify(Map attributes) throws IllegalArgumentException { setup(attributes); // do we have a public key? PublicKey key = (PublicKey) attributes.get(VERIFIER_KEY); if (key != null) { setupForVerification(key); } }
public void setupVerify(Map attributes) throws IllegalArgumentException { setup(attributes); // do we have a public key? PublicKey key = (PublicKey) attributes.get(VERIFIER_KEY); if (key != null) { setupForVerification(key);
17,399
public Object sign() { if (md == null || privateKey == null) { throw new IllegalStateException(); } return generateSignature(); }
public Object sign() if (md == null || privateKey == null) throw new IllegalStateException(); } return generateSignature(); }
17,400
public Object sign() { if (md == null || privateKey == null) { throw new IllegalStateException(); } return generateSignature(); }
public Object sign() { if (md == null || privateKey == null) { throw new IllegalStateException(); return generateSignature();
17,401