rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
public Color getBackgroundNonSelectionColor() { | public Color getBackgroundNonSelectionColor() { | public Color getBackgroundNonSelectionColor() { return backgroundNonSelectionColor; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public Color getBackgroundSelectionColor() { | public Color getBackgroundSelectionColor() { | public Color getBackgroundSelectionColor() { return backgroundSelectionColor; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public Color getBorderSelectionColor() { | public Color getBorderSelectionColor() { | public Color getBorderSelectionColor() { return borderSelectionColor; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public Icon getClosedIcon() { | public Icon getClosedIcon() { | public Icon getClosedIcon() { return closedIcon; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public Icon getDefaultClosedIcon() { | public Icon getDefaultClosedIcon() { | public Icon getDefaultClosedIcon() { return UIManager.getLookAndFeelDefaults().getIcon("Tree.closedIcon"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public Icon getDefaultLeafIcon() { | public Icon getDefaultLeafIcon() { | public Icon getDefaultLeafIcon() { return UIManager.getLookAndFeelDefaults().getIcon("Tree.leafIcon"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public Icon getDefaultOpenIcon() { | public Icon getDefaultOpenIcon() { | public Icon getDefaultOpenIcon() { return UIManager.getLookAndFeelDefaults().getIcon("Tree.openIcon"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public Icon getLeafIcon() { | public Icon getLeafIcon() { | public Icon getLeafIcon() { return leafIcon; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public Icon getOpenIcon() { | public Icon getOpenIcon() { | public Icon getOpenIcon() { return openIcon; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public Dimension getPreferredSize() { | public Dimension getPreferredSize() { | public Dimension getPreferredSize() { return null; // TODO } // getPreferredSize() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public Color getTextNonSelectionColor() { | public Color getTextNonSelectionColor() { | public Color getTextNonSelectionColor() { return textNonSelectionColor; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public Color getTextSelectionColor() { | public Color getTextSelectionColor() { | public Color getTextSelectionColor() { return textSelectionColor; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
setIcon(getLeafIcon()); | setLeafIcon(getLeafIcon()); | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
setIcon(getOpenIcon()); | setOpenIcon(getOpenIcon()); | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
setIcon(getClosedIcon()); | setClosedIcon(getClosedIcon()); | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
setEnabled(true); setFont(getFont()); if (selected) { super.setBackground(getBackgroundSelectionColor()); super.setForeground(getTextSelectionColor()); } else { super.setBackground((tree.getParent()).getBackground()); super.setForeground(getTextNonSelectionColor()); } | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java | |
public void paint(Graphics g) { | public void paint(Graphics g) { | public void paint(Graphics g) { super.paint(g); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public void repaint(long value0, int value1, int value2, int value3, int value4) { | public void repaint(long value0, int value1, int value2, int value3, int value4) { | public void repaint(long value0, int value1, int value2, int value3, int value4) { // TODO } // repaint() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public void revalidate() { | public void revalidate() { | public void revalidate() { // TODO } // revalidate() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public void setBackground(Color c) { | public void setBackground(Color c) { | public void setBackground(Color c) { if (c != null && c instanceof UIResource) c = null; super.setBackground(c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public void setBackgroundNonSelectionColor(Color c) { | public void setBackgroundNonSelectionColor(Color c) { | public void setBackgroundNonSelectionColor(Color c) { backgroundNonSelectionColor = c; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public void setBackgroundSelectionColor(Color c) { | public void setBackgroundSelectionColor(Color c) { | public void setBackgroundSelectionColor(Color c) { backgroundSelectionColor = c; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public void setBorderSelectionColor(Color c) { | public void setBorderSelectionColor(Color c) { | public void setBorderSelectionColor(Color c) { borderSelectionColor = c; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public void setClosedIcon(Icon i) { | public void setClosedIcon(Icon i) { | public void setClosedIcon(Icon i) { closedIcon = i; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public void setFont(Font f) { | public void setFont(Font f) { | public void setFont(Font f) { if (f != null && f instanceof UIResource) f = null; super.setFont(f); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public void setLeafIcon(Icon i) { | public void setLeafIcon(Icon i) { | public void setLeafIcon(Icon i) { leafIcon = i; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public void setOpenIcon(Icon i) { | public void setOpenIcon(Icon i) { | public void setOpenIcon(Icon i) { openIcon = i; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public void setTextNonSelectionColor(Color c) { | public void setTextNonSelectionColor(Color c) { | public void setTextNonSelectionColor(Color c) { textNonSelectionColor = c; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public void setTextSelectionColor(Color c) { | public void setTextSelectionColor(Color c) { | public void setTextSelectionColor(Color c) { textSelectionColor = c; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
public void validate() { | public void validate() { | public void validate() { // TODO } // validate() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65fc7899e6a31f0880fa2d7c7f5bd6905d251de4/DefaultTreeCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeCellRenderer.java |
if (attribs[i].begin_index > getEndIndex() || attribs[i].end_index <= getBeginIndex()) continue; | getAllAttributeKeys(){ HashSet s = new HashSet(); if (attribs == null) return(s); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { s.add(iter.next()); } } return(s);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/AttributedStringIterator.java/buggy/core/src/classpath/java/java/text/AttributedStringIterator.java | |
(ci.getIndex() <= attribs[i].end_index)) | (ci.getIndex() < attribs[i].end_index)) | getAttribute(AttributedCharacterIterator.Attribute attrib){ if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.next(); // C... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/AttributedStringIterator.java/buggy/core/src/classpath/java/java/text/AttributedStringIterator.java |
(ci.getIndex() <= attribs[i].end_index)) | (ci.getIndex() < attribs[i].end_index)) | getAttributes(){ HashMap m = new HashMap(); if (attribs == null) return(m); for (int i = 0; i < attribs.length; i++) { if ((ci.getIndex() >= attribs[i].begin_index) && (ci.getIndex() <= attribs[i].end_index)) m.putAll(attribs[i].attribs); } return(m);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/AttributedStringIterator.java/buggy/core/src/classpath/java/java/text/AttributedStringIterator.java |
private ThreadGroup() { this.parent = null; this.name = "Root Thread Group"; this.maxPriority = java.lang.Thread.MAX_PRIORITY; this.daemon = false; this.process = VmProcess.getRootProcess(this); } | private ThreadGroup() { name = "main"; parent = null; maxpri = Thread.MAX_PRIORITY; } | private ThreadGroup() { this.parent = null; this.name = "Root Thread Group"; this.maxPriority = java.lang.Thread.MAX_PRIORITY; this.daemon = false; this.process = VmProcess.getRootProcess(this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public int activeCount() { return allThreadsCount(); | public int activeCount() { int total = 0; if (groups == null) return total; int i = threads.size(); while (--i >= 0) if (((Thread) threads.get(i)).isAlive()) total++; i = groups.size(); while (--i >= 0) total += ((ThreadGroup) groups.get(i)).activeCount(); return total; | public int activeCount() { return allThreadsCount(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public int activeGroupCount() { return allGroupsCount(); | public int activeGroupCount() { if (groups == null) return 0; int total = groups.size(); int i = total; while (--i >= 0) total += ((ThreadGroup) groups.get(i)).activeGroupCount(); return total; | public int activeGroupCount() { return allGroupsCount(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public boolean allowThreadSuspension(boolean b) { return true; } | public boolean allowThreadSuspension(boolean allow) { return false; } | public boolean allowThreadSuspension(boolean b) { // Ignore return true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public final void checkAccess() { SecurityManager sm = System.getSecurityManager(); | public final void checkAccess() { SecurityManager sm = SecurityManager.current; | public final void checkAccess() { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkAccess(this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public final void destroy() { checkAccess(); if (destroyed) throw new IllegalThreadStateException("ThreadGroup has already been destroyed"); if (threads.size() > 0) throw new IllegalThreadStateException("ThreadGroup has Threads remaining"); Enumeration e = groups.elements(); while (e.hasMoreElements()) { ThreadGroup... | public final synchronized void destroy() { checkAccess(); if (! threads.isEmpty() || groups == null) throw new IllegalThreadStateException(); int i = groups.size(); while (--i >= 0) ((ThreadGroup) groups.get(i)).destroy(); groups = null; if (parent != null) parent.removeGroup(this); | public final void destroy() { checkAccess(); if (destroyed) throw new IllegalThreadStateException("ThreadGroup has already been destroyed"); if (threads.size() > 0) throw new IllegalThreadStateException("ThreadGroup has Threads remaining"); Enumeration e = groups.elements(); while (e.hasMoreElements()) { Th... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public int enumerate(Thread[] list) { return enumerate(list, false); | public int enumerate(Thread[] array) { return enumerate(array, 0, true); | public int enumerate(Thread[] list) { return enumerate(list, false); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public final int getMaxPriority() { return maxPriority; | public final int getMaxPriority() { return maxpri; | public final int getMaxPriority() { return maxPriority; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public final String getName() { return name; | public final String getName() { return name; | public final String getName() { return name; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public final ThreadGroup getParent() { return parent; } | public final ThreadGroup getParent() { if (parent != null) parent.checkAccess(); return parent; } | public final ThreadGroup getParent() { return parent; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public final boolean isDaemon() { return daemon; } | public final boolean isDaemon() { return daemon_flag; } | public final boolean isDaemon() { return daemon; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public boolean isDestroyed() { return destroyed; | public synchronized boolean isDestroyed() { return groups == null; | public boolean isDestroyed() { return destroyed; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public void list() { | public void list() { | public void list() { list(""); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public final boolean parentOf(ThreadGroup g) { return (this == g) || parentOf(g.getParent()); | public final boolean parentOf(ThreadGroup group) { while (group != null) { if (group == this) return true; group = group.parent; } return false; | public final boolean parentOf(ThreadGroup g) { return (this == g) || parentOf(g.getParent()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public final void resume() { checkAccess(); Enumeration et = threads.elements(); while (et.hasMoreElements()) { Thread t = (Thread) et.nextElement(); t.resume(); } Enumeration eg = groups.elements(); while (eg.hasMoreElements()) { ThreadGroup g = (ThreadGroup) et.nextElement(); g.resume(); } | public final synchronized void resume() { checkAccess(); if (groups == null) return; int i = threads.size(); while (--i >= 0) ((Thread) threads.get(i)).resume(); i = groups.size(); while (--i >= 0) ((ThreadGroup) groups.get(i)).resume(); | public final void resume() { checkAccess(); Enumeration et = threads.elements(); while (et.hasMoreElements()) { Thread t = (Thread) et.nextElement(); t.resume(); } Enumeration eg = groups.elements(); while (eg.hasMoreElements()) { ThreadGroup g = (ThreadGroup) et.nextElement(); g.resume(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public final void setDaemon(boolean daemon) { checkAccess(); this.daemon = daemon; } | public final void setDaemon(boolean daemon) { checkAccess(); daemon_flag = daemon; } | public final void setDaemon(boolean daemon) { checkAccess(); this.daemon = daemon; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public final void setMaxPriority(int n) { checkAccess(); if (n < Thread.MIN_PRIORITY || n > Thread.MAX_PRIORITY) throw new IllegalArgumentException("Invalid priority: " + n); if (parent != null && n > parent.maxPriority) n = parent.maxPriority; maxPriority = n; Enumeration e = groups.elements(); while (e.hasMoreEle... | public final synchronized void setMaxPriority(int maxpri) { checkAccess(); if (maxpri < Thread.MIN_PRIORITY || maxpri > Thread.MAX_PRIORITY) return; if (parent != null && maxpri > parent.maxpri) maxpri = parent.maxpri; this.maxpri = maxpri; if (groups == null) return; int i = groups.size(); while (--i >= 0) ((ThreadGro... | public final void setMaxPriority(int n) { checkAccess(); if (n < Thread.MIN_PRIORITY || n > Thread.MAX_PRIORITY) throw new IllegalArgumentException("Invalid priority: " + n); if (parent != null && n > parent.maxPriority) n = parent.maxPriority; maxPriority = n; Enumeration e = groups.elements(); while (e.has... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public final void stop() { checkAccess(); Enumeration et = threads.elements(); while (et.hasMoreElements()) { Thread t = (Thread) et.nextElement(); t.stop(); } Enumeration eg = groups.elements(); while (eg.hasMoreElements()) { ThreadGroup g = (ThreadGroup) eg.nextElement(); g.stop(); } | public final synchronized void stop() { checkAccess(); if (groups == null) return; int i = threads.size(); while (--i >= 0) ((Thread) threads.get(i)).stop(); i = groups.size(); while (--i >= 0) ((ThreadGroup) groups.get(i)).stop(); | public final void stop() { checkAccess(); Enumeration et = threads.elements(); while (et.hasMoreElements()) { Thread t = (Thread) et.nextElement(); t.stop(); } Enumeration eg = groups.elements(); while (eg.hasMoreElements()) { ThreadGroup g = (ThreadGroup) eg.nextElement(); g.stop(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public final void suspend() { checkAccess(); Enumeration et = threads.elements(); while (et.hasMoreElements()) { Thread t = (Thread) et.nextElement(); t.suspend(); } Enumeration eg = groups.elements(); while (eg.hasMoreElements()) { ThreadGroup g = (ThreadGroup) eg.nextElement(); g.suspend(); } | public final synchronized void suspend() { checkAccess(); if (groups == null) return; int i = threads.size(); while (--i >= 0) ((Thread) threads.get(i)).suspend(); i = groups.size(); while (--i >= 0) ((ThreadGroup) groups.get(i)).suspend(); | public final void suspend() { checkAccess(); Enumeration et = threads.elements(); while (et.hasMoreElements()) { Thread t = (Thread) et.nextElement(); t.suspend(); } Enumeration eg = groups.elements(); while (eg.hasMoreElements()) { ThreadGroup g = (ThreadGroup) eg.nextElement(); g.suspend(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public String toString() { return getClass().getName() + "[name=" + name + ",maxpri=" + maxPriority + "]"; | public String toString() { return getClass().getName() + "[name=" + name + ",maxpri=" + maxpri + ']'; | public String toString() { return getClass().getName() + "[name=" + name + ",maxpri=" + maxPriority + "]"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
public void uncaughtException(Thread t, Throwable e) { if (parent != null) parent.uncaughtException(t, e); else if (!(e instanceof ThreadDeath)) e.printStackTrace(); | public void uncaughtException(Thread thread, Throwable t) { if (parent != null) parent.uncaughtException(thread, t); else if (! (t instanceof ThreadDeath)) { if (t == null) throw new NullPointerException(); had_uncaught_exception = true; try { if (thread != null) System.err.print("Exception in thread \"" + thread.name ... | public void uncaughtException(Thread t, Throwable e) { if (parent != null) parent.uncaughtException(t, e); else if (!(e instanceof ThreadDeath)) e.printStackTrace(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java |
} | public void uncaughtException(Thread t, Throwable e) { if (parent != null) parent.uncaughtException(t, e); else if (!(e instanceof ThreadDeath)) e.printStackTrace(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f430efb81bd22eb38981cff753b29a9fe438ed2f/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java | |
JDesktopPane toUse = getDesktopPaneForComponent(parentComponent); | JLayeredPane toUse = getDesktopPaneForComponent(parentComponent); | public JInternalFrame createInternalFrame(Component parentComponent, String title) throws RuntimeException { JDesktopPane toUse = getDesktopPaneForComponent(parentComponent); if (toUse == null) throw new RuntimeException("par... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java |
throw new RuntimeException("parentComponent does not have a valid parent"); | toUse = JLayeredPane.getLayeredPaneAbove(parentComponent); if (toUse == null) throw new RuntimeException ("parentComponent does not have a valid parent"); | public JInternalFrame createInternalFrame(Component parentComponent, String title) throws RuntimeException { JDesktopPane toUse = getDesktopPaneForComponent(parentComponent); if (toUse == null) throw new RuntimeException("par... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java |
frame.pack(); frame.setVisible(true); | public JInternalFrame createInternalFrame(Component parentComponent, String title) throws RuntimeException { JDesktopPane toUse = getDesktopPaneForComponent(parentComponent); if (toUse == null) throw new RuntimeException("par... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java | |
startModal(frame, pane); | startModal(frame); | public static int showInternalConfirmDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message); JInternalFrame frame = pane.createInternalFrame(parentComponent, null); startModal(frame, pane); return ((Integer) pane.getVal... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java |
startModal(frame, pane); | startModal(frame); | public static String showInternalInputDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message); pane.setWantsInput(true); JInternalFrame frame = pane.createInternalFrame(parentComponent, null); startModal(frame, pane); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java |
startModal(frame, pane); | startModal(frame); | public static void showInternalMessageDialog(Component parentComponent, Object message) { JOptionPane pane = new JOptionPane(message); JInternalFrame frame = pane.createInternalFrame(parentComponent, null); startModal(frame, pane); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java |
startModal(frame, pane); | startModal(frame); | public static int showInternalOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java |
private static void startModal(JInternalFrame f, JOptionPane pane) | private static void startModal(JInternalFrame f) | private static void startModal(JInternalFrame f, JOptionPane pane) { f.getContentPane().add(pane); f.pack(); f.show(); Dimension pref = f.getPreferredSize(); f.setBounds(0, 0, pref.width, pref.height); synchronized (f) { final JInternalFrame tmp = f; tmp.toFront(); f.addInternalFrameListener(n... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java |
f.getContentPane().add(pane); f.pack(); f.show(); Dimension pref = f.getPreferredSize(); f.setBounds(0, 0, pref.width, pref.height); | private static void startModal(JInternalFrame f, JOptionPane pane) { f.getContentPane().add(pane); f.pack(); f.show(); Dimension pref = f.getPreferredSize(); f.setBounds(0, 0, pref.width, pref.height); synchronized (f) { final JInternalFrame tmp = f; tmp.toFront(); f.addInternalFrameListener(n... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JOptionPane.java/buggy/core/src/classpath/javax/javax/swing/JOptionPane.java | |
protected SecureClassLoader(ClassLoader parent) { | protected SecureClassLoader(ClassLoader parent) { | protected SecureClassLoader(ClassLoader parent) { super(parent); SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkCreateClassLoader(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/SecureClassLoader.java/buggy/core/src/classpath/java/java/security/SecureClassLoader.java |
if (sm != null) | if(sm != null) | protected SecureClassLoader(ClassLoader parent) { super(parent); SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkCreateClassLoader(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/SecureClassLoader.java/buggy/core/src/classpath/java/java/security/SecureClassLoader.java |
protected final Class defineClass( String name, byte[] b, int off, int len, CodeSource cs) { | protected final Class defineClass(String name, byte[] b, int off, int len, CodeSource cs) { | protected final Class defineClass( String name, byte[] b, int off, int len, CodeSource cs) { // FIXME: Need to cache ProtectionDomains according to 1.3 docs. if (cs != null) { ProtectionDomain protectionDomain = new ProtectionDomain(cs, getPermissions(cs)); return super.defineClass(name, b, off, len, pro... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/SecureClassLoader.java/buggy/core/src/classpath/java/java/security/SecureClassLoader.java |
if (cs != null) { ProtectionDomain protectionDomain = new ProtectionDomain(cs, getPermissions(cs)); | if (cs != null) { ProtectionDomain protectionDomain = new ProtectionDomain(cs, getPermissions(cs), this, null); | protected final Class defineClass( String name, byte[] b, int off, int len, CodeSource cs) { // FIXME: Need to cache ProtectionDomains according to 1.3 docs. if (cs != null) { ProtectionDomain protectionDomain = new ProtectionDomain(cs, getPermissions(cs)); return super.defineClass(name, b, off, len, pro... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/SecureClassLoader.java/buggy/core/src/classpath/java/java/security/SecureClassLoader.java |
} else | } else | protected final Class defineClass( String name, byte[] b, int off, int len, CodeSource cs) { // FIXME: Need to cache ProtectionDomains according to 1.3 docs. if (cs != null) { ProtectionDomain protectionDomain = new ProtectionDomain(cs, getPermissions(cs)); return super.defineClass(name, b, off, len, pro... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/SecureClassLoader.java/buggy/core/src/classpath/java/java/security/SecureClassLoader.java |
protected PermissionCollection getPermissions(CodeSource cs) { Policy policy = Policy.getPolicy(); | protected PermissionCollection getPermissions(CodeSource cs) { Policy policy = Policy.getCurrentPolicy(); | protected PermissionCollection getPermissions(CodeSource cs) { Policy policy = Policy.getPolicy(); return policy.getPermissions(cs); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/SecureClassLoader.java/buggy/core/src/classpath/java/java/security/SecureClassLoader.java |
public ProtectionDomain(CodeSource code_source, PermissionCollection perms) { this.code_source = code_source; this.perms = perms; if (perms != null) perms.setReadOnly(); } | public ProtectionDomain(CodeSource codesource, PermissionCollection permissions) { this(codesource, permissions, null, null, true); } | public ProtectionDomain(CodeSource code_source, PermissionCollection perms) { this.code_source = code_source; this.perms = perms; if (perms != null) perms.setReadOnly(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/ProtectionDomain.java/buggy/core/src/classpath/java/java/security/ProtectionDomain.java |
protected final Class defineClass(String name, byte[] data, int offset, int length, ProtectionDomain protDomain) { if (data == null) { throw new NullPointerException(); } if (offset < 0 || length < 0 || (offset + length) > data.length) { throw new IndexOutOfBoundsException(); } if (protDomain == null) { protDomain = (... | protected final Class defineClass(byte[] data, int offset, int length) { return defineClass(null, data, offset, length, null); | protected final Class defineClass(String name, byte[] data, int offset, int length, ProtectionDomain protDomain) { if (data == null) { throw new NullPointerException(); } if (offset < 0 || length < 0 || (offset + length) > data.length) { throw new IndexOutOfBoun... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f04abefd7ae06ec51e8f4cbc12f3512d60f9391d/ClassLoader.java/buggy/core/src/classpath/vm/java/lang/ClassLoader.java |
int id = event == null ? 0 : event.getID(); if (((mask & AWTEvent.ACTION_EVENT_MASK) != 0 && event instanceof ActionEvent) || ((mask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0 && event instanceof AdjustmentEvent) || ((mask & AWTEvent.COMPONENT_EVENT_MASK) != 0 && event instanceof ComponentEvent && (id >= ComponentEvent.COM... | public void eventDispatched(AWTEvent event) { int id = event == null ? 0 : event.getID(); if (((mask & AWTEvent.ACTION_EVENT_MASK) != 0 && event instanceof ActionEvent) || ((mask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0 && event instanceof AdjustmentEvent) || ((mask & AWTEvent.CO... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/AWTEventListenerProxy.java/buggy/core/src/classpath/java/java/awt/event/AWTEventListenerProxy.java | |
if (bb.isDirect()) this.address = VMDirectByteBuffer.adjustAddress(bb.address, offset); | CharViewBufferImpl (ByteBuffer bb, int capacity) { super (capacity, capacity, 0, -1); this.bb = bb; this.offset = bb.position(); this.readOnly = bb.isReadOnly(); this.endian = bb.order(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/CharViewBufferImpl.java/buggy/core/src/classpath/java/java/nio/CharViewBufferImpl.java | |
if (bb.isDirect()) this.address = VMDirectByteBuffer.adjustAddress(bb.address, offset); | DoubleViewBufferImpl (ByteBuffer bb, int capacity) { super (capacity, capacity, 0, -1); this.bb = bb; this.offset = bb.position(); this.readOnly = bb.isReadOnly(); this.endian = bb.order(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/DoubleViewBufferImpl.java/buggy/core/src/classpath/java/java/nio/DoubleViewBufferImpl.java | |
if (bb.isDirect()) this.address = VMDirectByteBuffer.adjustAddress(bb.address, offset); | FloatViewBufferImpl (ByteBuffer bb, int capacity) { super (capacity, capacity, 0, -1); this.bb = bb; this.offset = bb.position(); this.readOnly = bb.isReadOnly(); this.endian = bb.order(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/FloatViewBufferImpl.java/buggy/core/src/classpath/java/java/nio/FloatViewBufferImpl.java | |
if (bb.isDirect()) this.address = VMDirectByteBuffer.adjustAddress(bb.address, offset); | IntViewBufferImpl (ByteBuffer bb, int capacity) { super (capacity, capacity, 0, -1); this.bb = bb; this.offset = bb.position(); this.readOnly = bb.isReadOnly(); this.endian = bb.order(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/IntViewBufferImpl.java/buggy/core/src/classpath/java/java/nio/IntViewBufferImpl.java | |
if (bb.isDirect()) this.address = VMDirectByteBuffer.adjustAddress(bb.address, offset); | LongViewBufferImpl (ByteBuffer bb, int capacity) { super (capacity, capacity, 0, -1); this.bb = bb; this.offset = bb.position(); this.readOnly = bb.isReadOnly(); this.endian = bb.order(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/LongViewBufferImpl.java/buggy/core/src/classpath/java/java/nio/LongViewBufferImpl.java | |
if (bb.isDirect()) this.address = VMDirectByteBuffer.adjustAddress(bb.address, offset); | ShortViewBufferImpl (ByteBuffer bb, int capacity) { super (capacity, capacity, 0, -1); this.bb = bb; this.offset = bb.position(); this.readOnly = bb.isReadOnly(); this.endian = bb.order(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/ShortViewBufferImpl.java/buggy/core/src/classpath/java/java/nio/ShortViewBufferImpl.java | |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); p.setBackground(defaults.getColor("Panel.background")); | LookAndFeel.installColorsAndFont(p, "Panel.background", "Panel.foreground", "Panel.font"); | public void installDefaults(JPanel p) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); p.setBackground(defaults.getColor("Panel.background")); p.setOpaque(true); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicPanelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicPanelUI.java |
/* Initialize the monitor system */ MonitorManager.initialize(); | public static void initialize() { if (!inited) { // Initialize resource manager final ResourceManager rm = ResourceManagerImpl.initialize(); VmSystem.out = getSystemOut(); /* Initialize the system classloader */ VmSystemClassLoader loader = (VmSystemClas... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/216e73a4e357804ec900d9c94f957dba111f3d14/VmSystem.java/clean/core/src/core/org/jnode/vm/VmSystem.java | |
static public List<String> getEntryNames(Iterator<FSEntry> it) { | static public List<String> getEntryNames(Iterator<? extends FSEntry> it) { | static public List<String> getEntryNames(Iterator<FSEntry> it) { List<String> names = new ArrayList<String>(); while (it.hasNext()) { FSEntry entry = it.next(); names.add((entry == null) ? null : entry.getName()); } return names; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c56cb877a222d0f75caa8f0f3840ae408e8f5265/TestUtils.java/clean/fs/src/test/org/jnode/test/support/TestUtils.java |
static public void listEntries(Iterator<FSEntry> iterator) throws Exception { | static public void listEntries(Iterator<? extends FSEntry> iterator) throws Exception { | static public void listEntries(Iterator<FSEntry> iterator) throws Exception { log.debug("<<< BEGIN listEntries >>>"); int i = 0; log.debug("------- entries ------"); while (iterator.hasNext()) { FSEntry entry = iterator.next(); log.debug(i + ":" + entry); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c56cb877a222d0f75caa8f0f3840ae408e8f5265/TestUtils.java/clean/fs/src/test/org/jnode/test/support/TestUtils.java |
static public String toString(List<String> list) { StringBuffer sb = new StringBuffer("["); for (int i = 0; i < list.size(); i++) { if (i > 0) { sb.append(", "); } sb.append(list.get(i)); } sb.append("]"); return sb.toString(); | static public String toString(String filename, int offset, int length) throws IOException { File file = new File(filename); FileInputStream input = new FileInputStream(file); byte[] data = new byte[length]; int nb = input.read(data); String dump = FSUtils.toString(data, 0, nb); input.close(); return dump; | static public String toString(List<String> list) { StringBuffer sb = new StringBuffer("["); for (int i = 0; i < list.size(); i++) { if (i > 0) { sb.append(", "); } sb.append(list.get(i)); } sb.append("]"); return sb.toString(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c56cb877a222d0f75caa8f0f3840ae408e8f5265/TestUtils.java/clean/fs/src/test/org/jnode/test/support/TestUtils.java |
columnModel.addColumnModelListener(this); | public void setColumnModel(TableColumnModel c) { columnModel = c; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JTableHeader.java/buggy/core/src/classpath/javax/javax/swing/table/JTableHeader.java | |
public void addActionListener(ActionListener l) { actions.addElement(l); } | public void addActionListener(ActionListener l) { listenerList.add(ActionListener.class, l); } | public void addActionListener(ActionListener l) { // comp.enableEvents( AWTEvent.ACTION_EVENT_MASK ); actions.addElement(l); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
public void addChangeListener(ChangeListener l) { changes.addElement(l); } | public void addChangeListener(ChangeListener l) { listenerList.add(ChangeListener.class, l); } | public void addChangeListener(ChangeListener l) { changes.addElement(l); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
public void addItemListener(ItemListener l) { items.addElement(l); } | public void addItemListener(ItemListener l) { listenerList.add(ItemListener.class, l); } | public void addItemListener(ItemListener l) { items.addElement(l); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
public void fireItemStateChanged(ItemEvent event) { for (int i = 0; i < items.size(); i++) { ItemListener a = (ItemListener) items.get(i); a.itemStateChanged(event); } } | public void fireItemStateChanged(ItemEvent e) { EventListener[] ll = listenerList.getListeners(ItemListener.class); for (int i = 0; i < ll.length; i++) ((ItemListener)ll[i]).itemStateChanged(e); } | public void fireItemStateChanged(ItemEvent event) { for (int i = 0; i < items.size(); i++) { ItemListener a = (ItemListener) items.get(i); a.itemStateChanged(event); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
public void fireStateChanged(ChangeEvent event) { for (int i = 0; i < changes.size(); i++) { ChangeListener a = (ChangeListener) changes.get(i); a.stateChanged(event); } } | public void fireStateChanged(ChangeEvent e) { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(e); } | public void fireStateChanged(ChangeEvent event) { for (int i = 0; i < changes.size(); i++) { ChangeListener a = (ChangeListener) changes.get(i); a.stateChanged(event); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
public String getActionCommand() { return com; } | public String getActionCommand() { return actionCommand; } | public String getActionCommand() { return com; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
public int getMnemonic() { return mne; } | public int getMnemonic() { return mnemonic; } | public int getMnemonic() { return mne; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
public Object[] getSelectedObjects() { return null; } | public Object[] getSelectedObjects() { return null; } | public Object[] getSelectedObjects() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
public boolean isRollover() { return roll; } | public boolean isRollover() { return (stateMask & ROLLOVER) == ROLLOVER; } | public boolean isRollover() { return roll; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
public void removeActionListener(ActionListener l) { actions.removeElement(l); } | public void removeActionListener(ActionListener l) { listenerList.remove(ActionListener.class, l); } | public void removeActionListener(ActionListener l) { actions.removeElement(l); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
public void removeChangeListener(ChangeListener l) { changes.removeElement(l); } | public void removeChangeListener(ChangeListener l) { listenerList.remove(ChangeListener.class, l); } | public void removeChangeListener(ChangeListener l) { changes.removeElement(l); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
public void removeItemListener(ItemListener l) { items.removeElement(l); } | public void removeItemListener(ItemListener l) { listenerList.remove(ItemListener.class, l); } | public void removeItemListener(ItemListener l) { items.removeElement(l); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
public void setActionCommand(String s) { com = s; } | public void setActionCommand(String s) { if (actionCommand != s) { actionCommand = s; fireStateChanged(changeEvent); } } | public void setActionCommand(String s) { com = s; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
public void setArmed(boolean b) { arm = b; } | public void setArmed(boolean a) { changeState(ARMED, a); } | public void setArmed(boolean b) { arm = b; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.