rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
if (key.equals(e.key)) | if (e.key.equals(key)) | 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... |
stats.lastMarkIterations++; | private final void markHeap(VmBootHeap bootHeap, VmAbstractHeap firstHeap, boolean locking) { if (writeBarrier != null) { writeBarrier.setActive(true); } final long startTime = VmSystem.currentKernelMillis(); long markedObjects = 0; boolean firstIteration = ... | |
triggerSize = (int)Math.min(Integer.MAX_VALUE, getFreeMemory() * GC_TRIGGER_PERCENTAGE); | final void resetCurrentHeap() { this.currentHeap = this.firstHeap; } | |
public Error(String s) { super(s); } | public Error() { } | public Error(String s) { super(s); } |
private static synchronized URLStreamHandler getURLStreamHandler(String protocol) { URLStreamHandler ph; | private static synchronized URLStreamHandler getURLStreamHandler( String protocol) { | 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);... |
if (cache_handlers) { Class cls = (Class)ph_cache.get(protocol); if (cls != null) { try { ph = (URLStreamHandler)cls.newInstance(); return (ph); } catch (Exception e) { } } } | if (cache_handlers) { final Class cls = (Class) ph_cache.get(protocol); if (cls != null) { try { return (URLStreamHandler) cls.newInstance(); } catch (Exception e) { } } } | 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);... |
if (factory != null) { ph = factory.createURLStreamHandler(protocol); if (ph != null) { if (cache_handlers) ph_cache.put(protocol, ph.getClass()); | if (factory != null) { URLStreamHandler ph; ph = factory.createURLStreamHandler(protocol); if (ph != null) { if (cache_handlers) { ph_cache.put(protocol, ph.getClass()); } 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);... |
return (ph); } } | StringTokenizer st = new StringTokenizer(ph_search_path, "|"); while (st.hasMoreTokens()) { String clsname = st.nextToken() + "." + protocol + ".Handler"; | 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);... |
StringTokenizer st = new StringTokenizer(ph_search_path, "|"); while (st.hasMoreTokens()) { String clsname = st.nextToken() + "." + protocol + ".Handler"; | try { final ClassLoader cl = Thread.currentThread() .getContextClassLoader(); final Class cls = cl.loadClass(clsname); Object obj = cls.newInstance(); URLStreamHandler ph; if (!(obj instanceof URLStreamHandler)) { continue; } else { ph = (URLStreamHandler) obj; } | 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);... |
try { final ClassLoader cl = Thread.currentThread().getContextClassLoader(); final Class cls = cl.loadClass(clsname); Object obj = cls.newInstance(); if (!(obj instanceof URLStreamHandler)) continue; else ph = (URLStreamHandler)obj; | if (cache_handlers) { ph_cache.put(protocol, cls); } | 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);... |
if (cache_handlers) ph_cache.put(protocol, cls); | return (ph); } catch (Exception e) { } } | 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);... |
return (ph); } catch (Exception e) { } } return null; } | return null; } | 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);... |
SecurityManager s = System.getSecurityManager(); if (s != null) s.checkSetFactory(); factory = fac; } | SecurityManager s = System.getSecurityManager(); if (s != null) { s.checkSetFactory(); } factory = fac; } | 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)... |
SecurityManager sm = Runtime.securityManager; | SecurityManager sm = SecurityManager.current; | 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); } |
return properties.getProperty(key); | return SystemProperties.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 properties.getProperty(key); } |
if (key.equals(e.key)) | if (e.key.equals(key)) | 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 StringTokenizer(String str, String delim) { this(str, delim, false); | public StringTokenizer(String str) { this(str, " \t\n\r\f", false); | public StringTokenizer(String str, String delim) { this(str, delim, false); } |
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(pos)) < 0); r... | public String nextToken(String delim) throws NoSuchElementException { this.delim = delim; return nextToken(); | 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... |
protected void initVkMap() { | protected void initVkMap(int []vkMap, char[] lcharMap, char[] ucharMap, char[] altGrCharMap) { | 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[... |
vkMap[84] = KeyEvent.VK_PRINTSCREEN; | 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[... | |
lastFlags = flags; | lastFlags = getFlags(); | 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 ... |
initVkMap(); | initVkMap(vkMap, lcharMap, ucharMap, altGrCharMap); | public KeyboardInterpreter() { vkMap = new int[256]; lcharMap = new char[256]; ucharMap = new char[256]; altGrCharMap = new char[256]; initVkMap(); } |
protected abstract void initVkMap(); | protected abstract void initVkMap(int []vkMap, char[] lcharMap, char[] ucharMap, char[] altGrCharMap); | protected abstract void initVkMap(); |
ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis(); if (! tk.nativeQueueEmpty() && (curr - lastNativeQueueAccess > humanLatencyThreshold)) { tk.iterateNativeQueue(this, false); lastNativeQueueAccess = curr; } | 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... | |
if (isDispatchThread()) { | 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... | |
tk.iterateNativeQueue(this, true); lastNativeQueueAccess = System.currentTimeMillis(); } else { try { | 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... | |
catch (InterruptedException ie) { } } } | 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... | |
return current; | ThreadGroup currentGroup = Thread.currentThread ().getThreadGroup (); return (KeyboardFocusManager) currentKeyboardFocusManagers.get (currentGroup); | public static KeyboardFocusManager getCurrentKeyboardFocusManager() { // XXX Need a way to divide this into contexts. return current; } |
if (accessibleContext == null) accessibleContext = new AccessibleBox(); | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleBox(); return accessibleContext; } | |
if (way != X_AXIS && way != Y_AXIS && way != LINE_AXIS && way != PAGE_AXIS) throw new AWTError("Invalid axis"); | public BoxLayout(Container container, int way) { int width = 0; int height = 0; this.container = container; this.way = way; } | |
public NoSuchProviderException(String msg) | public NoSuchProviderException() | public NoSuchProviderException(String msg) { super(msg); } |
super(msg); | public NoSuchProviderException(String msg) { super(msg); } | |
secureRandomSpi = new gnu.java.security.provider.SHA1PRNG(); | secureRandomSpi = new Sha160RandomSpi(); algorithm = "Sha160"; | 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 static Registry getRegistry(String host) throws RemoteException { return (getRegistry(host, Registry.REGISTRY_PORT)); | public static Registry getRegistry() throws RemoteException { return (getRegistry("localhost", Registry.REGISTRY_PORT)); | public static Registry getRegistry(String host) throws RemoteException { return (getRegistry(host, Registry.REGISTRY_PORT));} |
jComponent.getContentPane().setLayout(new SwingContainerLayout(this)); | jComponent.getContentPane().setLayout(new SwingContainerLayout(dialog, this)); | public SwingDialogPeer(SwingToolkit toolkit, Dialog dialog) { super(toolkit, dialog, new SwingDialog(dialog)); jComponent.setTitle(dialog.getTitle()); jComponent.getContentPane().setLayout(new SwingContainerLayout(this)); } |
public SwingContainerLayout(SwingContainerPeer containerPeer) { | public SwingContainerLayout(Container awtContainer, SwingContainerPeer containerPeer) { this.awtContainer = awtContainer; | public SwingContainerLayout(SwingContainerPeer containerPeer) { this.containerPeer = containerPeer; } |
setBackground(table.getSelectionBackground()); setForeground(table.getSelectionForeground()); | super.setBackground(table.getSelectionBackground()); super.setForeground(table.getSelectionForeground()); | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... |
setBackground(table.getBackground()); setForeground(table.getForeground()); | if (background != null) super.setBackground(background); else super.setBackground(table.getBackground()); if (foreground != null) super.setForeground(foreground); else super.setForeground(table.getForeground()); | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... |
setBackground(table.getBackground()); | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... | |
Color back = getBackground(); setOpaque(back != null && back.equals(table.getBackground())); | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i... | |
background = c; | public void setBackground(Color c) { super.setBackground(c); } | |
foreground = c; | public void setForeground(Color c) { super.setForeground(c); } | |
background = null; foreground = null; | public void updateUI() { super.updateUI(); } | |
changeSupport.firePropertyChange(propertyName, oldValue, newValue); | changeSupport.firePropertyChange(propertyName, new Boolean(oldValue), new Boolean(newValue)); | protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, oldValue, newValue); } |
public JTextField(int a) { } | public JTextField() { this(null, null, 0); } | public JTextField(int a) { } |
throw new BAD_OPERATION("Binding type expected"); | BAD_OPERATION bad = new BAD_OPERATION("Binding type expected"); bad.initCause(ex); throw bad; | public static BindingType extract(Any any) { try { return ((BindingTypeHolder) any.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION("Binding type expected"); } } |
public abstract byte[] getEncoded(int format); | public byte[] getEncoded() { return getEncoded(defaultFormat); } | public abstract byte[] getEncoded(int format); |
throw new IllegalArgumentException("Wrong key type"); | throw new InvalidParameterException("Wrong key type"); | 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 StringBuilder append(String str) | public StringBuilder append(Object obj) | 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; } |
if (str == null) str = "null"; int len = str.count; ensureCapacity(count + len); str.getChars(0, len, value, count); count += len; return this; | return append(obj == null ? "null" : obj.toString()); | 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; } |
if (protocol != null && protocol.length() > 0) | if (protocol.length() > 0) | 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... |
public int lastIndexOf(int ch, int fromIndex) | public int lastIndexOf(int ch) | 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; } |
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; | return lastIndexOf(ch, count - 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; } |
throws IOException, NotImplementedException | throws IOException | 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"; } |
String result = VMURLConnection.guessContentTypeFromStream(is); if (result == null) | 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"; } | |
return result; | 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 UnknownServiceException(String message) | public UnknownServiceException() | public UnknownServiceException(String message) { super(message); } |
super(message); | public UnknownServiceException(String message) { super(message); } | |
if (oneBasedHour && value == 12) value = 0; if (oneBasedHourOfDay && value == 24) value = 0; | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | |
public long getTime() { refresh_millis(); return millis; | public long getTime() { return time; | public long getTime() { refresh_millis(); return millis; } |
hashcode = language.hashCode() ^ country.hashCode() ^ variant.hashCode(); | hashcodeCache = language.hashCode() ^ country.hashCode() ^ variant.hashCode(); | 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... |
debug(ioe); | logger.log (Component.X509, "", ioe); | 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... |
debug(e); | logger.log (Component.X509, "", e); | 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... |
debug("verifying sig=" + sig + " key=" + key); | logger.log (Component.X509, "verifying sig={0} key={1}", new Object[] { sig, key }); | 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... |
debug("start Certificate len == " + cert.getLength()); | logger.log (Component.X509, "start Certificate len == {0}", new Integer (cert.getLength())); | 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... |
debug("start TBSCertificate len == " + tbsCert.getLength()); | logger.log (Component.X509, "start TBSCertificate len == {0}", new Integer (tbsCert.getLength())); | 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... |
debug("read version == " + version); | logger.log (Component.X509, "read version == {0}", new Integer (version)); | 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... |
debug("read serial number == " + serialNo); | logger.log (Component.X509, "read serial number == {0}", serialNo); | 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... |
debug("start AlgorithmIdentifier len == " + certAlgLen); | logger.log (Component.X509, "start AlgorithmIdentifier len == {0}", new Integer (certAlgLen)); | 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... |
debug("read algorithm ID == " + algId); | logger.log (Component.X509, "read algorithm ID == {0}", algId); | 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... |
debug("read algorithm parameters == " + algVal); | logger.log (Component.X509, "read algorithm parameters == {0}", algVal); | 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... |
debug("read issuer == " + issuer); | logger.log (Component.X509, "read issuer == {0}", issuer); | 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... |
debug("read notBefore == " + notBefore); debug("read notAfter == " + notAfter); | logger.log (Component.X509, "read notAfter == {0}", notAfter); | 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... |
debug("read subject == " + subject); | logger.log (Component.X509, "read subject == {0}", subject); | 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... |
debug("read subjectPublicKey == " + subjectKey); | logger.log (Component.X509, "read subjectPublicKey == {0}", subjectKey); | 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... |
debug("read issuerUniqueId == " + issuerUniqueId); | logger.log (Component.X509, "read issuerUniqueId == {0}", issuerUniqueId); | 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... |
debug("read subjectUniqueId == " + subjectUniqueId); | logger.log (Component.X509, "read subjectUniqueId == {0}", subjectUniqueId); | 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... |
debug("start Extensions len == " + val.getLength()); | logger.log (Component.X509, "start Extensions len == {0}", new Integer (val.getLength())); | 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... |
debug("start extension len == " + ext.getLength()); | logger.log (Component.X509, "start extension len == {0}", new Integer (ext.getLength())); | 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... |
debug("count == " + len); | logger.log (Component.X509, "read extension {0} == {1}", new Object[] { e.getOid (), e }); logger.log (Component.X509, "count == {0}", new Integer (len)); | 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... |
val = der.read(); | logger.log (Component.X509, "read value {0}", val); | 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... |
throw new IOException("malformed AlgorithmIdentifier"); | throw new CertificateException ("malformed AlgorithmIdentifier"); | 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... |
debug("start AlgorithmIdentifier len == " + sigAlgLen); | logger.log (Component.X509, "start AlgorithmIdentifier len == {0}", new Integer (sigAlgLen)); | 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... |
debug("read algorithm id == " + sigAlgId); | logger.log (Component.X509, "read algorithm id == {0}", sigAlgId); | 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... |
debug("read parameters == " + sigAlgVal); | logger.log (Component.X509, "read parameters == {0}", sigAlgVal); | 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... |
debug("read signature ==\n" + Util.hexDump(signature, ">>>> ")); | logger.log (Component.X509, "read signature ==\n{0}", Util.hexDump(signature, ">>>> ")); | 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... |
public synchronized void log(Level level, String message, Object param) | public synchronized void log(LogRecord record) | public synchronized void log(Level level, String message, Object param) { StackTraceElement caller = getCallerStackFrame(); logp(level, caller.getClassName(), caller.getMethodName(), message, param); } |
StackTraceElement caller = getCallerStackFrame(); logp(level, caller.getClassName(), caller.getMethodName(), message, param); | if (!isLoggable(record.getLevel())) return; if ((filter != null) && !filter.isLoggable(record)) return; if (record.getLoggerName() == null) record.setLoggerName(name); synchronized (LogManager.getLogManager()) { Logger curLogger = this; do { for (int i = 0; i < curLogger.handlers.length; i++) curLogger.handlers[... | public synchronized void log(Level level, String message, Object param) { StackTraceElement caller = getCallerStackFrame(); logp(level, caller.getClassName(), caller.getMethodName(), message, param); } |
public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException ex) { return null; } | public Object clone() { try { return super.clone(); | public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException ex) { return null; } } |
catch (CloneNotSupportedException ex) { return null; } } | public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException ex) { return null; } } | |
public DERReader(InputStream in) | public DERReader(byte[] in) | public DERReader(InputStream in) { if (!in.markSupported()) this.in = new BufferedInputStream(in, 16384); else this.in = in; encBuf = new ByteArrayOutputStream(2048); } |
if (!in.markSupported()) this.in = new BufferedInputStream(in, 16384); else this.in = in; encBuf = new ByteArrayOutputStream(2048); | this(new ByteArrayInputStream(in)); | public DERReader(InputStream in) { if (!in.markSupported()) this.in = new BufferedInputStream(in, 16384); else this.in = in; encBuf = new ByteArrayOutputStream(2048); } |
public BitString(byte[] bytes, int offset, int length, int ignoredBits) | public BitString(byte[] bytes, int ignoredBits, boolean doShift) | public BitString(byte[] bytes, int offset, int length, int ignoredBits) { this(bytes, offset, length, ignoredBits, false); } |
this(bytes, offset, length, ignoredBits, false); | this(bytes, 0, bytes.length, ignoredBits, doShift); | public BitString(byte[] bytes, int offset, int length, int ignoredBits) { this(bytes, offset, length, ignoredBits, false); } |
public static String hexDump(byte[] buf, String prefix) | public static String hexDump(byte[] buf, int off, int len, String prefix) | public static String hexDump(byte[] buf, String prefix) { return hexDump(buf, 0, buf.length, prefix); } |
return hexDump(buf, 0, buf.length, 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), ' '); str.append(s); for (int j = 56 - (56 - s.length()); j <... | public static String hexDump(byte[] buf, String prefix) { return hexDump(buf, 0, buf.length, prefix); } |
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(); } |
this.buffer = buffer; this.offset = offset; this.length = buffer.remaining(); | this.buffer = buffer; | 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... |
this.ofsR = (int)(offset % alignment); | this.offset = offset; this.length = buffer.remaining(); | 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... |
this.lst = offset + length; this.lstR = (int)(lst % alignment); this.start = offset - ofsR; this.end = ( lstR == 0 ) ? lst : lst - lstR + alignment; | this.ofsR = (int) (offset % alignment); | 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.