rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
{ return gridbag.preferredLayoutSize(parent); }
{ if (parent != container) throw new AWTError("invalid parent"); return grid.preferredLayoutSize(parent); }
public Dimension preferredLayoutSize(Container parent) { return gridbag.preferredLayoutSize(parent); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java
public void removeLayoutComponent(Component comp) { gridbag.removeLayoutComponent(comp); if (way == X_AXIS) { gridbag.setColumns( gridbag.getColumns() - 1); } else { gridbag.setRows( gridbag.getRows() - 1); } }
public void removeLayoutComponent(Component component) { grid.removeLayoutComponent(component); if (way == X_AXIS || (way == LINE_AXIS && component.getComponentOrientation().isHorizontal()) || (way == PAGE_AXIS && !component.getComponentOrientation().isHorizontal())) grid.setColumns(grid.getColumns() - 1); else grid.s...
public void removeLayoutComponent(Component comp) { gridbag.removeLayoutComponent(comp); if (way == X_AXIS) { gridbag.setColumns( gridbag.getColumns() - 1); } else { gridbag.setRows( gridbag.getRows() - 1); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java
public GridLayout (int rows, int cols)
public GridLayout ()
public GridLayout (int rows, int cols) { this (rows, cols, 0, 0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/GridLayout.java/buggy/core/src/classpath/java/java/awt/GridLayout.java
this (rows, cols, 0, 0);
this (1, 0, 0, 0);
public GridLayout (int rows, int cols) { this (rows, cols, 0, 0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/GridLayout.java/buggy/core/src/classpath/java/java/awt/GridLayout.java
return enume [ code ];
return enume[code];
public static State from_int(int code) { try { return enume [ code ]; } catch (ArrayIndexOutOfBoundsException ex) { BAD_OPERATION bad = new BAD_OPERATION("Invalid state " + code); bad.minor = Minor.Enumeration; throw bad; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/State.java/buggy/core/src/classpath/org/org/omg/PortableServer/POAManagerPackage/State.java
int x = insets.left + insets.right; int y = insets.bottom + insets.top;
int x = 0; int y = 0;
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; Component[] children = parent.getComponents(); if (isHorizonta...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BoxLayout.java/buggy/core/src/classpath/javax/javax/swing/BoxLayout.java
x += insets.left + insets.right;
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; Component[] children = parent.getComponents(); if (isHorizonta...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BoxLayout.java/buggy/core/src/classpath/javax/javax/swing/BoxLayout.java
private static void makeModal(JDialog dialog)
static void makeModal(JDialog dialog)
private static void makeModal(JDialog dialog) { try { synchronized (dialog) { while (dialog.isVisible()) dialog.wait(); } } catch (InterruptedException e) { } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/JColorChooser.java/clean/core/src/classpath/javax/javax/swing/JColorChooser.java
JDialog(Frame owner, String s) { this(owner, s, true); }
JDialog(Frame owner) { this(owner, "dialog"); }
JDialog(Frame owner, String s) { this(owner, s, true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JDialog.java/buggy/core/src/classpath/javax/javax/swing/JDialog.java
public DefaultColorSelectionModel() { }
public DefaultColorSelectionModel() { this (Color.white); }
public DefaultColorSelectionModel() { // TODO } // DefaultColorSelectionModel()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultColorSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/colorchooser/DefaultColorSelectionModel.java
Container getContentPane() { return getRootPane().getContentPane(); }
Container getContentPane() { return getRootPane().getContentPane(); }
Container getContentPane() { return getRootPane().getContentPane(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JDialog.java/buggy/core/src/classpath/javax/javax/swing/JDialog.java
public abstract Color getSelectedColor();
Color getSelectedColor();
public abstract Color getSelectedColor();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/ColorSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/colorchooser/ColorSelectionModel.java
public abstract void setSelectedColor(Color color);
void setSelectedColor(Color color);
public abstract void setSelectedColor(Color color);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/ColorSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/colorchooser/ColorSelectionModel.java
Window() { setVisible(false); setLayout((LayoutManager) new BorderLayout()); }
Window() { visible = false; setLayout(new BorderLayout()); }
Window() { setVisible(false); setLayout((LayoutManager) new BorderLayout()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public void addNotify() { if (peer == null) peer = getToolkit().createWindow(this); super.addNotify(); }
public void addNotify() { if (peer == null) peer = getToolkit().createWindow(this); super.addNotify(); }
public void addNotify() { if (peer == null) peer = getToolkit().createWindow(this); super.addNotify(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public synchronized void addWindowListener(WindowListener listener) { windowListener = AWTEventMulticaster.add(windowListener, listener); }
public synchronized void addWindowListener(WindowListener listener) { windowListener = AWTEventMulticaster.add(windowListener, listener); }
public synchronized void addWindowListener(WindowListener listener) { windowListener = AWTEventMulticaster.add(windowListener, listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public void applyResourceBundle(ResourceBundle rb) { }
public void applyResourceBundle(ResourceBundle rb) { throw new Error ("Not implemented"); }
public void applyResourceBundle(ResourceBundle rb) { // FIXME }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
void dispatchEventImpl(AWTEvent e) { if (e.id <= WindowEvent.WINDOW_LAST && e.id >= WindowEvent.WINDOW_FIRST && (windowListener != null || (eventMask & AWTEvent.WINDOW_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
void dispatchEventImpl(AWTEvent e) { if (e.id <= WindowEvent.WINDOW_LAST && e.id >= WindowEvent.WINDOW_FIRST && (windowListener != null || windowFocusListener != null || windowStateListener != null || (eventMask & AWTEvent.WINDOW_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
void dispatchEventImpl(AWTEvent e) { // Make use of event id's in order to avoid multiple instanceof tests. if (e.id <= WindowEvent.WINDOW_LAST && e.id >= WindowEvent.WINDOW_FIRST && (windowListener != null || (eventMask & AWTEvent.WINDOW_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public void dispose() { hide();
public void dispose() { hide();
public void dispose() { hide(); Window[] list = getOwnedWindows(); for (int i = 0; i < list.length; i++) list[i].dispose(); for (int i = 0; i < ncomponents; ++i) component[i].removeNotify(); this.removeNotify(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
Window[] list = getOwnedWindows(); for (int i = 0; i < list.length; i++) list[i].dispose();
synchronized (getTreeLock ()) { Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).get()); if (w != null) w.dispose(); else e.remove(); }
public void dispose() { hide(); Window[] list = getOwnedWindows(); for (int i = 0; i < list.length; i++) list[i].dispose(); for (int i = 0; i < ncomponents; ++i) component[i].removeNotify(); this.removeNotify(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
for (int i = 0; i < ncomponents; ++i) component[i].removeNotify(); this.removeNotify(); }
for (int i = 0; i < ncomponents; ++i) component[i].removeNotify(); this.removeNotify(); WindowEvent we = new WindowEvent(this, WindowEvent.WINDOW_CLOSED); getToolkit().getSystemEventQueue().postEvent(we); } }
public void dispose() { hide(); Window[] list = getOwnedWindows(); for (int i = 0; i < list.length; i++) list[i].dispose(); for (int i = 0; i < ncomponents; ++i) component[i].removeNotify(); this.removeNotify(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public Component getFocusOwner() { return null; }
public Component getFocusOwner() { return null; }
public Component getFocusOwner() { // FIXME return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public GraphicsConfiguration getGraphicsConfiguration() { if (graphicsConfiguration != null) return graphicsConfiguration; if (peer != null) return peer.getGraphicsConfiguration(); return null; }
public GraphicsConfiguration getGraphicsConfiguration() { if (graphicsConfiguration != null) return graphicsConfiguration; if (peer != null) return peer.getGraphicsConfiguration(); return null; }
public GraphicsConfiguration getGraphicsConfiguration() { if (graphicsConfiguration != null) return graphicsConfiguration; if (peer != null) return peer.getGraphicsConfiguration(); return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
GraphicsConfiguration getGraphicsConfigurationImpl() { if (graphicsConfiguration != null) return graphicsConfiguration;
GraphicsConfiguration getGraphicsConfigurationImpl() { if (graphicsConfiguration != null) return graphicsConfiguration;
GraphicsConfiguration getGraphicsConfigurationImpl() { if (graphicsConfiguration != null) return graphicsConfiguration; return super.getGraphicsConfigurationImpl(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
return super.getGraphicsConfigurationImpl(); }
return super.getGraphicsConfigurationImpl(); }
GraphicsConfiguration getGraphicsConfigurationImpl() { if (graphicsConfiguration != null) return graphicsConfiguration; return super.getGraphicsConfigurationImpl(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public EventListener[] getListeners(Class listenerType) { if (listenerType == WindowListener.class) return getWindowListeners(); return super.getListeners(listenerType); }
public EventListener[] getListeners(Class listenerType) { if (listenerType == WindowListener.class) return getWindowListeners(); return super.getListeners(listenerType); }
public EventListener[] getListeners(Class listenerType) { if (listenerType == WindowListener.class) return getWindowListeners(); return super.getListeners(listenerType); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public Locale getLocale() { return locale == null ? Locale.getDefault() : locale; }
public Locale getLocale() { return locale == null ? Locale.getDefault() : locale; }
public Locale getLocale() { return locale == null ? Locale.getDefault() : locale; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public Window[] getOwnedWindows() { return new Window[0]; }
public Window[] getOwnedWindows() { Window [] trimmedList; synchronized (getTreeLock ()) { Window [] validList = new Window [ownedWindows.size()]; Iterator e = ownedWindows.iterator(); int numValid = 0; while (e.hasNext()) { Window w = (Window)(((Reference) e.next()).get()); if (w != null) validList[numValid++] = w; ...
public Window[] getOwnedWindows() { // FIXME: return array containing all the windows this window currently // owns. return new Window[0]; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public Window getOwner() { return (Window) parent; }
public Window getOwner() { return (Window) parent; }
public Window getOwner() { return (Window) parent; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public Toolkit getToolkit() { return Toolkit.getDefaultToolkit(); }
public Toolkit getToolkit() { return Toolkit.getDefaultToolkit(); }
public Toolkit getToolkit() { return Toolkit.getDefaultToolkit(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public final String getWarningString() { boolean secure = true; /* boolean secure = SecurityManager.checkTopLevelWindow(...) */ if (!secure) { if (warningString != null) return warningString; else { String warning = System.getProperty("awt.appletWarning"); return warning; } } return null; }
public final String getWarningString() { return warningString; }
public final String getWarningString() { boolean secure = true; /* boolean secure = SecurityManager.checkTopLevelWindow(...) */ if (!secure) { if (warningString != null) return warningString; else { String warning = System.getProperty("awt.appletWarning"); return warning; } } return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public synchronized WindowListener[] getWindowListeners() { return (WindowListener[]) AWTEventMulticaster.getListeners(windowListener, WindowListener.class); }
public synchronized WindowListener[] getWindowListeners() { return (WindowListener[]) AWTEventMulticaster.getListeners(windowListener, WindowListener.class); }
public synchronized WindowListener[] getWindowListeners() { return (WindowListener[]) AWTEventMulticaster.getListeners(windowListener, WindowListener.class); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public void hide() { super.hide(); }
public void hide() { synchronized (getTreeLock ()) { Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).get()); if (w != null) { if (w.isVisible() && w.getPeer() != null) w.getPeer().setVisible(false); } else e.remove(); } } super.hide(); }
public void hide() { // FIXME: call hide() on any "owned" children here. super.hide(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public boolean isDisplayable() { if (super.isDisplayable()) return true; return peer != null; }
public boolean isDisplayable() { if (super.isDisplayable()) return true; return peer != null; }
public boolean isDisplayable() { if (super.isDisplayable()) return true; return peer != null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public boolean isShowing() { return super.isShowing(); }
public boolean isShowing() { return super.isShowing(); }
public boolean isShowing() { return super.isShowing(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public void pack() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify();
public void pack() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify();
public void pack() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); setSize(getPreferredSize()); validate(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
setSize(getPreferredSize());
setSize(getPreferredSize());
public void pack() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); setSize(getPreferredSize()); validate(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
validate(); }
validate(); }
public void pack() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); setSize(getPreferredSize()); validate(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public boolean postEvent(Event e) { return false; }
public boolean postEvent(Event e) { return false; }
public boolean postEvent(Event e) { // FIXME return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
protected void processEvent(AWTEvent evt) { if (evt instanceof WindowEvent) processWindowEvent((WindowEvent) evt); else super.processEvent(evt); }
protected void processEvent(AWTEvent evt) { if (evt instanceof WindowEvent) processWindowEvent((WindowEvent) evt); else super.processEvent(evt); }
protected void processEvent(AWTEvent evt) { if (evt instanceof WindowEvent) processWindowEvent((WindowEvent) evt); else super.processEvent(evt); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
protected void processWindowEvent(WindowEvent evt) { if (windowListener != null) { switch (evt.getID()) { case WindowEvent.WINDOW_ACTIVATED : windowListener.windowActivated(evt); break; case WindowEvent.WINDOW_CLOSED : windowListener.windowClosed(evt); break; case WindowEvent.WINDOW_CLOSING : windowListener.windowClosi...
protected void processWindowEvent(WindowEvent evt) { int id = evt.getID(); if (id == WindowEvent.WINDOW_GAINED_FOCUS || id == WindowEvent.WINDOW_LOST_FOCUS) processWindowFocusEvent (evt); else if (id == WindowEvent.WINDOW_STATE_CHANGED) processWindowStateEvent (evt); else { if (windowListener != null) { switch (evt.ge...
protected void processWindowEvent(WindowEvent evt) { if (windowListener != null) { switch (evt.getID()) { case WindowEvent.WINDOW_ACTIVATED : windowListener.windowActivated(evt); break; case WindowEvent.WINDOW_CLOSED : windowListener.windowClosed(evt); break; case WindowEvent.WINDOW_CLOSING...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public synchronized void removeWindowListener(WindowListener listener) { windowListener = AWTEventMulticaster.remove(windowListener, listener); }
public synchronized void removeWindowListener(WindowListener listener) { windowListener = AWTEventMulticaster.remove(windowListener, listener); }
public synchronized void removeWindowListener(WindowListener listener) { windowListener = AWTEventMulticaster.remove(windowListener, listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public void setCursor(Cursor cursor) { super.setCursor(cursor); }
public void setCursor(Cursor cursor) { super.setCursor(cursor); }
public void setCursor(Cursor cursor) { super.setCursor(cursor); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public void show() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify();
public void show() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify();
public void show() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); validate(); super.show(); toFront(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
validate(); super.show(); toFront(); }
synchronized (getTreeLock()) { Iterator e = ownedWindows.iterator(); while(e.hasNext()) { Window w = (Window)(((Reference) e.next()).get()); if (w != null) { if (w.isVisible()) w.getPeer().setVisible(true); } else e.remove(); } } validate(); super.show(); toFront(); }
public void show() { if (parent != null && !parent.isDisplayable()) parent.addNotify(); if (peer == null) addNotify(); validate(); super.show(); toFront(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public void toBack() { if (peer != null) { WindowPeer wp = (WindowPeer) peer; wp.toBack(); } }
public void toBack() { if (peer != null) { WindowPeer wp = (WindowPeer) peer; wp.toBack(); } }
public void toBack() { if (peer != null) { WindowPeer wp = (WindowPeer) peer; wp.toBack(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public void toFront() { if (peer != null) { WindowPeer wp = (WindowPeer) peer; wp.toFront(); } }
public void toFront() { if (peer != null) { WindowPeer wp = (WindowPeer) peer; wp.toFront(); } }
public void toFront() { if (peer != null) { WindowPeer wp = (WindowPeer) peer; wp.toFront(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
if (dispatcher != null && dispatcher.handleEvent (e)) return;
boolean dispatched = LightweightDispatcher.getInstance().dispatchEvent(e); if (! dispatched) {
void dispatchEventImpl(AWTEvent e) { // Give lightweight dispatcher a chance to handle it. if (dispatcher != null && dispatcher.handleEvent (e)) return; if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && (containerListener != null || (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
}
void dispatchEventImpl(AWTEvent e) { // Give lightweight dispatcher a chance to handle it. if (dispatcher != null && dispatcher.handleEvent (e)) return; if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && (containerListener != null || (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Container.java/buggy/core/src/classpath/java/java/awt/Container.java
public WindowEvent(Window source, int id)
public WindowEvent(Window source, int id, Window opposite, int oldState, int newState)
public WindowEvent(Window source, int id) { this(source, id, null, 0, 0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/WindowEvent.java/buggy/core/src/classpath/java/java/awt/event/WindowEvent.java
this(source, id, null, 0, 0);
super(source, id); this.opposite = opposite; this.oldState = oldState; this.newState = newState;
public WindowEvent(Window source, int id) { this(source, id, null, 0, 0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/WindowEvent.java/buggy/core/src/classpath/java/java/awt/event/WindowEvent.java
if (accessibleContext != null) { AccessibleJScrollPane asp = (AccessibleJScrollPane) accessibleContext; asp.resetViewPort(); }
public void setViewport(JViewport v) { if (viewport == v) return; JViewport old = viewport; removeNonNull(old); viewport = v; addNonNull(v, JScrollPane.VIEWPORT); revalidate(); repaint(); firePropertyChange("viewport", old, v); sync(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/JScrollPane.java/clean/core/src/classpath/javax/javax/swing/JScrollPane.java
public void ensureFileIsVisible(JFileChooser chooser, File file) {
public void ensureFileIsVisible(JFileChooser chooser, File file) {
public void ensureFileIsVisible(JFileChooser chooser, File file) { Iterator iterator = uis.iterator(); while (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); ui.ensureFileIsVisible(chooser, file); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01bcf1d981a0d2c2251fcc9f4417c2f3b3c93627/MultiFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/multi/MultiFileChooserUI.java
public FileFilter getAcceptAllFileFilter(JFileChooser chooser) {
public FileFilter getAcceptAllFileFilter(JFileChooser chooser) {
public FileFilter getAcceptAllFileFilter(JFileChooser chooser) { FileFilter result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); result = ui.getAcceptAllFileFilter...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01bcf1d981a0d2c2251fcc9f4417c2f3b3c93627/MultiFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/multi/MultiFileChooserUI.java
public String getApproveButtonText(JFileChooser chooser) {
public String getApproveButtonText(JFileChooser chooser) {
public String getApproveButtonText(JFileChooser chooser) { String result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); result = ui.getApproveButtonText(chooser); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01bcf1d981a0d2c2251fcc9f4417c2f3b3c93627/MultiFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/multi/MultiFileChooserUI.java
public String getDialogTitle(JFileChooser chooser) {
public String getDialogTitle(JFileChooser chooser) {
public String getDialogTitle(JFileChooser chooser) { String result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); result = ui.getDialogTitle(chooser); } // ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01bcf1d981a0d2c2251fcc9f4417c2f3b3c93627/MultiFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/multi/MultiFileChooserUI.java
public FileView getFileView(JFileChooser chooser) {
public FileView getFileView(JFileChooser chooser) {
public FileView getFileView(JFileChooser chooser) { FileView result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); result = ui.getFileView(chooser); } // re...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01bcf1d981a0d2c2251fcc9f4417c2f3b3c93627/MultiFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/multi/MultiFileChooserUI.java
public void rescanCurrentDirectory(JFileChooser chooser) {
public void rescanCurrentDirectory(JFileChooser chooser) {
public void rescanCurrentDirectory(JFileChooser chooser) { Iterator iterator = uis.iterator(); while (iterator.hasNext()) { FileChooserUI ui = (FileChooserUI) iterator.next(); ui.rescanCurrentDirectory(chooser); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01bcf1d981a0d2c2251fcc9f4417c2f3b3c93627/MultiFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/multi/MultiFileChooserUI.java
if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalProgressBarUI instance; if (o == null) { instance = new MetalProgressBarUI(); instances.put(component, instance); } else instance = (MetalProgressBarUI) o; return instance;
return new MetalProgressBarUI();
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalProgressBarUI instance; if (o == null) { instance = new MetalProgressBarUI(); instances.put(component, instance); } else ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/MetalProgressBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalProgressBarUI.java
boolean addAll(Collection<? extends E> c);
boolean addAll(int index, Collection<? extends E> c);
boolean addAll(Collection<? extends E> c);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/List.java/buggy/core/src/classpath/5.0/java/util/List.java
if (!isSerializable() || isExternalizable())
if (!isSerializable() || isExternalizable() || isEnum())
private void setFields(Class cl) { SetAccessibleAction setAccessible = new SetAccessibleAction(); if (!isSerializable() || isExternalizable()) { fields = NO_FIELDS; return; } try { final Field f = cl.getDeclaredField("serialPersistentFields"); setAccessible.setMember(f); AccessController.do...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba6c8424cfc5e0b2250088f94b5bbf356d91781a/ObjectStreamClass.java/buggy/core/src/classpath/5.0/java/io/ObjectStreamClass.java
ObjectStreamField[] fieldsName = new ObjectStreamField[fields.length]; System.arraycopy(fields, 0, fieldsName, 0, fields.length); Arrays.sort (fieldsName, new Comparator() { public int compare(Object o1, Object o2) { ObjectStreamField f1 = (ObjectStreamField)o1; ObjectStreamField f2 = (ObjectStreamField)o2; return f1...
private void setFields(Class cl) { SetAccessibleAction setAccessible = new SetAccessibleAction(); if (!isSerializable() || isExternalizable()) { fields = NO_FIELDS; return; } try { final Field f = cl.getDeclaredField("serialPersistentFields"); setAccessible.setMember(f); AccessController.do...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba6c8424cfc5e0b2250088f94b5bbf356d91781a/ObjectStreamClass.java/buggy/core/src/classpath/5.0/java/io/ObjectStreamClass.java
if (cl.isEnum() || cl == Enum.class) flags |= ObjectStreamConstants.SC_ENUM;
private void setFlags(Class cl) { if ((java.io.Externalizable.class).isAssignableFrom(cl)) flags |= ObjectStreamConstants.SC_EXTERNALIZABLE; else if ((java.io.Serializable.class).isAssignableFrom(cl)) // only set this bit if CL is NOT Externalizable flags |= ObjectStreamConstants.SC_SERIALIZABLE...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba6c8424cfc5e0b2250088f94b5bbf356d91781a/ObjectStreamClass.java/buggy/core/src/classpath/5.0/java/io/ObjectStreamClass.java
put("Alg.Alias.MessageDigest.SHA-160", "SHA");
public Gnu() { super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores"); AccessController.doPrivileged (new PrivilegedAction() { public Object run() { // Note that all implementation class nam...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Gnu.java/buggy/core/src/classpath/gnu/gnu/java/security/provider/Gnu.java
public static <T> void sort(T[] a, Comparator<? super T> c)
public static void sort(byte[] a)
public static <T> void sort(T[] a, Comparator<? super T> c) { sort(a, 0, a.length, c); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/Arrays.java/buggy/core/src/classpath/5.0/java/util/Arrays.java
sort(a, 0, a.length, c);
qsort(a, 0, a.length);
public static <T> void sort(T[] a, Comparator<? super T> c) { sort(a, 0, a.length, c); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/Arrays.java/buggy/core/src/classpath/5.0/java/util/Arrays.java
Component comp= renderer.getListCellRendererComponent(listBox, comboBox.getSelectedItem(), -1, false, false);
Component comp = renderer.getListCellRendererComponent(listBox, comboBox.getSelectedItem(), -1, false, false);
public void paintComponent(Graphics g) { super.paintComponent(g); Insets insets = this.getInsets(); int w = getWidth() - (insets.left + insets.right); int h = getHeight() - (insets.top + insets.bottom); if (h > 0 && w > 0) { int x1 = insets.left; int y1 = insets.top; int x2 =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e0c4001932916dcdf180e32bf374255e88829b25/MetalComboBoxButton.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalComboBoxButton.java
public void setRolloverEnabled(boolean b) { getModel().setRollover(b); }
public void setRolloverEnabled(boolean r) { boolean old = getModel().isRollover(); getModel().setRollover(r); if (old != getModel().isRollover()) { firePropertyChange(ROLLOVER_ENABLED_CHANGED_PROPERTY, old, r); revalidate(); repaint(); } }
public void setRolloverEnabled(boolean b) { getModel().setRollover(b); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/buggy/core/src/classpath/javax/javax/swing/AbstractButton.java
public boolean isFocusTraversable() { return true; }
public boolean isFocusTraversable() { return true; }
public boolean isFocusTraversable() { //Identifies whether or not this component can receive the focus. return true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/buggy/core/src/classpath/javax/javax/swing/AbstractButton.java
return cachedRaster.createChild(0 ,0 ,width ,height ,x ,y , null);
return cachedRaster.createChild(0 ,0 ,width ,height ,0 ,0 , null);
public Raster getRaster(int x, int y, int width, int height) { if( cachedRaster == null || cachedRaster.getWidth() < width || cachedRaster.getHeight() < height) { cachedRaster = new ColorRaster(colorModel, 0, 0, width, height, color); } return cachedRaster.createChild(0 ,0 ,width ,height ,x...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/ColorPaintContext.java/clean/core/src/classpath/java/java/awt/ColorPaintContext.java
public int[] getComponents(Object pixel, int[] components, int offset)
public int[] getComponents(int pixel, int[] components, int offset)
public int[] getComponents(Object pixel, int[] components, int offset) { // subclasses has to implement this method. throw new UnsupportedOperationException(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/ColorModel.java/buggy/core/src/classpath/java/java/awt/image/ColorModel.java
this.arguments = arguments;
this.arguments = (arguments != null) ? arguments : new Object[0]; storeTargetName(target);
public Statement(Object target, String methodName, Object[] arguments) { this.target = target; this.methodName = methodName; this.arguments = arguments; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/cfd5d26ab69af1fe494534bdf03f35be22c13bd8/Statement.java/buggy/core/src/classpath/java/java/beans/Statement.java
public Enumeration children() { return Collections.enumeration(tree_children); }
public abstract Enumeration children();
public Enumeration children() { return Collections.enumeration(tree_children); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
public boolean getAllowsChildren() { return true; }
public abstract boolean getAllowsChildren();
public boolean getAllowsChildren() { return true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
public Element getElement(int index) { return (Element) element_children.get(index); }
public abstract Element getElement(int index);
public Element getElement(int index) { return (Element) element_children.get(index); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return children.elements();
if (children.length == 0) return null; Vector tmp = new Vector(); for (int index = 0; index < children.length; ++index) tmp.add(children[index]); return tmp.elements();
public Enumeration children() { return children.elements(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
if (index < 0 || index >= children.size())
if (index < 0 || index >= children.length)
public Element getElement(int index) { if (index < 0 || index >= children.size()) return null; return (Element) children.get(index); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return (Element) children.get(index);
return children[index];
public Element getElement(int index) { if (index < 0 || index >= children.size()) return null; return (Element) children.get(index); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return children.size();
return children.length;
public int getElementCount() { return children.size(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
if (children.size() == 0)
for (int index = 0; index < children.length; ++index) { Element elem = children[index]; if ((elem.getStartOffset() <= offset) && (offset < elem.getEndOffset())) return index; }
public int getElementIndex(int offset) { if (children.size() == 0) return 0; Element element = positionToElement(offset); if (element == null) return 0; return children.indexOf(element); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
Element element = positionToElement(offset); if (element == null) return 0; return children.indexOf(element);
public int getElementIndex(int offset) { if (children.size() == 0) return 0; Element element = positionToElement(offset); if (element == null) return 0; return children.indexOf(element); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return ((Element) children.lastElement()).getEndOffset();
return children[children.length - 1].getEndOffset();
public int getEndOffset() { return ((Element) children.lastElement()).getEndOffset(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return "AbstractDocument.BranchElement";
return ParagraphElementName;
public String getName() { return "AbstractDocument.BranchElement"; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return ((Element) children.firstElement()).getStartOffset();
return children[0].getStartOffset();
public int getStartOffset() { return ((Element) children.firstElement()).getStartOffset(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
for (int index = 0; index < children.size(); ++index)
for (int index = 0; index < children.length; ++index)
public Element positionToElement(int position) { // XXX: There is surely a better algorithm // as beginning from first element each time. for (int index = 0; index < children.size(); ++index) { Element elem = (Element) children.get(index); if ((elem.getStartOffset() <= position) &...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
Element elem = (Element) children.get(index);
Element elem = children[index];
public Element positionToElement(int position) { // XXX: There is surely a better algorithm // as beginning from first element each time. for (int index = 0; index < children.size(); ++index) { Element elem = (Element) children.get(index); if ((elem.getStartOffset() <= position) &...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
public void replace(int offset, int length, Element[] elems)
public void replace(int offset, int length, Element[] elements)
public void replace(int offset, int length, Element[] elems) { for (int index = 0; index < length; ++index) children.removeElementAt(offset); for (int index = 0; index < elems.length; ++index) children.add(offset + index, elems[index]); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
for (int index = 0; index < length; ++index) children.removeElementAt(offset); for (int index = 0; index < elems.length; ++index) children.add(offset + index, elems[index]);
Element[] target = new Element[children.length - length + elements.length]; System.arraycopy(children, 0, target, 0, offset); System.arraycopy(elements, 0, target, offset, elements.length); System.arraycopy(children, offset + length, target, offset + elements.length, children.length - offset - length); children = targe...
public void replace(int offset, int length, Element[] elems) { for (int index = 0; index < length; ++index) children.removeElementAt(offset); for (int index = 0; index < elems.length; ++index) children.add(offset + index, elems[index]); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return getName() + ": " + "content";
return ("BranchElement(" + getName() + ") " + getStartOffset() + "," + getEndOffset() + "\n");
public String toString() { return getName() + ": " + "content"; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
public Element getElement()
public Element getElement(int index)
public Element getElement() { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return "AbstractDocument.LeafElement";
return ContentElementName;
public String getName() { return "AbstractDocument.LeafElement"; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return getName() + ": " + "content";
return ("LeafElement(" + getName() + ") " + getStartOffset() + "," + getEndOffset() + "\n");
public String toString() { return getName() + ": " + "content"; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
return content.length();
return content.length() - 1;
public int getLength() { return content.length(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
String f = canonicalize ((String) elts.get (i));
String f = canonicalize ((String) elts.get (delta + i));
public boolean endsWith (Name n) { if (! (n instanceof CompoundName)) return false; CompoundName cn = (CompoundName) n; if (cn.elts.size () > elts.size ()) return false; int delta = elts.size () - cn.elts.size (); for (int i = 0; i < cn.elts.size (); ++i) { String f = canonicalize ((Str...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/CompoundName.java/clean/core/src/classpath/javax/javax/naming/CompoundName.java
ParsedArguments cmdLine = HELP_INFO.parse(args);
final ParsedArguments cmdLine = HELP_INFO.parse(args);
public static void main(String[] args) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(args); final File entry = ARG_DIR.getFile(cmdLine); if (entry.exists()) { entry.delete(); } else { System.err.println(entry + " does not exist"); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af75f31f7ce367a1e5ad83168b6492652bafd7b6/DeleteCommand.java/buggy/fs/src/fs/org/jnode/fs/command/DeleteCommand.java
if (entry.exists()) { entry.delete(); } else {
boolean deleteOk=false; if (!entry.exists()) {
public static void main(String[] args) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(args); final File entry = ARG_DIR.getFile(cmdLine); if (entry.exists()) { entry.delete(); } else { System.err.println(entry + " does not exist"); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af75f31f7ce367a1e5ad83168b6492652bafd7b6/DeleteCommand.java/buggy/fs/src/fs/org/jnode/fs/command/DeleteCommand.java
if(entry.isDirectory()){ final File[] subFile=entry.listFiles(); for(int i=0;i<subFile.length;i++){ final String name=subFile[i].getName(); if(!name.equals(".") && !name.equals("..")){ System.err.println("Directory is not empty"); return; } } } deleteOk=entry.delete(); if(!deleteOk){ System.err.println(entry + " doe...
public static void main(String[] args) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(args); final File entry = ARG_DIR.getFile(cmdLine); if (entry.exists()) { entry.delete(); } else { System.err.println(entry + " does not exist"); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af75f31f7ce367a1e5ad83168b6492652bafd7b6/DeleteCommand.java/buggy/fs/src/fs/org/jnode/fs/command/DeleteCommand.java
public WritableRaster createCompatibleWritableRaster(int w, int h)
public WritableRaster createCompatibleWritableRaster()
public WritableRaster createCompatibleWritableRaster(int w, int h) { return createCompatibleWritableRaster(minX, minY, w, h); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Raster.java/buggy/core/src/classpath/java/java/awt/image/Raster.java
return createCompatibleWritableRaster(minX, minY, w, h);
return new WritableRaster(getSampleModel(), new Point(minX, minY));
public WritableRaster createCompatibleWritableRaster(int w, int h) { return createCompatibleWritableRaster(minX, minY, w, h); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Raster.java/buggy/core/src/classpath/java/java/awt/image/Raster.java
r.translate((int) r.getWidth(), 0);
r.translate((int) r.getWidth() - 1, 0);
public int getFirstVisibleIndex() { ComponentOrientation or = getComponentOrientation(); Rectangle r = getVisibleRect(); if (or == ComponentOrientation.RIGHT_TO_LEFT) r.translate((int) r.getWidth(), 0); return getUI().locationToIndex(this, r.getLocation()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/JList.java/buggy/core/src/classpath/javax/javax/swing/JList.java