bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public int hashCode() { int hash = 0; int len = addr.length; int i = len > 4 ? len - 4 : 0; for (; i < len; i++) hash = (hash << 8) | (addr[i] & 0xFF); return hash; } | public int hashCode() { int hash = 0; int len = addr.length; int i = len > 4 ? len - 4 : 0; for (; i < len; i++) hash = (hash << 8) | (addr[i] & 0xFF); return hash; } | 18,291 |
public boolean isAnyLocalAddress() { return (addr[0] == 0) && (addr[1] == 0) && (addr[2] == 0) && (addr[3] == 0); } | public boolean isAnyLocalAddress() { return (addr[0] == 0) && (addr[1] == 0) && (addr[2] == 0) && (addr[3] == 0); } | 18,292 |
public boolean isLinkLocalAddress() { // XXX: This seems to not exist with IPv4 addresses return false; } | public boolean isLinkLocalAddress() { // XXX: This seems to not exist with IPv4 addresses return false; } | 18,293 |
public boolean isLoopbackAddress() { return addr[0] == 0x7F; } | public boolean isLoopbackAddress() { return addr[0] == 0x7F; } | 18,294 |
public boolean isMCGlobal() { // XXX: This seems to net exist with IPv4 addresses return false; } | public boolean isMCGlobal() { // XXX: This seems to net exist with IPv4 addresses return false; } | 18,295 |
public boolean isMCLinkLocal() { if (!isMulticastAddress()) return false; return (addr[0] == 0xE0) && (addr[1] == 0x00) && (addr[2] == 0x00); } | public boolean isMCLinkLocal() { if (!isMulticastAddress()) return false; return (addr[0] == 0xE0) && (addr[1] == 0x00) && (addr[2] == 0x00); } | 18,296 |
public boolean isMCNodeLocal() { // XXX: This seems to net exist with IPv4 addresses return false; } | public boolean isMCNodeLocal() { // XXX: This seems to net exist with IPv4 addresses return false; } | 18,297 |
public boolean isMCOrgLocal() { // XXX: This seems to net exist with IPv4 addresses return false; } | public boolean isMCOrgLocal() { // XXX: This seems to net exist with IPv4 addresses return false; } | 18,298 |
public boolean isMCSiteLocal() { // XXX: This seems to net exist with IPv4 addresses return false; } | public boolean isMCSiteLocal() { // XXX: This seems to net exist with IPv4 addresses return false; } | 18,299 |
public boolean isMulticastAddress() { return (addr[0] & 0xF0) == 0xE0; } | public boolean isMulticastAddress() { return (addr[0] & 0xF0) == 0xE0; } | 18,300 |
public boolean isSiteLocalAddress() { // 10.0.0.0/8 if (addr[0] == 0x0A) return true; // XXX: Suns JDK 1.4.1 (on Linux) seems to have a bug here: // it says 172.16.0.0 - 172.255.255.255 are site local addresses // // 172.16.0.0/12 if (addr[0] == 0xAC && (addr[1] & 0xF0) == 0x01) return true; // 192.168.0.0... | public boolean isSiteLocalAddress() { // 10.0.0.0/8 if (addr[0] == 0x0A) return true; // XXX: Suns JDK 1.4.1 (on Linux) seems to have a bug here: // it says 172.16.0.0 - 172.255.255.255 are site local addresses // // 172.16.0.0/12 if (addr[0] == 0xAC && (addr[1] & 0xF0) == 0x01) return true; // 192.168.0.0... | 18,301 |
private Object writeReplace() throws ObjectStreamException { return new InetAddress(addr, hostName); } | private Object writeReplace() throws ObjectStreamException { return new InetAddress(addr, hostName); } | 18,302 |
public Dimension getPreferredScrollableViewportSize() { return null; } | public Dimension getPreferredScrollableViewportSize() { return getPreferredSize(); } | 18,306 |
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { return 1; } | public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { if (orientation == VERTICAL) return visibleRect.height * direction; else return visibleRect.width * direction; } | 18,307 |
private URLEncoder() { } | private URLEncoder() { } | 18,311 |
public static String encode(String s) { try { return encode(s, "UTF-8"); } catch (UnsupportedEncodingException uee) { // Should never happen since UTF-8 should always be supported return s; } } | public static String encode(String s) { try { return encode(s, System.getProperty("file.encoding", "8859_1")); } catch (UnsupportedEncodingException uee) { // Should never happen since UTF-8 should always be supported return s; } } | 18,312 |
public static String encode(String s) { try { return encode(s, "UTF-8"); } catch (UnsupportedEncodingException uee) { // Should never happen since UTF-8 should always be supported return s; } } | public static String encode(String s) { try { return encode(s, "UTF-8"); } catch (UnsupportedEncodingException uee) { // Should never happen since UTF-8 should always be supported return s; } } | 18,313 |
private static boolean isSafe(char c) { return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '-' || c == '_' || c == '.' || c == '*'); } | private static boolean isSafe(char c) { return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '-' || c == '_' || c == '.' || c == '*'); } | 18,314 |
public abstract void addChangeListener(ChangeListener listener); | public abstract void addChangeListener(ChangeListener listener); | 18,315 |
public abstract void removeChangeListener(ChangeListener listener); | public abstract void removeChangeListener(ChangeListener listener); | 18,316 |
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... | 18,317 |
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... | 18,318 |
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... | protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock ()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this)... | 18,319 |
JOptionPane() { this("mess"); } | JOptionPane() { this("mess"); } | 18,320 |
public AccessibleContext getAccessibleContext() { return null; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJOptionPane(); return accessibleContext; } | 18,321 |
public OptionPaneUI getUI() { return (OptionPaneUI)ui; } | public OptionPaneUI getUI() { return (OptionPaneUI)ui; } | 18,322 |
public String getUIClassID() { return "OptionPaneUI"; } | public String getUIClassID() { return "OptionPaneUI"; } | 18,323 |
public Object getValue() { return val; } | public Object getValue() { return val; } | 18,324 |
protected String paramString() { return "JOptionPane"; } | protected String paramString() { return "JOptionPane"; } | 18,325 |
public void setUI(OptionPaneUI ui) { super.setUI(ui); } | public void setUI(OptionPaneUI ui) { super.setUI(ui); } | 18,326 |
public void setValue(Object v) { val = v; } | public void setValue(Object v) { val = v; } | 18,327 |
public static int showConfirmDialog(JFrame frame, String yes, String no, int bla) { return 0; } | public static int showConfirmDialog(JFrame frame, String yes, String no, int bla) { return 0; } | 18,328 |
public static String showInputDialog(JFrame frame, String msg, String title, int opt_type, int msg_type, Icon icon, Object[] opts, Object init) { return (String) DoShowOptionDialog(frame, msg, title, opt_type, msg_type, icon, opts, i... | public static String showInputDialog(JFrame frame, String msg, String title, int opt_type, int msg_type, Icon icon, Object[] opts, Object init) { return (String) DoShowOptionDialog(frame, msg, title, opt_type, msg_type, icon, opts, i... | 18,329 |
public static void showMessageDialog(Component frame, String msg, String title, int bla) { DoShowOptionDialog(frame, msg, title, bla, 0, null, null, null); } | public static void showMessageDialog(Component frame, String msg, String title, int bla) { DoShowOptionDialog(frame, msg, title, bla, 0, null, null, null); } | 18,330 |
public static int showOptionDialog(Component frame, String msg, String title, int opt_type, int msg_type, Icon icon, Object[] opts, Object init) { Integer a = (Integer) DoShowOptionDialog(frame, msg, title, opt_type, msg_type, icon, opts, i... | public static int showOptionDialog(Component frame, String msg, String title, int opt_type, int msg_type, Icon icon, Object[] opts, Object init) { Integer a = (Integer) DoShowOptionDialog(frame, msg, title, opt_type, msg_type, icon, opts, i... | 18,331 |
public void updateUI() { setUI((OptionPaneUI)UIManager.getUI(this)); } | public void updateUI() { setUI((OptionPaneUI)UIManager.getUI(this)); } | 18,332 |
public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t... | public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create the servant and register it with... | 18,333 |
public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t... | public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t... | 18,334 |
public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t... | public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t... | 18,335 |
public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t... | public static void main(String[] args) { int port = PORT; String iorf = null; try { Functional_ORB.setPort(PORT); // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); // Create t... | 18,336 |
public void run() { // wait for invocations from clients orb.run(); } | public void run() { // wait for invocations from clients orb.run(); } | 18,338 |
EventDispatchThread(EventQueue queue) { super(); setName("AWT-EventQueue-" + ++dispatchThreadNum); this.queue = queue; setPriority(NORM_PRIORITY + 1); } | EventDispatchThread(EventQueue queue) { super(); setName("AWT-EventQueue-" + ++dispatchThreadNum); this.queue = queue; setPriority(NORM_PRIORITY + 1); } | 18,339 |
public static Signature getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) {} }... | publicstaticSignaturegetInstance(Stringalgorithm)throwsNoSuchAlgorithmException{Provider[]p=Security.getProviders();for(inti=0;i<p.length;i++){try{returngetInstance(algorithm,p[i]);}catch(NoSuchAlgorithmExceptionignored){}}thrownewNoSuchAlgorithmException(algorithm);} | 18,340 |
public final byte[] sign() throws SignatureException { if (state == SIGN) { state = UNINITIALIZED; return engineSign(); } else throw new SignatureException(); } | public final byte[] sign() throws SignatureException { if (state == SIGN) { state = UNINITIALIZED; return engineSign(); } else throw new SignatureException(); } | 18,341 |
public final byte[] sign() throws SignatureException { if (state == SIGN) { state = UNINITIALIZED; return engineSign(); } else throw new SignatureException(); } | public final byte[] sign() throws SignatureException { if (state == SIGN) { state = UNINITIALIZED; return engineSign(); else throw new SignatureException(); } | 18,342 |
public final boolean verify(byte[]signature) throws SignatureException { if (state == VERIFY) { state = UNINITIALIZED; return engineVerify(signature); } else throw new SignatureException(); } | public final boolean verify(byte[]signature) throws SignatureException { if (state == VERIFY) { state = UNINITIALIZED; return engineVerify(signature); } else throw new SignatureException(); } | 18,343 |
public final boolean verify(byte[]signature) throws SignatureException { if (state == VERIFY) { state = UNINITIALIZED; return engineVerify(signature); } else throw new SignatureException(); } | public final boolean verify(byte[]signature) throws SignatureException { if (state == VERIFY) { state = UNINITIALIZED; return engineVerify(signature); else throw new SignatureException(); } | 18,344 |
public InvalidKeyException(String msg) { super(msg); } | public InvalidKeyException() { super(msg); } | 18,345 |
public InvalidKeyException(String msg) { super(msg); } | public InvalidKeyException(String msg) { } | 18,346 |
public void read(long fileOffset, byte[] dest, int off, int len) throws IOException { if(len+off>getLength()) throw new IOException("Can't read past the file!"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); long bytesRead=0; while( bytesRead < len ) { long blockNr = (fileOffset+bytesRead) / block... | public void read(long fileOffset, byte[] dest, int off, int len) throws IOException { if(len+off>getLength()) throw new IOException("Can't read past the file!"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); long bytesRead=0; while( bytesRead < len ) { long blockNr = (fileOffset+bytesRead) / block... | 18,347 |
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | 18,348 |
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | 18,349 |
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | 18,350 |
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | 18,351 |
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | 18,352 |
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | 18,353 |
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //throw new IOException("EXT2 implementation is currently readonly"); if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (fileOffset: "+ fileOffset+", getLength()"+getLength()); if(off+... | 18,354 |
private final int getu4() { int v1 = bytecode.get() & 0xFF; int v2 = bytecode.get() & 0xFF; int v3 = bytecode.get() & 0xFF; int v4 = bytecode.get() & 0xFF; return (v1 << 16) | (v2 << 16) | (v3 << 8) | v4; } | private final int getu4() { int v1 = bytecode.get() & 0xFF; int v2 = bytecode.get() & 0xFF; int v3 = bytecode.get() & 0xFF; int v4 = bytecode.get() & 0xFF; return (v1 << 24) | (v2 << 16) | (v3 << 8) | v4; } | 18,355 |
public DefaultMutableTreeNode(Object userObject) { this.userObject = userObject; } // DefaultMutableTreeNode() | public DefaultMutableTreeNode(Object userObject) { this.userObject = userObject; } // DefaultMutableTreeNode() | 18,357 |
public DefaultTreeModel(TreeNode root, boolean asksAllowsChildren) { setRoot(root); this.asksAllowsChildren = asksAllowsChildren; } | public DefaultTreeModel(TreeNode root) { setRoot(root); this.asksAllowsChildren = asksAllowsChildren; } | 18,358 |
public DefaultTreeModel(TreeNode root, boolean asksAllowsChildren) { setRoot(root); this.asksAllowsChildren = asksAllowsChildren; } | public DefaultTreeModel(TreeNode root, boolean asksAllowsChildren) { setRoot(root); } | 18,359 |
public TreePath getParentPath() { return new TreePath(this.getPath(), path.length - 1); } // getParentPath() | public TreePath getParentPath() { return new TreePath(this.getPath(), path.length - 1); } // getParentPath() | 18,360 |
public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | 18,361 |
public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | 18,362 |
public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; // while // Verify Paths while (treepath[index] =... | 18,363 |
public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | 18,364 |
public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | 18,365 |
public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | 18,366 |
public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; // while // Verify Paths while (treepath[index] =... | 18,367 |
public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | public boolean isDescendant(TreePath path) { // Variables Object[] treepath; int index; int index2; // Get Descendant path treepath = path.getPath(); // Locate Start Index index = 0; index2 = 0; while (treepath[index] != this.path[index2]) { index++; } // while // Verify Paths while (treepath[index]... | 18,368 |
protected void installKeyboardActions() throws NotImplementedException { // FIXME: Implement. } | protected void installKeyboardActions() { // FIXME: Implement. } | 18,369 |
protected void installKeyboardActions() throws NotImplementedException { // FIXME: Implement. } | ActionMapUIResource am = new ActionMapUIResource(); am.put("showSystemMenu", new ShowSystemMenuAction()); BasicLookAndFeel blaf = (BasicLookAndFeel) UIManager.getLookAndFeel(); ActionMap audioActionMap = blaf.getAudioActionMap(); am.setParent(audioActionMap); SwingUtilities.replaceUIActionMap(frame, am); ActionMapU... | 18,370 |
protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: Implement. } | protected void uninstallKeyboardActions() { // FIXME: Implement. } | 18,371 |
protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: Implement. } | SwingUtilities.replaceUIActionMap(frame, null); SwingUtilities.replaceUIInputMap(frame, JComponent.WHEN_IN_FOCUSED_WINDOW, null); SwingUtilities.replaceUIActionMap(frame, null); SwingUtilities.replaceUIInputMap(frame, JComponent.WHEN_IN_FOCUSED_WINDOW, null); protectedSwingUtilities.replaceUIActionMap(frame, null); Swi... | 18,372 |
public void resizeFrame(JComponent frame, int x, int y, int width, int height); | void resizeFrame(JComponent frame, int x, int y, int width, int height); | 18,373 |
public void beginResizingFrame(JComponent frame, int direction); | public void beginResizingFrame(JComponent frame, int direction); | 18,374 |
public void endResizingFrame(JComponent frame); | public void endResizingFrame(JComponent frame); | 18,375 |
public void activateFrame(JInternalFrame vframe); | public void activateFrame(JInternalFrame vframe); | 18,376 |
public void closeFrame(JInternalFrame frame); | public void closeFrame(JInternalFrame frame); | 18,377 |
public void deactivateFrame(JInternalFrame frame); | public void deactivateFrame(JInternalFrame frame); | 18,378 |
public void deiconifyFrame(JInternalFrame frame); | public void deiconifyFrame(JInternalFrame frame); | 18,379 |
public void iconifyFrame(JInternalFrame frame); | public void iconifyFrame(JInternalFrame frame); | 18,380 |
public void maximizeFrame(JInternalFrame frame); | public void maximizeFrame(JInternalFrame frame); | 18,381 |
public void minimizeFrame(JInternalFrame frame); | public void minimizeFrame(JInternalFrame frame); | 18,382 |
private static int[] make_crc_table() { int[] crc_table = new int[256]; for (int n = 0; n < 256; n++) { int c = n; for (int k = 8; --k >= 0;) { if ((c & 1) != 0) c = 0xedb88320 ^ (c >>> 1); else c = c >>> 1; } crc_table[n] = c; } return crc_table; } | private static int[] make_crc_table() { int[] crc_table = new int[256]; for (int n = 0; n < 256; n++) { int c = n; for (int k = 8; --k >= 0;) { if ((c & 1) != 0) c = 0xedb88320 ^ (c >>> 1); else c = c >>> 1; } crc_table[n] = c; } return crc_table; } | 18,383 |
private static int[] make_crc_table() { int[] crc_table = new int[256]; for (int n = 0; n < 256; n++) { int c = n; for (int k = 8; --k >= 0;) { if ((c & 1) != 0) c = 0xedb88320 ^ (c >>> 1); else c = c >>> 1; } crc_table[n] = c; } return crc_table; } | private static int[] make_crc_table() { int[] crc_table = new int[256]; for (int n = 0; n < 256; n++) { int c = n; for (int k = 8; --k >= 0;) { if ((c & 1) != 0) c = 0xedb88320 ^ (c >>> 1); else c = c >>> 1; } crc_table[n] = c; } return crc_table; } | 18,384 |
private static int[] make_crc_table() { int[] crc_table = new int[256]; for (int n = 0; n < 256; n++) { int c = n; for (int k = 8; --k >= 0;) { if ((c & 1) != 0) c = 0xedb88320 ^ (c >>> 1); else c = c >>> 1; } crc_table[n] = c; } return crc_table; } | private static int[] make_crc_table() { int[] crc_table = new int[256]; for (int n = 0; n < 256; n++) { int c = n; for (int k = 8; --k >= 0;) { if ((c & 1) != 0) c = 0xedb88320 ^ (c >>> 1); else c = c >>> 1; } crc_table[n] = c; } return crc_table; } | 18,385 |
public long getValue (); | public long getValue (); | 18,386 |
public void reset (); | public void reset (); | 18,387 |
public static <S extends Enum<S>> Enum valueOf(Class<S> etype, String s) { if (etype == null || s == null) throw new NullPointerException(); try { return (S) etype.getDeclaredField(s).get(null); } catch (NoSuchFieldException exception) { throw new IllegalArgumentE... | public static <S extends Enum<S>> S valueOf(Class<S> etype, String s) { if (etype == null || s == null) throw new NullPointerException(); try { return (S) etype.getDeclaredField(s).get(null); } catch (NoSuchFieldException exception) { throw new IllegalArgumentExce... | 18,388 |
public static <S extends Enum<S>> Enum valueOf(Class<S> etype, String s) { if (etype == null || s == null) throw new NullPointerException(); try { return (S) etype.getDeclaredField(s).get(null); } catch (NoSuchFieldException exception) { throw new IllegalArgumentE... | public static <S extends Enum<S>> Enum valueOf(Class<S> etype, String s) { if (etype == null || s == null) throw new NullPointerException(); try { return (S) etype.getDeclaredField(s).get(null); } catch (NoSuchFieldException exception) { throw new IllegalArgument... | 18,389 |
public static <S extends Enum<S>> Enum valueOf(Class<S> etype, String s) { if (etype == null || s == null) throw new NullPointerException(); try { return (S) etype.getDeclaredField(s).get(null); } catch (NoSuchFieldException exception) { throw new IllegalArgumentE... | public static <S extends Enum<S>> Enum valueOf(Class<S> etype, String s) { if (etype == null || s == null) throw new NullPointerException(); try { return (S) etype.getDeclaredField(s).get(null); } catch (NoSuchFieldException exception) { throw new IllegalArgumentE... | 18,390 |
public static <S extends Enum<S>> Enum valueOf(Class<S> etype, String s) { if (etype == null || s == null) throw new NullPointerException(); try { return (S) etype.getDeclaredField(s).get(null); } catch (NoSuchFieldException exception) { throw new IllegalArgumentE... | public static <S extends Enum<S>> Enum valueOf(Class<S> etype, String s) { if (etype == null || s == null) throw new NullPointerException(); try { return (S) etype.getDeclaredField(s).get(null); } catch (NoSuchFieldException exception) { throw new IllegalArgumentE... | 18,391 |
String [] processName (String qName, boolean isAttribute) { String name[]; Hashtable table; // detect errors in call sequence declsOK = false; // Select the appropriate table. if (isAttribute) { table = attributeNameTable; } else { table = elementNameTable; } // Start b... | String [] processName (String qName, boolean isAttribute) { String name[]; Hashtable table; // detect errors in call sequence declsOK = false; // Select the appropriate table. if (isAttribute) { table = attributeNameTable; } else { table = elementNameTable; } // Start b... | 18,392 |
String [] processName (String qName, boolean isAttribute) { String name[]; Hashtable table; // detect errors in call sequence declsOK = false; // Select the appropriate table. if (isAttribute) { table = attributeNameTable; } else { table = elementNameTable; } // Start b... | String [] processName (String qName, boolean isAttribute) { String name[]; Hashtable table; // detect errors in call sequence declsOK = false; // Select the appropriate table. if (isAttribute) { table = attributeNameTable; } else { table = elementNameTable; } // Start b... | 18,393 |
protected void installListeners(JToolBar toolbar) { dockingListener = createDockingListener(); toolBar.addMouseListener(dockingListener); toolBar.addMouseMotionListener(dockingListener); propertyListener = createPropertyListener(); toolBar.addPropertyChangeListener(propertyListener); toolBarContLis... | protected void installListeners() { dockingListener = createDockingListener(); toolBar.addMouseListener(dockingListener); toolBar.addMouseMotionListener(dockingListener); propertyListener = createPropertyListener(); toolBar.addPropertyChangeListener(propertyListener); toolBarContListener = createTo... | 18,394 |
public void installUI(JComponent c) { super.installUI(c); if (c instanceof JToolBar) { toolBar = (JToolBar) c; toolBar.setOpaque(true); installDefaults(); installComponents(); installListeners(toolBar); installKeyboardActions(); } } | public void installUI(JComponent c) { super.installUI(c); if (c instanceof JToolBar) { toolBar = (JToolBar) c; toolBar.setOpaque(true); installDefaults(); installComponents(); installListeners(toolBar); installKeyboardActions(); } } | 18,395 |
public EtchedBorderUIResource() { } | public EtchedBorderUIResource() { } | 18,396 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { } | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { } | 18,397 |
public DataFlavor(String mimeType) throws ClassNotFoundException { this(mimeType, null); } | public DataFlavor() { this(mimeType, null); } | 18,399 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.