bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public static void error(String msg, Throwable ex) { log(ERROR, System.err, msg, ex); } | public static void error(String msg, Throwable ex) { log(ERROR, System.err, msg, ex); } | 16,194 |
public String(byte[] data) { this(data, 0, data.length); } | public String() { this(data, 0, data.length); } | 16,195 |
public String(byte[] data) { this(data, 0, data.length); } | public String(byte[] data) { value = "".value; offset = 0; count = 0; } | 16,196 |
public static SecurityManager getSecurityManager() { // Implementation note: the field lives in Runtime because of bootstrap // initialization issues. return Runtime.securityManager; } | public static SecurityManager getSecurityManager() { // Implementation note: the field lives in Runtime because of bootstrap // initialization issues. return SecurityManager.current; } | 16,197 |
public static Properties getProperties() { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPropertiesAccess(); return properties; } | public static Properties getProperties() { SecurityManager sm = SecurityManager.current; // Be thread-safe. if (sm != null) sm.checkPropertiesAccess(); return properties; } | 16,198 |
public static Properties getProperties() { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPropertiesAccess(); return properties; } | public static Properties getProperties() { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPropertiesAccess(); return SystemProperties.getProperties(); } | 16,199 |
public synchronized V put(K key, V value) { int idx = hash(key); HashEntry<K, V> e = buckets[idx]; // Check if value is null since it is not permitted. if (value == null) throw new NullPointerException(); while (e != null) { if (key.equals(e.key)) { // Bypass e.set... | public synchronized V put(K key, V value) { int idx = hash(key); HashEntry<K, V> e = buckets[idx]; // Check if value is null since it is not permitted. if (value == null) throw new NullPointerException(); while (e != null) { if (e.key.equals(key)) { // Bypass e.set... | 16,200 |
public Error(String s) { super(s); } | public Error(String s) { super(s); } | 16,203 |
private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);... | private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);... | 16,204 |
private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);... | private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);... | 16,205 |
private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);... | private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);... | 16,206 |
private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);... | private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);... | 16,207 |
private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);... | private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);... | 16,208 |
private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);... | private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);... | 16,209 |
private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);... | private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);... | 16,210 |
private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);... | private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; // First, see if a protocol handler is in our cache if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph);... | 16,211 |
public static synchronized void setURLStreamHandlerFactory(URLStreamHandlerFactory fac) { if (factory != null) throw new Error("URLStreamHandlerFactory already set"); // Throw an exception if an extant security mgr precludes // setting the factory. SecurityManager s = System.getSecurityManager(); if (s != null)... | public static synchronized void setURLStreamHandlerFactory(URLStreamHandlerFactory fac) { if (factory != null) throw new Error("URLStreamHandlerFactory already set"); // Throw an exception if an extant security mgr precludes // setting the factory. SecurityManager s = System.getSecurityManager(); if (s != null)... | 16,212 |
public static String getProperty(String key) { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPropertyAccess(key); else if (key.length() == 0) throw new IllegalArgumentException("key can't be empty"); return properties.getProperty(key); } | public static String getProperty(String key) { SecurityManager sm = SecurityManager.current; // Be thread-safe. if (sm != null) sm.checkPropertyAccess(key); else if (key.length() == 0) throw new IllegalArgumentException("key can't be empty"); return properties.getProperty(key); } | 16,213 |
public static String getProperty(String key) { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPropertyAccess(key); else if (key.length() == 0) throw new IllegalArgumentException("key can't be empty"); return properties.getProperty(key); } | public static String getProperty(String key) { SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPropertyAccess(key); else if (key.length() == 0) throw new IllegalArgumentException("key can't be empty"); return SystemProperties.getProperty(key); } | 16,214 |
public synchronized V get(Object key) { int idx = hash(key); HashEntry<K, V> e = buckets[idx]; while (e != null) { if (key.equals(e.key)) return e.value; e = e.next; } return null; } | public synchronized V get(Object key) { int idx = hash(key); HashEntry<K, V> e = buckets[idx]; while (e != null) { if (e.key.equals(key)) return e.value; e = e.next; } return null; } | 16,215 |
public StringTokenizer(String str, String delim) { this(str, delim, false); } | public StringTokenizer(String str, String delim) { this(str, delim, false); } | 16,216 |
public String nextToken() throws NoSuchElementException { if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.indexOf(str.charAt... | public String nextToken() throws NoSuchElementException { if (pos < len && delim.indexOf(str.charAt(pos)) >= 0) { if (retDelims) return str.substring(pos, ++pos); while (++pos < len && delim.indexOf(str.charAt(pos)) >= 0); } if (pos < len) { int start = pos; while (++pos < len && delim.indexOf(str.charAt... | 16,217 |
protected void initVkMap() { vkMap[0] = KeyEvent.VK_UNDEFINED; vkMap[1] = KeyEvent.VK_ESCAPE; vkMap[2] = KeyEvent.VK_AMPERSAND; vkMap[3] = KeyEvent.VK_E; // TODO : remap to vkMap[4] = KeyEvent.VK_QUOTEDBL; vkMap[5] = KeyEvent.VK_QUOTE; vkMap[6] = KeyEvent.VK_OPEN_BRACKET; vkMap[7] = KeyEvent.VK_MINUS; vkMap[... | protected void initVkMap(int []vkMap, char[] lcharMap, char[] ucharMap, char[] altGrCharMap) { vkMap[0] = KeyEvent.VK_UNDEFINED; vkMap[1] = KeyEvent.VK_ESCAPE; vkMap[2] = KeyEvent.VK_AMPERSAND; vkMap[3] = KeyEvent.VK_E; // TODO : remap to vkMap[4] = KeyEvent.VK_QUOTEDBL; vkMap[5] = KeyEvent.VK_QUOTE; vkMap[6] ... | 16,218 |
protected char interpretExtendedScanCode(int scancode, int vk, boolean released) throws UnsupportedKeyException, DeadKeyException { boolean deadKey = false;// System.err.print("vk = "+vk); switch(vk) { case KeyEvent.VK_DEAD_CIRCUMFLEX: lastDeadVK = KeyEvent.VK_DEAD_CIRCUMFLEX; lastFlags = flags; deadKey ... | protected char interpretExtendedScanCode(int scancode, int vk, boolean released) throws UnsupportedKeyException, DeadKeyException { boolean deadKey = false;// System.err.print("vk = "+vk); switch(vk) { case KeyEvent.VK_DEAD_CIRCUMFLEX: lastDeadVK = KeyEvent.VK_DEAD_CIRCUMFLEX; lastFlags = getFlags(); dea... | 16,220 |
public KeyboardInterpreter() { vkMap = new int[256]; lcharMap = new char[256]; ucharMap = new char[256]; altGrCharMap = new char[256]; initVkMap(); } | public KeyboardInterpreter() { vkMap = new int[256]; lcharMap = new char[256]; ucharMap = new char[256]; altGrCharMap = new char[256]; initVkMap(vkMap, lcharMap, ucharMap, altGrCharMap); } | 16,221 |
protected abstract void initVkMap(); | protected abstract void initVkMap(int []vkMap, char[] lcharMap, char[] ucharMap, char[] altGrCharMap); | 16,222 |
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (! tk.nativeQueueEmpty() && (curr - l... | public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (! tk.nativeQueueEmpty() && (curr - l... | 16,223 |
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (! tk.nativeQueueEmpty() && (curr - l... | public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (! tk.nativeQueueEmpty() && (curr - l... | 16,224 |
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (! tk.nativeQueueEmpty() && (curr - l... | public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (! tk.nativeQueueEmpty() && (curr - l... | 16,225 |
public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (! tk.nativeQueueEmpty() && (curr - l... | public synchronized AWTEvent getNextEvent() throws InterruptedException { if (next != null) return next.getNextEvent(); ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (! tk.nativeQueueEmpty() && (curr - l... | 16,226 |
public static KeyboardFocusManager getCurrentKeyboardFocusManager() { // XXX Need a way to divide this into contexts. return current; } | public static KeyboardFocusManager getCurrentKeyboardFocusManager() { // XXX Need a way to divide this into contexts. ThreadGroup currentGroup = Thread.currentThread ().getThreadGroup (); return (KeyboardFocusManager) currentKeyboardFocusManagers.get (currentGroup); } | 16,227 |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleBox(); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleBox(); return accessibleContext; } | 16,228 |
public NoSuchProviderException(String msg) { super(msg); } | public NoSuchProviderException() { super(msg); } | 16,230 |
public NoSuchProviderException(String msg) { super(msg); } | public NoSuchProviderException(String msg) { } | 16,231 |
public SecureRandom() { Provider[] p = Security.getProviders(); //Format of Key: SecureRandom.algname String key; String classname = null; int i; Enumeration e; for (i = 0; i < p.length; i++) { e = p[i].propertyNames(); while (e.hasMoreElements()) { key = (... | public SecureRandom() { Provider[] p = Security.getProviders(); //Format of Key: SecureRandom.algname String key; String classname = null; int i; Enumeration e; for (i = 0; i < p.length; i++) { e = p[i].propertyNames(); while (e.hasMoreElements()) { key = (... | 16,232 |
public static Registry getRegistry(String host) throws RemoteException { return (getRegistry(host, Registry.REGISTRY_PORT));} | public static Registry getRegistry(String host) throws RemoteException { return (getRegistry(host, Registry.REGISTRY_PORT));} | 16,233 |
public SwingDialogPeer(SwingToolkit toolkit, Dialog dialog) { super(toolkit, dialog, new SwingDialog(dialog)); jComponent.setTitle(dialog.getTitle()); jComponent.getContentPane().setLayout(new SwingContainerLayout(this)); } | public SwingDialogPeer(SwingToolkit toolkit, Dialog dialog) { super(toolkit, dialog, new SwingDialog(dialog)); jComponent.setTitle(dialog.getTitle()); jComponent.getContentPane().setLayout(new SwingContainerLayout(dialog, this)); } | 16,234 |
public SwingContainerLayout(SwingContainerPeer containerPeer) { this.containerPeer = containerPeer; } | public SwingContainerLayout(Container awtContainer, SwingContainerPeer containerPeer) { this.awtContainer = awtContainer; this.containerPeer = containerPeer; } | 16,235 |
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... | 16,236 |
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... | 16,237 |
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... | 16,238 |
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, oldValue, newValue); } | protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, new Boolean(oldValue), new Boolean(newValue)); } | 16,243 |
public JTextField(int a) { } | public JTextField(int a) { } | 16,244 |
public static BindingType extract(Any any) { try { return ((BindingTypeHolder) any.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION("Binding type expected"); } } | public static BindingType extract(Any any) { try { return ((BindingTypeHolder) any.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION("Binding type expected"); bad.initCause(ex); throw bad; } } | 16,245 |
public abstract byte[] getEncoded(int format); | public byte[] getEncoded() { return getEncoded(defaultFormat); } | 16,246 |
public byte[] encodePrivateKey(PrivateKey key) { if (! (key instanceof DSSPrivateKey)) throw new IllegalArgumentException("Wrong key type"); DERValue derVersion = new DERValue(DER.INTEGER, BigInteger.ZERO); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, DSA_ALG_OID); DSSPrivateKey pk = (DSSPr... | public byte[] encodePrivateKey(PrivateKey key) { if (! (key instanceof DSSPrivateKey)) throw new InvalidParameterException("Wrong key type"); DERValue derVersion = new DERValue(DER.INTEGER, BigInteger.ZERO); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, DSA_ALG_OID); DSSPrivateKey pk = (DSSP... | 16,247 |
public StringBuilder append(String str) { if (str == null) str = "null"; int len = str.count; ensureCapacity(count + len); str.getChars(0, len, value, count); count += len; return this; } | public StringBuilder append(Object obj) { if (str == null) str = "null"; int len = str.count; ensureCapacity(count + len); str.getChars(0, len, value, count); count += len; return this; } | 16,248 |
public StringBuilder append(String str) { if (str == null) str = "null"; int len = str.count; ensureCapacity(count + len); str.getChars(0, len, value, count); count += len; return this; } | public StringBuilder append(String str) { if (str == null) str = "null"; int len = str.count; ensureCapacity(count + len); str.getChars(0, len, value, count); count += len; return this; } | 16,249 |
protected String toExternalForm(URL url) { String protocol; String file; String ref; String authority; protocol = url.getProtocol(); authority = url.getAuthority(); if (authority == null) authority = ""; file = url.getFile(); ref = url.getRef(); // Guess a reasonable size for the str... | protected String toExternalForm(URL url) { String protocol; String file; String ref; String authority; protocol = url.getProtocol(); authority = url.getAuthority(); if (authority == null) authority = ""; file = url.getFile(); ref = url.getRef(); // Guess a reasonable size for the str... | 16,250 |
public int lastIndexOf(int ch, int fromIndex) { if ((char) ch != ch) return -1; if (fromIndex >= count) fromIndex = count - 1; int i = fromIndex + offset; for ( ; fromIndex >= 0; fromIndex--) if (value[i--] == ch) return fromIndex; return -1; } | public int lastIndexOf(int ch) { if ((char) ch != ch) return -1; if (fromIndex >= count) fromIndex = count - 1; int i = fromIndex + offset; for ( ; fromIndex >= 0; fromIndex--) if (value[i--] == ch) return fromIndex; return -1; } | 16,251 |
public int lastIndexOf(int ch, int fromIndex) { if ((char) ch != ch) return -1; if (fromIndex >= count) fromIndex = count - 1; int i = fromIndex + offset; for ( ; fromIndex >= 0; fromIndex--) if (value[i--] == ch) return fromIndex; return -1; } | public int lastIndexOf(int ch, int fromIndex) { if ((char) ch != ch) return -1; if (fromIndex >= count) fromIndex = count - 1; int i = fromIndex + offset; for ( ; fromIndex >= 0; fromIndex--) if (value[i--] == ch) return fromIndex; return -1; } | 16,252 |
public static String guessContentTypeFromStream(InputStream is) throws IOException, NotImplementedException { // See /etc/gnome-vfs-mime-magic or /etc/mime-magic for a reasonable // idea of how to handle this. return "application/octet-stream"; } | public static String guessContentTypeFromStream(InputStream is) throws IOException { // See /etc/gnome-vfs-mime-magic or /etc/mime-magic for a reasonable // idea of how to handle this. return "application/octet-stream"; } | 16,253 |
public UnknownServiceException(String message) { super(message); } | public UnknownServiceException() { super(message); } | 16,256 |
public UnknownServiceException(String message) { super(message); } | public UnknownServiceException(String message) { } | 16,257 |
public long getTime() { refresh_millis(); return millis; } | public long getTime() { refresh_millis(); return millis; } | 16,259 |
public Locale(String language, String country, String variant) { // During bootstrap, we already know the strings being passed in are // the correct capitalization, and not null. We can't call // String.toUpperCase during this time, since that depends on the // default locale. if (defa... | public Locale(String language, String country, String variant) { // During bootstrap, we already know the strings being passed in are // the correct capitalization, and not null. We can't call // String.toUpperCase during this time, since that depends on the // default locale. if (defa... | 16,260 |
public X509Certificate(InputStream encoded) throws CertificateException, IOException { super(); extensions = new HashMap(); try { parse(encoded); } catch (IOException ioe) { debug(ioe); throw ioe; } catch (Exception e) { debug(e); Certific... | public X509Certificate(InputStream encoded) throws CertificateException, IOException { super(); extensions = new HashMap(); try { parse(encoded); } catch (IOException ioe) { logger.log (Component.X509, "", ioe); throw ioe; } catch (Exception e) { ... | 16,261 |
public X509Certificate(InputStream encoded) throws CertificateException, IOException { super(); extensions = new HashMap(); try { parse(encoded); } catch (IOException ioe) { debug(ioe); throw ioe; } catch (Exception e) { debug(e); Certific... | public X509Certificate(InputStream encoded) throws CertificateException, IOException { super(); extensions = new HashMap(); try { parse(encoded); } catch (IOException ioe) { debug(ioe); throw ioe; } catch (Exception e) { logger.log (Component.X50... | 16,262 |
private void doVerify(Signature sig, PublicKey key) throws CertificateException, InvalidKeyException, SignatureException { debug("verifying sig=" + sig + " key=" + key); sig.initVerify(key); sig.update(tbsCertBytes); if (!sig.verify(signature)) { throw new CertificateException("signature not v... | private void doVerify(Signature sig, PublicKey key) throws CertificateException, InvalidKeyException, SignatureException { logger.log (Component.X509, "verifying sig={0} key={1}", new Object[] { sig, key }); sig.initVerify(key); sig.update(tbsCertBytes); if (!sig.verify(signature)) { throw new... | 16,263 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); this.encoded = cert.getEncoded(); if (!cert.isCo... | 16,264 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,265 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,266 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,267 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,268 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,269 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,270 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,271 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,272 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,273 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,274 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,275 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,276 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,277 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,278 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,279 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,280 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,281 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,282 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,283 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,284 |
private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | private void parse(InputStream encoded) throws Exception { DERReader der = new DERReader(encoded); // Certificate ::= SEQUENCE { DERValue cert = der.read(); debug("start Certificate len == " + cert.getLength()); this.encoded = cert.getEncoded(); if (!cert.isConstructed()) { throw new I... | 16,285 |
public synchronized void log(Level level, String message, Object param) { StackTraceElement caller = getCallerStackFrame(); logp(level, caller.getClassName(), caller.getMethodName(), message, param); } | public synchronized void log(Level level, String message, Object param) { StackTraceElement caller = getCallerStackFrame(); logp(level, caller.getClassName(), caller.getMethodName(), message, param); } | 16,286 |
public synchronized void log(Level level, String message, Object param) { StackTraceElement caller = getCallerStackFrame(); logp(level, caller.getClassName(), caller.getMethodName(), message, param); } | public synchronized void log(Level level, String message, Object param) { StackTraceElement caller = getCallerStackFrame(); logp(level, caller.getClassName(), caller.getMethodName(), message, param); } | 16,287 |
public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException ex) { return null; } } | public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException ex) { return null; } } | 16,288 |
public DERReader(InputStream in) { if (!in.markSupported()) this.in = new BufferedInputStream(in, 16384); else this.in = in; encBuf = new ByteArrayOutputStream(2048); } | public DERReader(byte[] in) { if (!in.markSupported()) this.in = new BufferedInputStream(in, 16384); else this.in = in; encBuf = new ByteArrayOutputStream(2048); } | 16,290 |
public DERReader(InputStream in) { if (!in.markSupported()) this.in = new BufferedInputStream(in, 16384); else this.in = in; encBuf = new ByteArrayOutputStream(2048); } | public DERReader(InputStream in) { if (!in.markSupported()) this.in = new BufferedInputStream(in, 16384); else this.in = in; encBuf = new ByteArrayOutputStream(2048); } | 16,291 |
public BitString(byte[] bytes, int offset, int length, int ignoredBits) { this(bytes, offset, length, ignoredBits, false); } | public BitString(byte[] bytes, int ignoredBits, boolean doShift) { this(bytes, offset, length, ignoredBits, false); } | 16,292 |
public BitString(byte[] bytes, int offset, int length, int ignoredBits) { this(bytes, offset, length, ignoredBits, false); } | public BitString(byte[] bytes, int offset, int length, int ignoredBits) { this(bytes, 0, bytes.length, ignoredBits, doShift); } | 16,293 |
public static String hexDump(byte[] buf, String prefix) { return hexDump(buf, 0, buf.length, prefix); } | public static String hexDump(byte[] buf, int off, int len, String prefix) { return hexDump(buf, 0, buf.length, prefix); } | 16,294 |
public static String hexDump(byte[] buf, String prefix) { return hexDump(buf, 0, buf.length, prefix); } | public static String hexDump(byte[] buf, String prefix) { String nl = System.getProperty("line.separator"); StringBuffer str = new StringBuffer(); int i = 0; while (i < len) { str.append(prefix); str.append(Util.formatInt(i+off, 16, 8)); str.append(" "); String s = Util.toHexString(buf, i+off, Math.min(16, len-i... | 16,295 |
public SwingPropertyChangeSupport(Object source) { super(source); this.source = source; this.listeners = new EventListenerList(); this.propertyListeners = new HashMap(); } | public SwingPropertyChangeSupport(Object source) { super(source); this.source = source; this.listeners = new EventListenerList(); this.propertyListeners = new HashMap(); } | 16,296 |
private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi... | private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi... | 16,297 |
private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi... | private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.offset = offset; this.length = buffer.remaining(); this.lst = offset + ... | 16,298 |
private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi... | private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi... | 16,299 |
private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi... | private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi... | 16,300 |
private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi... | private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi... | 16,301 |
private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi... | private BufferType ( long offset, ByteBuffer buffer ) { if ( offset < 0 ) throw new IllegalArgumentException ( "offset < 0" ); this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); this.ofsR = (int)(offset % alignment); this.lst = offset + length; thi... | 16,302 |
private String toBlockString ( long offset, long length ) { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained: " ); break; case CROSSED: str.append ( "Crossed: " ); break; case ALIGNED: str.append... | private String toBlockString ( long offset, long length ) { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained: " ); break; case CROSSED: str.append ( "Crossed: " ); break; case ALIGNED: str.append... | 16,303 |
private String toBlockString ( long offset, long length ) { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained: " ); break; case CROSSED: str.append ( "Crossed: " ); break; case ALIGNED: str.append... | private String toBlockString ( long offset, long length ) { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained: " ); break; case CROSSED: str.append ( "Crossed: " ); break; case ALIGNED: str.append... | 16,304 |
private String toBlockString ( long offset, long length ) { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained: " ); break; case CROSSED: str.append ( "Crossed: " ); break; case ALIGNED: str.append... | private String toBlockString ( long offset, long length ) { StringBuilder str = new StringBuilder(); switch ( type ) { case EMPTY: str.append ( "Empty" ); break; case CONTAINED: str.append ( "Contained: " ); break; case CROSSED: str.append ( "Crossed: " ); break; case ALIGNED: str.append... | 16,305 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.