bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public final Object clone(Object object) { testInited(); final VmClassType objectClass = helper.getVmClass(object); final Address objectAddr = helper.addressOf(object); final int size; if (objectClass.isArray()) { final int slotSize = Unsafe.getCurrentProcessor().getArchitecture().getReferenceSize(); final Vm... | public final Object clone(Object object) { testInited(); final VmClassType objectClass = helper.getVmClass(object); final Address objectAddr = helper.addressOf(object); final int size; if (objectClass.isArray()) { final int slotSize = Unsafe.getCurrentProcessor().getArchitecture().getReferenceSize(); final Vm... | 25,459 |
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); } | 25,460 |
public String(byte[] data) { this(data, 0, data.length); } | public String() { this(data, 0, data.length); } | 25,461 |
public String(byte[] data) { this(data, 0, data.length); } | public String(byte[] data) { value = "".value; offset = 0; count = 0; } | 25,462 |
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; } | 25,463 |
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; } | 25,464 |
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(); } | 25,465 |
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... | 25,466 |
public ObjectHolder(org.omg.CORBA.Object initial_value) { value = initial_value; } | public ObjectHolder() { value = initial_value; } | 25,467 |
public ObjectHolder(org.omg.CORBA.Object initial_value) { value = initial_value; } | public ObjectHolder(org.omg.CORBA.Object initial_value) { } | 25,468 |
public Error(String s) { super(s); } | public Error(String s) { super(s); } | 25,471 |
public ClassCastException(String s) { super(s); } | public ClassCastException() { super(s); } | 25,472 |
public ClassCastException(String s) { super(s); } | public ClassCastException(String s) { } | 25,473 |
public URL(String protocol, String host, int port, String file) throws MalformedURLException { this(protocol, host, port, file, null); } | public URL(String protocol, String host, int port, String file) throws MalformedURLException { this(protocol, host, port, file, null); } | 25,474 |
public boolean equals(Object obj) { if (obj == null || !(obj instanceof URL)) return false; URL uObj = (URL)obj; return handler.equals(this, uObj); } | public boolean equals(Object obj) { if (obj == null || !(obj instanceof URL)) return false; URL uObj = (URL)obj; return handler.equals(this, uObj); } | 25,475 |
public boolean equals(Object obj) { if (obj == null || !(obj instanceof URL)) return false; URL uObj = (URL)obj; return handler.equals(this, uObj); } | public boolean equals(Object obj) { if (obj == null || !(obj instanceof URL)) return false; URL uObj = (URL)obj; return handler.equals(this, uObj); } | 25,476 |
public boolean equals(Object obj) { if (obj == null || !(obj instanceof URL)) return false; URL uObj = (URL)obj; return handler.equals(this, uObj); } | public boolean equals(Object obj) { if (obj == null || !(obj instanceof URL)) return false; URL uObj = (URL)obj; return handler.equals(this, uObj); } | 25,477 |
public String getAuthority() { return authority; } | public String getAuthority() { return authority; } | 25,478 |
public final Object getContent() throws IOException { return openConnection().getContent(); } | public final Object getContent() throws IOException { return openConnection().getContent(); } | 25,479 |
public int getDefaultPort() { return handler.getDefaultPort(); } | public int getDefaultPort() { return handler.getDefaultPort(); } | 25,480 |
public String getFile() { return file == null ? "" : file; } | public String getFile() { return file == null ? "" : file; } | 25,481 |
public String getHost() { int at = (host == null) ? -1 : host.indexOf('@'); return at < 0 ? host : host.substring(at + 1, host.length()); } | public String getHost() { int at = (host == null) ? -1 : host.indexOf('@'); return at < 0 ? host : host.substring(at + 1, host.length()); } | 25,482 |
public String getPath() { int quest = (file == null) ? -1 : file.indexOf('?'); return quest < 0 ? getFile() : file.substring(0, quest); } | public String getPath() { int quest = (file == null) ? -1 : file.indexOf('?'); return quest < 0 ? getFile() : file.substring(0, quest); } | 25,483 |
public int getPort() { return port; } | public int getPort() { return port; } | 25,484 |
public String getProtocol() { return protocol; } | public String getProtocol() { return protocol; } | 25,485 |
public String getQuery() { int quest = (file == null) ? -1 : file.indexOf('?'); return quest < 0 ? null : file.substring(quest + 1, file.length()); } | public String getQuery() { int quest = (file == null) ? -1 : file.indexOf('?'); return quest < 0 ? null : file.substring(quest + 1, file.length()); } | 25,486 |
public String getRef() { return ref; } | public String getRef() { return ref; } | 25,487 |
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);... | 25,488 |
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);... | 25,489 |
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);... | 25,490 |
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);... | 25,491 |
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);... | 25,492 |
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);... | 25,493 |
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);... | 25,494 |
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);... | 25,495 |
public String getUserInfo() { int at = (host == null) ? -1 : host.indexOf('@'); return at < 0 ? null : host.substring(0, at); } | public String getUserInfo() { int at = (host == null) ? -1 : host.indexOf('@'); return at < 0 ? null : host.substring(0, at); } | 25,496 |
public int hashCode() { if (hashCode != 0) return hashCode; // Use cached value if available. else return handler.hashCode(this); } | public int hashCode() { if (hashCode != 0) return hashCode; // Use cached value if available. else return handler.hashCode(this); } | 25,497 |
public URLConnection openConnection() throws IOException { return handler.openConnection(this); } | public URLConnection openConnection() throws IOException { return handler.openConnection(this); } | 25,498 |
public final InputStream openStream() throws IOException { return openConnection().getInputStream(); } | public final InputStream openStream() throws IOException { return openConnection().getInputStream(); } | 25,499 |
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); this.handler = getURLStreamHandler(protocol); if (this.handler == null) throw new IOException( "Handler for protocol " + protocol + " not found"); } | private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); this.handler = getURLStreamHandler(protocol); if (this.handler == null) throw new IOException( "Handler for protocol " + protocol + " not found"); } | 25,500 |
public boolean sameFile(URL other) { return handler.sameFile(this, other); } | public boolean sameFile(URL other) { return handler.sameFile(this, other); } | 25,501 |
protected void set( String protocol, String host, int port, String file, String ref) { // TBD: Theoretically, a poorly written StreamHandler could pass an // invalid protocol. It will cause the handler to be set to null // thus overriding a valid handler. Callers of this method should // be aware of this. ... | protected void set( String protocol, String host, int port, String file, String ref) { // TBD: Theoretically, a poorly written StreamHandler could pass an // invalid protocol. It will cause the handler to be set to null // thus overriding a valid handler. Callers of this method should // be aware of this. ... | 25,502 |
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)... | 25,503 |
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)... | 25,504 |
public String toExternalForm() { // Identical to toString(). return handler.toExternalForm(this); } | public String toExternalForm() { // Identical to toString(). return handler.toExternalForm(this); } | 25,505 |
public String toString() { // Identical to toExternalForm(). return handler.toExternalForm(this); } | public String toString() { // Identical to toExternalForm(). return handler.toExternalForm(this); } | 25,506 |
private void writeObject(ObjectOutputStream oos) throws IOException { oos.defaultWriteObject(); } | private void writeObject(ObjectOutputStream oos) throws IOException { oos.defaultWriteObject(); } | 25,507 |
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); } | 25,508 |
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); } | 25,509 |
public MalformedURLException(String message) { super(message); } | public MalformedURLException() { super(message); } | 25,510 |
public MalformedURLException(String message) { super(message); } | public MalformedURLException(String message) { } | 25,511 |
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; } | 25,512 |
public StringTokenizer(String str, String delim) { this(str, delim, false); } | public StringTokenizer(String str, String delim) { this(str, delim, false); } | 25,513 |
public boolean hasMoreTokens() { if (!retDelims) { while (pos < len && delim.indexOf(str.charAt(pos)) >= 0) pos++; } return pos < len; } | public boolean hasMoreTokens() { if (!retDelims) { while (pos < len && delim.indexOf(str.charAt(pos)) >= 0) pos++; } return pos < len; } | 25,514 |
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... | 25,515 |
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() { 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[... | 25,516 |
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 = flags; deadKey ... | 25,518 |
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(); } | 25,519 |
protected abstract void initVkMap(); | protected abstract void initVkMap(); | 25,520 |
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... | 25,521 |
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... | 25,522 |
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... | 25,523 |
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... | 25,524 |
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. return current; } | 25,525 |
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); } | 25,526 |
public abstract boolean dispatchEvent(AWTEvent e); | public abstract boolean dispatchEvent(AWTEvent e); | 25,527 |
public AccessibleContext getAccessibleContext() {// if (accessibleContext == null)// accessibleContext = new AccessibleBoxFiller(); return accessibleContext; } | public AccessibleContext getAccessibleContext() {// if (accessibleContext == null)// accessibleContext = new AccessibleBoxFiller(); return accessibleContext; } | 25,528 |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleBox(); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleBox(); return accessibleContext; } | 25,529 |
public NoSuchAlgorithmException(String msg) { super(msg); } | public NoSuchAlgorithmException() { super(msg); } | 25,531 |
public NoSuchAlgorithmException(String msg) { super(msg); } | public NoSuchAlgorithmException(String msg) { } | 25,532 |
public NoSuchProviderException(String msg) { super(msg); } | public NoSuchProviderException() { super(msg); } | 25,533 |
public NoSuchProviderException(String msg) { super(msg); } | public NoSuchProviderException(String msg) { } | 25,534 |
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 = (... | 25,535 |
private Naming() {} | private Naming() {} | 25,536 |
public static void bind(String name, Remote obj) throws AlreadyBoundException, MalformedURLException, RemoteException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).bind(serviceName, obj);} | public static void bind(String name, Remote obj) throws AlreadyBoundException, MalformedURLException, RemoteException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).bind(serviceName, obj);} | 25,537 |
public static void bind(String name, Remote obj) throws AlreadyBoundException, MalformedURLException, RemoteException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).bind(serviceName, obj);} | public static void bind(String name, Remote obj) throws AlreadyBoundException, MalformedURLException, RemoteException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).bind(serviceName, obj);} | 25,538 |
private static String getName(URL url) throws MalformedURLException { String filename = url.getFile(); if (filename.length() == 0) throw new MalformedURLException("No path specified: " + url); // If the filename begins with a slash we must cut it for // name resolution. if (filename.charAt(0) ... | private static String getName(URL url) throws MalformedURLException { String filename = url.getFile(); if (filename.length() == 0) throw new MalformedURLException("No path specified: " + url); // If the filename begins with a slash we must cut it for // name resolution. if (filename.charAt(0) ... | 25,539 |
private static Registry getRegistry(URL u) throws RemoteException { if (u.getPort() == -1) { return (LocateRegistry.getRegistry(u.getHost())); } else { return (LocateRegistry.getRegistry(u.getHost(), u.getPort())); }} | private static Registry getRegistry(URL u) throws RemoteException { if (u.getPort() == -1) { return (LocateRegistry.getRegistry(u.getHost())); } else { return (LocateRegistry.getRegistry(u.getHost(), u.getPort())); }} | 25,540 |
private static Registry getRegistry(URL u) throws RemoteException { if (u.getPort() == -1) { return (LocateRegistry.getRegistry(u.getHost())); } else { return (LocateRegistry.getRegistry(u.getHost(), u.getPort())); }} | private static Registry getRegistry(URL u) throws RemoteException { if (u.getPort() == -1) { return (LocateRegistry.getRegistry(u.getHost())); } else { return (LocateRegistry.getRegistry(u.getHost(), u.getPort())); }} | 25,541 |
private static Registry getRegistry(URL u) throws RemoteException { if (u.getPort() == -1) { return (LocateRegistry.getRegistry(u.getHost())); } else { return (LocateRegistry.getRegistry(u.getHost(), u.getPort())); }} | private static Registry getRegistry(URL u) throws RemoteException { if (u.getPort() == -1) { return (LocateRegistry.getRegistry(u.getHost())); } else { return (LocateRegistry.getRegistry(u.getHost(), u.getPort())); }} | 25,542 |
public static String[] list(String name) throws RemoteException, MalformedURLException { return (getRegistry(parseURL(name)).list());} | public static String[] list(String name) throws RemoteException, MalformedURLException { return (getRegistry(parseURL(name)).list());} | 25,543 |
public static String[] list(String name) throws RemoteException, MalformedURLException { return (getRegistry(parseURL(name)).list());} | public static String[] list(String name) throws RemoteException, MalformedURLException { return (getRegistry(parseURL(name)).list());} | 25,544 |
public static Remote lookup(String name) throws NotBoundException, MalformedURLException, RemoteException { URL u = parseURL(name); String serviceName = getName(u); return (getRegistry(u).lookup(serviceName));} | public static Remote lookup(String name) throws NotBoundException, MalformedURLException, RemoteException { URL u = parseURL(name); String serviceName = getName(u); return (getRegistry(u).lookup(serviceName));} | 25,545 |
public static Remote lookup(String name) throws NotBoundException, MalformedURLException, RemoteException { URL u = parseURL(name); String serviceName = getName(u); return (getRegistry(u).lookup(serviceName));} | public static Remote lookup(String name) throws NotBoundException, MalformedURLException, RemoteException { URL u = parseURL(name); String serviceName = getName(u); return (getRegistry(u).lookup(serviceName));} | 25,546 |
private static URL parseURL(String name) throws MalformedURLException { try { URI uri = new URI(name); String host = uri.getHost(); int port = uri.getPort(); String query = uri.getQuery(); String path = uri.getPath(); return new URL("http", (host == null ? "localhost" : host), (port == -1... | private static URL parseURL(String name) throws MalformedURLException { try { URI uri = new URI(name); String host = uri.getHost(); int port = uri.getPort(); String query = uri.getQuery(); String path = uri.getPath(); return new URL("http", (host == null ? "localhost" : host), (port == -1... | 25,547 |
private static URL parseURL(String name) throws MalformedURLException { try { URI uri = new URI(name); String host = uri.getHost(); int port = uri.getPort(); String query = uri.getQuery(); String path = uri.getPath(); return new URL("http", (host == null ? "localhost" : host), (port == -1... | private static URL parseURL(String name) throws MalformedURLException { try { URI uri = new URI(name); String host = uri.getHost(); int port = uri.getPort(); String query = uri.getQuery(); String path = uri.getPath(); return new URL("http", (host == null ? "localhost" : host), (port == -1... | 25,548 |
private static URL parseURL(String name) throws MalformedURLException { try { URI uri = new URI(name); String host = uri.getHost(); int port = uri.getPort(); String query = uri.getQuery(); String path = uri.getPath(); return new URL("http", (host == null ? "localhost" : host), (port == -1... | private static URL parseURL(String name) throws MalformedURLException { try { URI uri = new URI(name); String host = uri.getHost(); int port = uri.getPort(); String query = uri.getQuery(); String path = uri.getPath(); return new URL("http", (host == null ? "localhost" : host), (port == -1... | 25,549 |
public static void rebind(String name, Remote obj) throws RemoteException, MalformedURLException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).rebind(serviceName, obj);} | public static void rebind(String name, Remote obj) throws RemoteException, MalformedURLException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).rebind(serviceName, obj);} | 25,550 |
public static void rebind(String name, Remote obj) throws RemoteException, MalformedURLException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).rebind(serviceName, obj);} | public static void rebind(String name, Remote obj) throws RemoteException, MalformedURLException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).rebind(serviceName, obj);} | 25,551 |
public static void unbind(String name) throws RemoteException, NotBoundException, MalformedURLException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).unbind(serviceName);} | public static void unbind(String name) throws RemoteException, NotBoundException, MalformedURLException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).unbind(serviceName);} | 25,552 |
public static void unbind(String name) throws RemoteException, NotBoundException, MalformedURLException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).unbind(serviceName);} | public static void unbind(String name) throws RemoteException, NotBoundException, MalformedURLException { URL u = parseURL(name); String serviceName = getName(u); getRegistry(u).unbind(serviceName);} | 25,553 |
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));} | 25,554 |
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(this)); } | 25,555 |
getTitle(){ return(title);} | getTitle(){ return(title);} | 25,556 |
public SwingContainerLayout(SwingContainerPeer containerPeer) { this.containerPeer = containerPeer; } | public SwingContainerLayout(SwingContainerPeer containerPeer) { this.containerPeer = containerPeer; } | 25,557 |
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... | 25,558 |
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... | 25,559 |
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... | 25,560 |
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, oldValue, newValue); } | 25,565 |
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, oldValue, newValue); } | 25,566 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.