rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
public abstract FloatBuffer put (float b);
public FloatBuffer put (FloatBuffer src) { if (src == this) throw new IllegalArgumentException (); checkForOverflow(src.remaining()); if (src.remaining () > 0) { float[] toPut = new float [src.remaining ()]; src.get (toPut); put (toPut); } return this; }
public abstract FloatBuffer put (float b);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/FloatBuffer.java/buggy/core/src/classpath/java/java/nio/FloatBuffer.java
private MyClassLoader (URL[] urls, ClassLoader parent, String annotation)
MyClassLoader (URL[] urls, ClassLoader parent, String annotation)
private MyClassLoader (URL[] urls, ClassLoader parent, String annotation) { super (urls, parent); this.annotation = annotation; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ec415b5ab69e9516c29619bb561ab024d22ce1f2/RMIClassLoader.java/clean/core/src/classpath/java/java/rmi/server/RMIClassLoader.java
public URLClassLoader(URL[] urls, ClassLoader parent) throws SecurityException
public URLClassLoader(URL[] urls) throws SecurityException
public URLClassLoader(URL[] urls, ClassLoader parent) throws SecurityException { super(parent); this.factory = null; this.securityContext = null; addURLs(urls); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/URLClassLoader.java/buggy/core/src/classpath/java/java/net/URLClassLoader.java
super(parent);
super();
public URLClassLoader(URL[] urls, ClassLoader parent) throws SecurityException { super(parent); this.factory = null; this.securityContext = null; addURLs(urls); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/URLClassLoader.java/buggy/core/src/classpath/java/java/net/URLClassLoader.java
for (j = i; j < num && ! found_one; ++j)
for (j = i; j < num; ++j)
public void layoutContainer (Container parent) { synchronized (parent.getTreeLock ()) { int num = parent.getComponentCount (); // This is more efficient than calling getComponents(). Component[] comps = parent.component; Dimension d = parent.getSize (); Insets ins = parent.getInsets (); ComponentOrientation ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/FlowLayout.java/buggy/core/src/classpath/java/java/awt/FlowLayout.java
if (! comps[i].visible)
if (! comps[j].visible)
public void layoutContainer (Container parent) { synchronized (parent.getTreeLock ()) { int num = parent.getComponentCount (); // This is more efficient than calling getComponents(). Component[] comps = parent.component; Dimension d = parent.getSize (); Insets ins = parent.getInsets (); ComponentOrientation ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/FlowLayout.java/buggy/core/src/classpath/java/java/awt/FlowLayout.java
Dimension c = comps[i].getPreferredSize ();
Dimension c = comps[j].getPreferredSize ();
public void layoutContainer (Container parent) { synchronized (parent.getTreeLock ()) { int num = parent.getComponentCount (); // This is more efficient than calling getComponents(). Component[] comps = parent.component; Dimension d = parent.getSize (); Insets ins = parent.getInsets (); ComponentOrientation ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/FlowLayout.java/buggy/core/src/classpath/java/java/awt/FlowLayout.java
x = (d.width - new_w) / 2;
x = ins.left + (d.width - new_w) / 2 + hgap;
public void layoutContainer (Container parent) { synchronized (parent.getTreeLock ()) { int num = parent.getComponentCount (); // This is more efficient than calling getComponents(). Component[] comps = parent.component; Dimension d = parent.getSize (); Insets ins = parent.getInsets (); ComponentOrientation ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/FlowLayout.java/buggy/core/src/classpath/java/java/awt/FlowLayout.java
x = d.width - new_w;
x = ins.left + (d.width - new_w) + hgap;
public void layoutContainer (Container parent) { synchronized (parent.getTreeLock ()) { int num = parent.getComponentCount (); // This is more efficient than calling getComponents(). Component[] comps = parent.component; Dimension d = parent.getSize (); Insets ins = parent.getInsets (); ComponentOrientation ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/FlowLayout.java/buggy/core/src/classpath/java/java/awt/FlowLayout.java
comps[k].setBounds (x, y, c.width, new_h);
comps[k].setBounds (x, y + (new_h - c.height) / 2, c.width, c.height);
public void layoutContainer (Container parent) { synchronized (parent.getTreeLock ()) { int num = parent.getComponentCount (); // This is more efficient than calling getComponents(). Component[] comps = parent.component; Dimension d = parent.getSize (); Insets ins = parent.getInsets (); ComponentOrientation ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/FlowLayout.java/buggy/core/src/classpath/java/java/awt/FlowLayout.java
return new primitiveArrayTypeCode(TCKind.tk_string);
return new ArrayTypeCode(TCKind.tk_string);
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_string); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/WStringSeqHelper.java/clean/core/src/classpath/org/org/omg/CORBA/WStringSeqHelper.java
protected AccessibleJSplitPane(JSplitPane value0)
protected AccessibleJSplitPane()
protected AccessibleJSplitPane(JSplitPane value0) { super(value0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JSplitPane.java/clean/core/src/classpath/javax/javax/swing/JSplitPane.java
super(value0);
protected AccessibleJSplitPane(JSplitPane value0) { super(value0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JSplitPane.java/clean/core/src/classpath/javax/javax/swing/JSplitPane.java
accessibleContext = new AccessibleJSplitPane(this);
accessibleContext = new AccessibleJSplitPane();
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJSplitPane(this); return accessibleContext; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JSplitPane.java/clean/core/src/classpath/javax/javax/swing/JSplitPane.java
public boolean isDesignTime();
boolean isDesignTime();
public boolean isDesignTime();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/DesignMode.java/buggy/core/src/classpath/java/java/beans/DesignMode.java
public void setDesignTime(boolean designTime);
void setDesignTime(boolean designTime);
public void setDesignTime(boolean designTime);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/DesignMode.java/buggy/core/src/classpath/java/java/beans/DesignMode.java
public JScrollBar(int orientation)
public JScrollBar()
public JScrollBar(int orientation) { this(orientation, 0, 10, 0, 100); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JScrollBar.java/buggy/core/src/classpath/javax/javax/swing/JScrollBar.java
this(orientation, 0, 10, 0, 100);
this(SwingConstants.VERTICAL, 0, 10, 0, 100);
public JScrollBar(int orientation) { this(orientation, 0, 10, 0, 100); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JScrollBar.java/buggy/core/src/classpath/javax/javax/swing/JScrollBar.java
if (viewSize == null) return getView().getPreferredSize();
if (isViewSizeSet) return viewSize;
public Dimension getViewSize() { if (viewSize == null) return getView().getPreferredSize(); else return viewSize; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JViewport.java/buggy/core/src/classpath/javax/javax/swing/JViewport.java
return viewSize;
return getView().getSize();
public Dimension getViewSize() { if (viewSize == null) return getView().getPreferredSize(); else return viewSize; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JViewport.java/buggy/core/src/classpath/javax/javax/swing/JViewport.java
verticalScrollBar = scrollPane.getVerticalScrollBar(); horizontalScrollBar = scrollPane.getHorizontalScrollBar(); verticalScrollBarPolicy = scrollPane.getVerticalScrollBarPolicy(); horizontalScrollBarPolicy = scrollPane.getHorizontalScrollBarPolicy();
vsb = scrollPane.getVerticalScrollBar(); hsb = scrollPane.getHorizontalScrollBar(); vsbPolicy = scrollPane.getVerticalScrollBarPolicy(); hsbPolicy = scrollPane.getHorizontalScrollBarPolicy();
public void syncWithScrollPane(JScrollPane scrollPane) { viewport = scrollPane.getViewport(); verticalScrollBar = scrollPane.getVerticalScrollBar(); horizontalScrollBar = scrollPane.getHorizontalScrollBar(); verticalScrollBarPolicy = scrollPane.getVerticalScrollBarPolicy(); horizontalScrollBarPolicy = ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/ScrollPaneLayout.java/buggy/core/src/classpath/javax/javax/swing/ScrollPaneLayout.java
throw new RuntimeException(ex);
return null;
public VmType findLoadedClass(String name) { if (classInfos != null) { if (name.indexOf('/') >= 0) { throw new IllegalArgumentException( "name contains '/'"); } final ClassInfo ci = getClassInfo(name, false); if (ci != null) { try { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d68b52e2393ec32c19d89626fc76208d0a3f6edc/VmSystemClassLoader.java/buggy/core/src/core/org/jnode/vm/VmSystemClassLoader.java
defExHandler = null;
defExHandler = Address.zero();
public void compileRuntime(VmMethod method, ObjectResolver resolver, int level, NativeStream os) { if (method.isNative()) { throw new IllegalArgumentException("Cannot compile native methods"); } // long start = System.currentTimeMillis(); // System.out.println("Comp...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/670e3e5ccffb3624193324ee6e690f920c198993/NativeCodeCompiler.java/buggy/core/src/core/org/jnode/vm/compiler/NativeCodeCompiler.java
public boolean nameEquals(String otherName) {
public boolean nameEquals(char[] otherName) {
public boolean nameEquals(String otherName) { return name.equals(otherName); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50abd4639810e6237e6fdcf2d287d93f4f1e7387/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
AbstractVmClassLoader clc,
VmClassLoader clc,
public static final VmType defineClass( String className, byte[] data, int offset, int class_image_length, boolean rejectNatives, AbstractVmClassLoader clc, SelectorMap selectorMap, VmStatics statics) { cl_init(); VmType cls = decodeClass(data, offset, class_image_length, rejectNatives, clc, selectorMap, sta...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/ClassDecoder.java/buggy/core/src/core/org/jnode/vm/classmgr/ClassDecoder.java
UTF_16() { super("UTF-16", null);
UTF_16 () { super ("UTF-16", null);
UTF_16() { super("UTF-16", null); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8ae362581db96c93e8717373852fc0c5fa2b24ba/UTF_16.java/clean/core/src/classpath/gnu/gnu/java/nio/charset/UTF_16.java
public boolean contains(Charset cs) { return cs instanceof US_ASCII || cs instanceof ISO_8859_1 || cs instanceof UTF_8 || cs instanceof UTF_16BE || cs instanceof UTF_16LE || cs instanceof UTF_16;
public boolean contains (Charset cs) { return cs instanceof US_ASCII || cs instanceof ISO_8859_1 || cs instanceof UTF_8 || cs instanceof UTF_16BE || cs instanceof UTF_16LE || cs instanceof UTF_16;
public boolean contains(Charset cs) { return cs instanceof US_ASCII || cs instanceof ISO_8859_1 || cs instanceof UTF_8 || cs instanceof UTF_16BE || cs instanceof UTF_16LE || cs instanceof UTF_16; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8ae362581db96c93e8717373852fc0c5fa2b24ba/UTF_16.java/clean/core/src/classpath/gnu/gnu/java/nio/charset/UTF_16.java
public CharsetDecoder newDecoder() { return new UTF_16Decoder(this, UTF_16Decoder.UNKNOWN_ENDIAN);
public CharsetDecoder newDecoder () { return new UTF_16Decoder (this, UTF_16Decoder.UNKNOWN_ENDIAN);
public CharsetDecoder newDecoder() { return new UTF_16Decoder(this, UTF_16Decoder.UNKNOWN_ENDIAN); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8ae362581db96c93e8717373852fc0c5fa2b24ba/UTF_16.java/clean/core/src/classpath/gnu/gnu/java/nio/charset/UTF_16.java
public CharsetEncoder newEncoder() { return new UTF_16Encoder(this, UTF_16Encoder.BIG_ENDIAN, false);
public CharsetEncoder newEncoder () { return new UTF_16Encoder (this, UTF_16Encoder.BIG_ENDIAN, false);
public CharsetEncoder newEncoder() { return new UTF_16Encoder(this, UTF_16Encoder.BIG_ENDIAN, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8ae362581db96c93e8717373852fc0c5fa2b24ba/UTF_16.java/clean/core/src/classpath/gnu/gnu/java/nio/charset/UTF_16.java
public abstract void read(cdrInput in);
public abstract void read(AbstractCdrInput in);
public abstract void read(cdrInput in);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/ReplyHeader.java/buggy/core/src/classpath/gnu/gnu/CORBA/GIOP/ReplyHeader.java
public abstract void write(cdrOutput out);
public abstract void write(AbstractCdrOutput out);
public abstract void write(cdrOutput out);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/ReplyHeader.java/buggy/core/src/classpath/gnu/gnu/CORBA/GIOP/ReplyHeader.java
public AbstractGraphics(AbstractGraphics src) { this.bgColor = src.bgColor; this.fgColor = src.fgColor; this.xorColor = src.xorColor; this.font = src.font; this.clip = src.clip; this.stroke = src.stroke; this.transform = new AffineTransform(src.transform); this.paint = src.paint; this.composite = src.composite;
public AbstractGraphics(int width, int height) { clip = new Rectangle(0, 0, width, height);
public AbstractGraphics(AbstractGraphics src) { this.bgColor = src.bgColor; this.fgColor = src.fgColor; this.xorColor = src.xorColor; this.font = src.font; this.clip = src.clip; this.stroke = src.stroke; this.transform = new AffineTransform(src.transform); this.paint = src.paint; this.composite = src.composit...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1673c0916d234cb0a5f708f465f57aca2db213b2/AbstractGraphics.java/buggy/gui/src/awt/org/jnode/awt/util/AbstractGraphics.java
return new primitiveArrayTypeCode(TCKind.tk_long);
return new ArrayTypeCode(TCKind.tk_long);
public static TypeCode type() { return new primitiveArrayTypeCode(TCKind.tk_long); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/LongSeqHelper.java/buggy/core/src/classpath/org/org/omg/CORBA/LongSeqHelper.java
if (ctx.length < 3)
if (ctx.length < 5)
public static ClassLoader getCallingClassLoader() { Class[] ctx = getClassContext(); if (ctx.length < 3) return null; return ctx[2].getClassLoader(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/29fb7e0d8d953f7b4ddcb83adae29275ae740eee/VMStackWalker.java/buggy/core/src/classpath/vm/gnu/classpath/VMStackWalker.java
return ctx[2].getClassLoader();
return ctx[4].getClassLoader();
public static ClassLoader getCallingClassLoader() { Class[] ctx = getClassContext(); if (ctx.length < 3) return null; return ctx[2].getClassLoader(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/29fb7e0d8d953f7b4ddcb83adae29275ae740eee/VMStackWalker.java/buggy/core/src/classpath/vm/gnu/classpath/VMStackWalker.java
public abstract double get ();
public DoubleBuffer get (double[] dst, int offset, int length) { checkArraySize(dst.length, offset, length); checkForUnderflow(length); for (int i = offset; i < offset + length; i++) { dst [i] = get (); } return this; }
public abstract double get ();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/DoubleBuffer.java/buggy/core/src/classpath/java/java/nio/DoubleBuffer.java
public static double getDouble (ByteBuffer buffer, int index, ByteOrder order)
public static double getDouble (ByteBuffer buffer, ByteOrder order)
public static double getDouble (ByteBuffer buffer, int index, ByteOrder order) { return Double.longBitsToDouble (getLong (buffer, index, order)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/ByteBufferHelper.java/buggy/core/src/classpath/java/java/nio/ByteBufferHelper.java
return Double.longBitsToDouble (getLong (buffer, index, order));
return Double.longBitsToDouble (getLong (buffer, order));
public static double getDouble (ByteBuffer buffer, int index, ByteOrder order) { return Double.longBitsToDouble (getLong (buffer, index, order)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/ByteBufferHelper.java/buggy/core/src/classpath/java/java/nio/ByteBufferHelper.java
public abstract DoubleBuffer put (double b);
public DoubleBuffer put (DoubleBuffer src) { if (src == this) throw new IllegalArgumentException (); checkForOverflow(src.remaining ()); if (src.remaining () > 0) { double[] toPut = new double [src.remaining ()]; src.get (toPut); put (toPut); } return this; }
public abstract DoubleBuffer put (double b);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/DoubleBuffer.java/buggy/core/src/classpath/java/java/nio/DoubleBuffer.java
public static void putDouble (ByteBuffer buffer, int index, double value, ByteOrder order)
public static void putDouble (ByteBuffer buffer, double value, ByteOrder order)
public static void putDouble (ByteBuffer buffer, int index, double value, ByteOrder order) { putLong (buffer, index, Double.doubleToRawLongBits (value), order); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/ByteBufferHelper.java/buggy/core/src/classpath/java/java/nio/ByteBufferHelper.java
putLong (buffer, index, Double.doubleToRawLongBits (value), order);
putLong (buffer, Double.doubleToRawLongBits (value), order);
public static void putDouble (ByteBuffer buffer, int index, double value, ByteOrder order) { putLong (buffer, index, Double.doubleToRawLongBits (value), order); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f77cadd524e37c370e66da65aa495e6445226d4c/ByteBufferHelper.java/buggy/core/src/classpath/java/java/nio/ByteBufferHelper.java
public DefaultMutableTreeNode() { }
public DefaultMutableTreeNode() { this(null, true); }
public DefaultMutableTreeNode() { // TODO } // DefaultMutableTreeNode()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public void add(MutableTreeNode child) {
public void add(MutableTreeNode child) { if (child == null) throw new IllegalArgumentException(); if (! allowsChildren) throw new IllegalStateException();
public void add(MutableTreeNode child) { children.add(child); child.setParent(this); } // add()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
}
public void add(MutableTreeNode child) { children.add(child); child.setParent(this); } // add()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public Enumeration breadthFirstEnumeration() { return null; }
public Enumeration breadthFirstEnumeration() { return null; }
public Enumeration breadthFirstEnumeration() { return null; // TODO } // breadthFirstEnumeration()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public Enumeration children() {
public Enumeration children() { if (children.size() == 0) return EMPTY_ENUMERATION;
public Enumeration children() { return children.elements(); } // children()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
}
public Enumeration children() { return children.elements(); } // children()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public Object clone() { return null; }
public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { return null; } }
public Object clone() { return null; // TODO } // clone()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public Enumeration depthFirstEnumeration() { return null; }
public Enumeration depthFirstEnumeration() { return postorderEnumeration(); }
public Enumeration depthFirstEnumeration() { return null; // TODO } // depthFirstEnumeration()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public boolean getAllowsChildren() {
public boolean getAllowsChildren() {
public boolean getAllowsChildren() { return allowsChildren; } // getAllowsChildren()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
}
public boolean getAllowsChildren() { return allowsChildren; } // getAllowsChildren()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public TreeNode getChildAfter(TreeNode node) {
public TreeNode getChildAfter(TreeNode node) { if (node == null || node.getParent() != this) throw new IllegalArgumentException();
public TreeNode getChildAfter(TreeNode node) { // Variables int index; // Check node if (node == null || node.getParent() != this) { throw new IllegalArgumentException(); } // if // Get index of child node index = getIndex(node); // Check for child after index++; if (index == getChildCount()) { return n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
int index;
int index = getIndex(node) + 1;
public TreeNode getChildAfter(TreeNode node) { // Variables int index; // Check node if (node == null || node.getParent() != this) { throw new IllegalArgumentException(); } // if // Get index of child node index = getIndex(node); // Check for child after index++; if (index == getChildCount()) { return n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
if (node == null || node.getParent() != this) { throw new IllegalArgumentException(); }
if (index == getChildCount()) return null;
public TreeNode getChildAfter(TreeNode node) { // Variables int index; // Check node if (node == null || node.getParent() != this) { throw new IllegalArgumentException(); } // if // Get index of child node index = getIndex(node); // Check for child after index++; if (index == getChildCount()) { return n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
index = getIndex(node); index++; if (index == getChildCount()) { return null; }
public TreeNode getChildAfter(TreeNode node) { // Variables int index; // Check node if (node == null || node.getParent() != this) { throw new IllegalArgumentException(); } // if // Get index of child node index = getIndex(node); // Check for child after index++; if (index == getChildCount()) { return n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
}
public TreeNode getChildAfter(TreeNode node) { // Variables int index; // Check node if (node == null || node.getParent() != this) { throw new IllegalArgumentException(); } // if // Get index of child node index = getIndex(node); // Check for child after index++; if (index == getChildCount()) { return n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public TreeNode getChildAt(int index) {
public TreeNode getChildAt(int index) {
public TreeNode getChildAt(int index) { return (TreeNode) children.elementAt(index); } // getChildAt()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
}
public TreeNode getChildAt(int index) { return (TreeNode) children.elementAt(index); } // getChildAt()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public TreeNode getChildBefore(TreeNode node) {
public TreeNode getChildBefore(TreeNode node) { if (node == null || node.getParent() != this) throw new IllegalArgumentException();
public TreeNode getChildBefore(TreeNode node) { // Variables int index; // Check node if (node == null || node.getParent() != this) { throw new IllegalArgumentException(); } // if // Get index of child node index = getIndex(node); // Check for child before index--; if (index < 0) { return null; } // if...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
int index;
int index = getIndex(node) - 1;
public TreeNode getChildBefore(TreeNode node) { // Variables int index; // Check node if (node == null || node.getParent() != this) { throw new IllegalArgumentException(); } // if // Get index of child node index = getIndex(node); // Check for child before index--; if (index < 0) { return null; } // if...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
if (node == null || node.getParent() != this) { throw new IllegalArgumentException(); }
if (index < 0) return null;
public TreeNode getChildBefore(TreeNode node) { // Variables int index; // Check node if (node == null || node.getParent() != this) { throw new IllegalArgumentException(); } // if // Get index of child node index = getIndex(node); // Check for child before index--; if (index < 0) { return null; } // if...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
index = getIndex(node); index--; if (index < 0) { return null; }
public TreeNode getChildBefore(TreeNode node) { // Variables int index; // Check node if (node == null || node.getParent() != this) { throw new IllegalArgumentException(); } // if // Get index of child node index = getIndex(node); // Check for child before index--; if (index < 0) { return null; } // if...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
}
public TreeNode getChildBefore(TreeNode node) { // Variables int index; // Check node if (node == null || node.getParent() != this) { throw new IllegalArgumentException(); } // if // Get index of child node index = getIndex(node); // Check for child before index--; if (index < 0) { return null; } // if...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public int getChildCount() {
public int getChildCount() {
public int getChildCount() { return children.size(); } // getChildCount()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
}
public int getChildCount() { return children.size(); } // getChildCount()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public int getDepth() {
public int getDepth() { if ((! allowsChildren) || children.size() == 0) return 0;
public int getDepth() { // Variables TreeNode node; int depth; int current; int size; Stack stack; int index; // Check for children if (allowsChildren == false || children.size() == 0) { return 0; } // if // Process Depths stack = new Stack(); stack.push(new Integer(0)); node = getChildA...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
TreeNode node; int depth; int current; int size; Stack stack; int index; if (allowsChildren == false || children.size() == 0) { return 0; } stack = new Stack();
Stack stack = new Stack();
public int getDepth() { // Variables TreeNode node; int depth; int current; int size; Stack stack; int index; // Check for children if (allowsChildren == false || children.size() == 0) { return 0; } // if // Process Depths stack = new Stack(); stack.push(new Integer(0)); node = getChildA...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
node = getChildAt(0); depth = 0; current = 1; while (stack.empty() == false) { if (node.getChildCount() != 0) {
TreeNode node = getChildAt(0); int depth = 0; int current = 1; while (! stack.empty()) { if (node.getChildCount() != 0) {
public int getDepth() { // Variables TreeNode node; int depth; int current; int size; Stack stack; int index; // Check for children if (allowsChildren == false || children.size() == 0) { return 0; } // if // Process Depths stack = new Stack(); stack.push(new Integer(0)); node = getChildA...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
} else { if (current > depth) depth = current;
public int getDepth() { // Variables TreeNode node; int depth; int current; int size; Stack stack; int index; // Check for children if (allowsChildren == false || children.size() == 0) { return 0; } // if // Process Depths stack = new Stack(); stack.push(new Integer(0)); node = getChildA...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
} else {
int size; int index;
public int getDepth() { // Variables TreeNode node; int depth; int current; int size; Stack stack; int index; // Check for children if (allowsChildren == false || children.size() == 0) { return 0; } // if // Process Depths stack = new Stack(); stack.push(new Integer(0)); node = getChildA...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
if (current > depth) { depth = current; } do {
do {
public int getDepth() { // Variables TreeNode node; int depth; int current; int size; Stack stack; int index; // Check for children if (allowsChildren == false || children.size() == 0) { return 0; } // if // Process Depths stack = new Stack(); stack.push(new Integer(0)); node = getChildA...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
index = ((Integer) stack.pop()).intValue(); index++;
} while (index >= size && node != this);
public int getDepth() { // Variables TreeNode node; int depth; int current; int size; Stack stack; int index; // Check for children if (allowsChildren == false || children.size() == 0) { return 0; } // if // Process Depths stack = new Stack(); stack.push(new Integer(0)); node = getChildA...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
} while (index >= size && node != this); if (index < size) {
if (index < size) {
public int getDepth() { // Variables TreeNode node; int depth; int current; int size; Stack stack; int index; // Check for children if (allowsChildren == false || children.size() == 0) { return 0; } // if // Process Depths stack = new Stack(); stack.push(new Integer(0)); node = getChildA...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
} } }
} } }
public int getDepth() { // Variables TreeNode node; int depth; int current; int size; Stack stack; int index; // Check for children if (allowsChildren == false || children.size() == 0) { return 0; } // if // Process Depths stack = new Stack(); stack.push(new Integer(0)); node = getChildA...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
}
public int getDepth() { // Variables TreeNode node; int depth; int current; int size; Stack stack; int index; // Check for children if (allowsChildren == false || children.size() == 0) { return 0; } // if // Process Depths stack = new Stack(); stack.push(new Integer(0)); node = getChildA...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public TreeNode getFirstChild() {
public TreeNode getFirstChild() {
public TreeNode getFirstChild() { return (TreeNode) children.firstElement(); } // getFirstChild()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
}
public TreeNode getFirstChild() { return (TreeNode) children.firstElement(); } // getFirstChild()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public DefaultMutableTreeNode getFirstLeaf() {
public DefaultMutableTreeNode getFirstLeaf() { TreeNode current = this;
public DefaultMutableTreeNode getFirstLeaf() { // Variables TreeNode current; current = this; while (current.getChildCount() > 0) { current = current.getChildAt(0); } // while return (DefaultMutableTreeNode) current; } // getFirstLeaf()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
TreeNode current; current = this; while (current.getChildCount() > 0) {
while (current.getChildCount() > 0)
public DefaultMutableTreeNode getFirstLeaf() { // Variables TreeNode current; current = this; while (current.getChildCount() > 0) { current = current.getChildAt(0); } // while return (DefaultMutableTreeNode) current; } // getFirstLeaf()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
public DefaultMutableTreeNode getFirstLeaf() { // Variables TreeNode current; current = this; while (current.getChildCount() > 0) { current = current.getChildAt(0); } // while return (DefaultMutableTreeNode) current; } // getFirstLeaf()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
}
public DefaultMutableTreeNode getFirstLeaf() { // Variables TreeNode current; current = this; while (current.getChildCount() > 0) { current = current.getChildAt(0); } // while return (DefaultMutableTreeNode) current; } // getFirstLeaf()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public int getIndex(TreeNode node) {
public int getIndex(TreeNode node) {
public int getIndex(TreeNode node) { return children.indexOf(node); } // getIndex()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
}
public int getIndex(TreeNode node) { return children.indexOf(node); } // getIndex()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public TreeNode getLastChild() {
public TreeNode getLastChild() {
public TreeNode getLastChild() { return (TreeNode) children.lastElement(); } // getLastChild()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
}
public TreeNode getLastChild() { return (TreeNode) children.lastElement(); } // getLastChild()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public DefaultMutableTreeNode getLastLeaf() {
public DefaultMutableTreeNode getLastLeaf() { TreeNode current = this; int size = current.getChildCount();
public DefaultMutableTreeNode getLastLeaf() { // Variables TreeNode current; int size; current = this; size = current.getChildCount(); while (size > 0) { current = current.getChildAt(size - 1); size = current.getChildCount(); } // while return (DefaultMutableTreeNode) current; } // getLastLeaf()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
TreeNode current; int size; current = this; size = current.getChildCount(); while (size > 0) {
while (size > 0) {
public DefaultMutableTreeNode getLastLeaf() { // Variables TreeNode current; int size; current = this; size = current.getChildCount(); while (size > 0) { current = current.getChildAt(size - 1); size = current.getChildCount(); } // while return (DefaultMutableTreeNode) current; } // getLastLeaf()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
}
public DefaultMutableTreeNode getLastLeaf() { // Variables TreeNode current; int size; current = this; size = current.getChildCount(); while (size > 0) { current = current.getChildAt(size - 1); size = current.getChildCount(); } // while return (DefaultMutableTreeNode) current; } // getLastLeaf()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
}
public DefaultMutableTreeNode getLastLeaf() { // Variables TreeNode current; int size; current = this; size = current.getChildCount(); while (size > 0) { current = current.getChildAt(size - 1); size = current.getChildCount(); } // while return (DefaultMutableTreeNode) current; } // getLastLeaf()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public int getLeafCount() {
public int getLeafCount() { int count = 0; Enumeration e = depthFirstEnumeration();
public int getLeafCount() { // Variables Enumeration e; int count; TreeNode current; // Get Enumeration of all descendants e = depthFirstEnumeration(); // Process Nodes count = 0; while (e.hasMoreElements() == true) { current = (TreeNode) e.nextElement(); if (current.isLeaf() == true) { count++; } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
Enumeration e; int count; TreeNode current;
while (e.hasMoreElements()) { TreeNode current = (TreeNode) e.nextElement();
public int getLeafCount() { // Variables Enumeration e; int count; TreeNode current; // Get Enumeration of all descendants e = depthFirstEnumeration(); // Process Nodes count = 0; while (e.hasMoreElements() == true) { current = (TreeNode) e.nextElement(); if (current.isLeaf() == true) { count++; } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
e = depthFirstEnumeration(); count = 0; while (e.hasMoreElements() == true) { current = (TreeNode) e.nextElement(); if (current.isLeaf() == true) {
if (current.isLeaf())
public int getLeafCount() { // Variables Enumeration e; int count; TreeNode current; // Get Enumeration of all descendants e = depthFirstEnumeration(); // Process Nodes count = 0; while (e.hasMoreElements() == true) { current = (TreeNode) e.nextElement(); if (current.isLeaf() == true) { count++; } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
} }
}
public int getLeafCount() { // Variables Enumeration e; int count; TreeNode current; // Get Enumeration of all descendants e = depthFirstEnumeration(); // Process Nodes count = 0; while (e.hasMoreElements() == true) { current = (TreeNode) e.nextElement(); if (current.isLeaf() == true) { count++; } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
}
public int getLeafCount() { // Variables Enumeration e; int count; TreeNode current; // Get Enumeration of all descendants e = depthFirstEnumeration(); // Process Nodes count = 0; while (e.hasMoreElements() == true) { current = (TreeNode) e.nextElement(); if (current.isLeaf() == true) { count++; } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public int getLevel() {
public int getLevel() { int count = -1; TreeNode current = this;
public int getLevel() { // Variables TreeNode current; int count; // Lookup Parent count = -1; current = this; do { current = current.getParent(); count++; } while (current != null); return count; } // getLevel()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
TreeNode current; int count; count = -1; current = this; do {
do {
public int getLevel() { // Variables TreeNode current; int count; // Lookup Parent count = -1; current = this; do { current = current.getParent(); count++; } while (current != null); return count; } // getLevel()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
} while (current != null);
} while (current != null);
public int getLevel() { // Variables TreeNode current; int count; // Lookup Parent count = -1; current = this; do { current = current.getParent(); count++; } while (current != null); return count; } // getLevel()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
}
}
public int getLevel() { // Variables TreeNode current; int count; // Lookup Parent count = -1; current = this; do { current = current.getParent(); count++; } while (current != null); return count; } // getLevel()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public DefaultMutableTreeNode getNextLeaf() { return null; }
public DefaultMutableTreeNode getNextLeaf() { if (parent == null) return null; return null; }
public DefaultMutableTreeNode getNextLeaf() { return null; // TODO } // getNextLeaf()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
public DefaultMutableTreeNode getNextNode() { return null; }
public DefaultMutableTreeNode getNextNode() { if (getChildCount() != 0) return (DefaultMutableTreeNode) getChildAt(0); DefaultMutableTreeNode node = this; DefaultMutableTreeNode sibling; do { sibling = node.getNextSibling(); node = (DefaultMutableTreeNode) node.getParent(); } while (sibling == null && node != null)...
public DefaultMutableTreeNode getNextNode() { return null; // TODO } // getNextNode()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java