rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
"TitledBorder.titleColor", new ColorUIResource(Color.black), "ToggleButton.background", new ColorUIResource(Color.lightGray), "ToggleButton.border", new BorderUIResource.CompoundBorderUIResource(null, null),
"TitledBorder.titleColor", new ColorUIResource(darkShadow), "ToggleButton.background", new ColorUIResource(light), "ToggleButton.border", new BorderUIResource.CompoundBorderUIResource(null, null), "ToggleButton.darkShadow", new ColorUIResource(shadow),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
"ToggleButton.foreground", new ColorUIResource(Color.black),
"ToggleButton.foreground", new ColorUIResource(darkShadow), "ToggleButton.highlight", new ColorUIResource(highLight), "ToggleButton.light", new ColorUIResource(light),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
"ToolBar.background", new ColorUIResource(Color.lightGray),
"ToolBar.background", new ColorUIResource(light),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
"ToolBar.dockingBackground", new ColorUIResource(Color.lightGray), "ToolBar.dockingForeground", new ColorUIResource(11, 30, 143), "ToolBar.floatingBackground", new ColorUIResource(Color.lightGray), "ToolBar.floatingForeground", new ColorUIResource(113, 171, 212),
"ToolBar.darkShadow", new ColorUIResource(shadow), "ToolBar.dockingBackground", new ColorUIResource(light), "ToolBar.dockingForeground", new ColorUIResource(Color.red), "ToolBar.floatingBackground", new ColorUIResource(light), "ToolBar.floatingForeground", new ColorUIResource(Color.darkGray),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
"ToolBar.foreground", new ColorUIResource(Color.black),
"ToolBar.foreground", new ColorUIResource(darkShadow), "ToolBar.highlight", new ColorUIResource(highLight), "ToolBar.light", new ColorUIResource(highLight),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
"ToolTip.background", new ColorUIResource(122, 178, 241),
"ToolBar.shadow", new ColorUIResource(shadow), "ToolTip.background", new ColorUIResource(light),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
"ToolTip.foreground", new ColorUIResource(Color.black),
"ToolTip.foreground", new ColorUIResource(darkShadow),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
"Tree.background", new ColorUIResource(Color.white),
"Tree.background", new ColorUIResource(light),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
"Tree.selectionBackground", new ColorUIResource(lightPurple),
"Tree.selectionBackground", new ColorUIResource(Color.black),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
"Tree.selectionForeground", new ColorUIResource(Color.black), "Tree.textBackground", new ColorUIResource(Color.lightGray),
"Tree.selectionForeground", new ColorUIResource(Color.white), "Tree.textBackground", new ColorUIResource(Color.white),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
"Viewport.background", new ColorUIResource(Color.lightGray), "Viewport.font", new FontUIResource("Dialog", Font.PLAIN, 12),
"Viewport.background", new ColorUIResource(light), "Viewport.foreground", new ColorUIResource(Color.black), "Viewport.font", new FontUIResource("Dialog", Font.PLAIN, 12)
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; // The default Look and Feel happens to use these three purple shades // extensively. Color lightPurple = new Color(0xCC, 0xCC, 0xFF); Color midPurple = new Color(0x99, 0x99, 0xCC); Color darkPurple = new Color(0x6...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
"control", new ColorUIResource(Color.lightGray), "controlDkShadow", new ColorUIResource(Color.black), "controlHighlight", new ColorUIResource(Color.lightGray), "controlLtHighlight", new ColorUIResource(Color.white), "controlShadow", new ColorUIResource(Color.gray), "controlText", new ColorUIResource(Color.black),
"control", new ColorUIResource(light), "controlDkShadow", new ColorUIResource(shadow), "controlHighlight", new ColorUIResource(highLight), "controlLtHighlight", new ColorUIResource(highLight), "controlShadow", new ColorUIResource(shadow), "controlText", new ColorUIResource(darkShadow),
protected void initSystemColorDefaults(UIDefaults defaults) { Object[] uiDefaults; uiDefaults = new Object[] { "activeCaption", new ColorUIResource(0, 0, 128), "activeCaptionBorder", new ColorUIResource(Color.lightGray), "activeCaptionText", new ColorUIResource(Color.white), "control", new ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
"info", new ColorUIResource(Color.white), "infoText", new ColorUIResource(Color.black), "menu", new ColorUIResource(Color.lightGray), "menuText", new ColorUIResource(Color.black), "scrollbar", new ColorUIResource(224, 224, 224), "text", new ColorUIResource(Color.lightGray), "textHighlight", new ColorUIResource(0, 0, 12...
"info", new ColorUIResource(light), "infoText", new ColorUIResource(darkShadow), "menu", new ColorUIResource(light), "menuText", new ColorUIResource(darkShadow), "scrollbar", new ColorUIResource(light), "text", new ColorUIResource(Color.white), "textHighlight", new ColorUIResource(Color.black),
protected void initSystemColorDefaults(UIDefaults defaults) { Object[] uiDefaults; uiDefaults = new Object[] { "activeCaption", new ColorUIResource(0, 0, 128), "activeCaptionBorder", new ColorUIResource(Color.lightGray), "activeCaptionText", new ColorUIResource(Color.white), "control", new ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
"window", new ColorUIResource(Color.white),
"window", new ColorUIResource(light),
protected void initSystemColorDefaults(UIDefaults defaults) { Object[] uiDefaults; uiDefaults = new Object[] { "activeCaption", new ColorUIResource(0, 0, 128), "activeCaptionBorder", new ColorUIResource(Color.lightGray), "activeCaptionText", new ColorUIResource(Color.white), "control", new ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
"windowText", new ColorUIResource(Color.black)
"windowText", new ColorUIResource(darkShadow)
protected void initSystemColorDefaults(UIDefaults defaults) { Object[] uiDefaults; uiDefaults = new Object[] { "activeCaption", new ColorUIResource(0, 0, 128), "activeCaptionBorder", new ColorUIResource(Color.lightGray), "activeCaptionText", new ColorUIResource(Color.white), "control", new ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/BasicLookAndFeel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java
public LinkageError(String s) { super(s);
public LinkageError() {
public LinkageError(String s) { super(s); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/LinkageError.java/buggy/core/src/classpath/java/java/lang/LinkageError.java
Object[] listeners;
ChangeListener[] listeners = getChangeListeners();
protected void fireStateChanged() { Object[] listeners; listeners = listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) if (listeners[i] == ChangeListener.class) { if (changeEvent == null) changeEvent = new ChangeEvent(this); ((ChangeLi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/DefaultBoundedRangeModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultBoundedRangeModel.java
listeners = listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) if (listeners[i] == ChangeListener.class) {
protected void fireStateChanged() { Object[] listeners; listeners = listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) if (listeners[i] == ChangeListener.class) { if (changeEvent == null) changeEvent = new ChangeEvent(this); ((ChangeLi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/DefaultBoundedRangeModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultBoundedRangeModel.java
((ChangeListener) listeners[i + 1]).stateChanged(changeEvent); }
for (int i = listeners.length - 1; i >= 0; --i) listeners[i].stateChanged(changeEvent);
protected void fireStateChanged() { Object[] listeners; listeners = listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) if (listeners[i] == ChangeListener.class) { if (changeEvent == null) changeEvent = new ChangeEvent(this); ((ChangeLi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/DefaultBoundedRangeModel.java/buggy/core/src/classpath/javax/javax/swing/DefaultBoundedRangeModel.java
public RepaintManager() { }
public RepaintManager() { dirtyComponents = new Hashtable(); invalidComponents = new Vector(); repaintWorker = new RepaintWorker(); doubleBufferMaximumSize = new Dimension(2000,2000); doubleBufferingEnabled = true; }
public RepaintManager() { // TODO } // RepaintManager()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { }
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)dirtyComponents.get(component)); dirtyComponents.put(component, r); if (! repaintWorker.isLive()) { repaintWorker.setLiv...
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { // TODO } // addDirtyRegion()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public synchronized void addInvalidComponent(JComponent component) { }
public synchronized void addInvalidComponent(JComponent component) { while ((component.getParent() != null) && (component.getParent() instanceof JComponent) && (component.isValidateRoot())) component = (JComponent) component.getParent(); if (invalidComponents.contains(component)) return; invalidComponents.add(compone...
public synchronized void addInvalidComponent(JComponent component) { // TODO } // addInvalidComponent()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public static RepaintManager currentManager(Component component) { return null; }
public static RepaintManager currentManager(Component component) { if (globalManager == null) globalManager = new RepaintManager(); return globalManager; }
public static RepaintManager currentManager(Component component) { return null; // TODO } // currentManager()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public Rectangle getDirtyRegion(JComponent component) { return null; }
public Rectangle getDirtyRegion(JComponent component) { return (Rectangle) dirtyComponents.get(component); }
public Rectangle getDirtyRegion(JComponent component) { return null; // TODO } // getDirtyRegion()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public Dimension getDoubleBufferMaximumSize() { return null; }
public Dimension getDoubleBufferMaximumSize() { return doubleBufferMaximumSize; }
public Dimension getDoubleBufferMaximumSize() { return null; // TODO } // getDoubleBufferMaximumSize()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public Image getOffscreenBuffer(Component component, int proposedWidth, int proposedHeight) { return null; }
public Image getOffscreenBuffer(Component component, int proposedWidth, int proposedHeight) { if (doubleBuffer == null || (((doubleBuffer.getWidth(null) < proposedWidth) || (doubleBuffer.getHeight(null) < proposedHeight)) && (proposedWidth < doubleBufferMaximumSize.width) && (proposedHeight < doubleBufferMaximumSize.he...
public Image getOffscreenBuffer(Component component, int proposedWidth, int proposedHeight) { return null; // TODO } // getOffscreenBuffer()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public boolean isCompletelyDirty(JComponent component) { return false; }
public boolean isCompletelyDirty(JComponent component) { Rectangle dirty = (Rectangle) dirtyComponents.get(component); if (dirty == null) return false; Rectangle r = component.getBounds(); if (r == null) return true; return dirty.contains(r); }
public boolean isCompletelyDirty(JComponent component) { return false; // TODO } // isCompletelyDirty()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public boolean isDoubleBufferingEnabled() { return false; }
public boolean isDoubleBufferingEnabled() { return doubleBufferingEnabled; }
public boolean isDoubleBufferingEnabled() { return false; // TODO } // isDoubleBufferingEnabled()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public void markCompletelyClean(JComponent component) { }
public void markCompletelyClean(JComponent component) { dirtyComponents.remove(component); }
public void markCompletelyClean(JComponent component) { // TODO } // markCompletelyClean()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public void markCompletelyDirty(JComponent component) { }
public void markCompletelyDirty(JComponent component) { Rectangle r = component.getBounds(); addDirtyRegion(component, r.x, r.y, r.width, r.height); }
public void markCompletelyDirty(JComponent component) { // TODO } // markCompletelyDirty()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public void paintDirtyRegions() { }
public void paintDirtyRegions() { HashMap roots = new HashMap(); for (Enumeration e = dirtyComponents.keys(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) continue; Rectangle damaged = getDirtyRegion(comp); if (damaged.width == 0 || damaged.hei...
public void paintDirtyRegions() { // TODO } // paintDirtyRegions()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public synchronized void removeInvalidComponent(JComponent component) { }
public synchronized void removeInvalidComponent(JComponent component) { invalidComponents.removeElement(component); }
public synchronized void removeInvalidComponent(JComponent component) { // TODO } // removeInvalidComponent()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public static void setCurrentManager(RepaintManager manager) { }
public static void setCurrentManager(RepaintManager manager) { globalManager = manager; }
public static void setCurrentManager(RepaintManager manager) { // TODO } // setCurrentManager()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public void setDoubleBufferMaximumSize(Dimension size) { }
public void setDoubleBufferMaximumSize(Dimension size) { doubleBufferMaximumSize = size; }
public void setDoubleBufferMaximumSize(Dimension size) { // TODO } // setDoubleBufferMaximumSize()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public void setDoubleBufferingEnabled(boolean buffer) { }
public void setDoubleBufferingEnabled(boolean buffer) { doubleBufferingEnabled = buffer; }
public void setDoubleBufferingEnabled(boolean buffer) { // TODO } // setDoubleBufferingEnabled()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public synchronized String toString() { return null; }
public String toString() { return "RepaintManager"; }
public synchronized String toString() { return null; // TODO } // toString()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
public void validateInvalidComponents() { }
public void validateInvalidComponents() { for (Enumeration e = invalidComponents.elements(); e.hasMoreElements(); ) { JComponent comp = (JComponent) e.nextElement(); if (! (comp.isVisible() && comp.isShowing())) continue; comp.validate(); } invalidComponents.clear(); }
public void validateInvalidComponents() { // TODO } // validateInvalidComponents()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java
ParsedArguments cmdLine = HELP_INFO.parse(args); File dir = ARG_DIR.getFile(cmdLine); dir.mkdir();
final ParsedArguments cmdLine = HELP_INFO.parse(args); final File dir = ARG_DIR.getFile(cmdLine); boolean mkOk = false; mkOk=dir.mkdir(); if(!mkOk){ System.err.println("Directory can't make"); }
public static void main(String[] args) throws Exception { ParsedArguments cmdLine = HELP_INFO.parse(args); File dir = ARG_DIR.getFile(cmdLine); dir.mkdir(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af75f31f7ce367a1e5ad83168b6492652bafd7b6/MkdirCommand.java/clean/fs/src/fs/org/jnode/fs/command/MkdirCommand.java
AbstractBorder() { }
public AbstractBorder () { }
AbstractBorder() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractBorder.java/clean/core/src/classpath/javax/javax/swing/border/AbstractBorder.java
public Rectangle getInteriorRectangle(Component c, int x, int y, int width, int height) { return getInteriorRectangle(c, this, x, y, width, height); }
public Rectangle getInteriorRectangle (Component c, int x, int y, int width, int height) { return getInteriorRectangle (c, this, x, y, width, height); }
public Rectangle getInteriorRectangle(Component c, int x, int y, int width, int height) { return getInteriorRectangle(c, this, x, y, width, height); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractBorder.java/clean/core/src/classpath/javax/javax/swing/border/AbstractBorder.java
String localName);
String localName) throws DOMException;
public String getAttributeNS(String namespaceURI, String localName);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/Element.java/clean/core/src/classpath/org/org/w3c/dom/Element.java
String localName);
String localName) throws DOMException;
public Attr getAttributeNodeNS(String namespaceURI, String localName);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/Element.java/clean/core/src/classpath/org/org/w3c/dom/Element.java
String localName);
String localName) throws DOMException;
public NodeList getElementsByTagNameNS(String namespaceURI, String localName);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/Element.java/clean/core/src/classpath/org/org/w3c/dom/Element.java
String localName);
String localName) throws DOMException;
public boolean hasAttributeNS(String namespaceURI, String localName);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/Element.java/clean/core/src/classpath/org/org/w3c/dom/Element.java
private Intersection[] cubicCubicIntersect(CubicSegment curve1, CubicSegment curve2)
Intersection[] cubicCubicIntersect(CubicSegment curve1, CubicSegment curve2)
private Intersection[] cubicCubicIntersect(CubicSegment curve1, CubicSegment curve2) { Rectangle2D r1 = curve1.getBounds(); Rectangle2D r2 = curve2.getBounds(); if (! r1.intersects(r2)) return null; cc_intersections = new Vector(); recursiveSubdivide(cu...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/Area.java/clean/core/src/classpath/java/java/awt/geom/Area.java
private Intersection[] lineCubicIntersect(LineSegment l, CubicSegment c)
Intersection[] lineCubicIntersect(LineSegment l, CubicSegment c)
private Intersection[] lineCubicIntersect(LineSegment l, CubicSegment c) { double[] y = new double[4]; double[] x = new double[4]; double[] r = new double[4]; int nRoots; double x0 = c.P1.getX(); double y0 = c.P1.getY(); double x1 = c.cp1.getX(); double y1 = c.cp1.getY(); double x2 = c.cp2...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/Area.java/clean/core/src/classpath/java/java/awt/geom/Area.java
private Intersection[] lineQuadIntersect(LineSegment l, QuadSegment c)
Intersection[] lineQuadIntersect(LineSegment l, QuadSegment c)
private Intersection[] lineQuadIntersect(LineSegment l, QuadSegment c) { double[] y = new double[3]; double[] x = new double[3]; double[] r = new double[3]; int nRoots; double x0 = c.P1.getX(); double y0 = c.P1.getY(); double x1 = c.cp.getX(); double y1 = c.cp.getY(); double x2 = c.P2.getX...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/Area.java/clean/core/src/classpath/java/java/awt/geom/Area.java
private Intersection linesIntersect(LineSegment a, LineSegment b)
Intersection linesIntersect(LineSegment a, LineSegment b)
private Intersection linesIntersect(LineSegment a, LineSegment b) { Point2D P1 = a.P1; Point2D P2 = a.P2; Point2D P3 = b.P1; Point2D P4 = b.P2; if (! Line2D.linesIntersect(P1.getX(), P1.getY(), P2.getX(), P2.getY(), P3.getX(), P3.getY(), P4.getX(), P4.getY())) retur...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/Area.java/clean/core/src/classpath/java/java/awt/geom/Area.java
private boolean pointEquals(Point2D a, Point2D b)
boolean pointEquals(Point2D a, Point2D b)
private boolean pointEquals(Point2D a, Point2D b) { return (a.equals(b) || a.distance(b) < PE_EPSILON); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/Area.java/clean/core/src/classpath/java/java/awt/geom/Area.java
public void addActionListener(ActionListener listener) { }
public void addActionListener(ActionListener listener) { listenerList.add (ActionListener.class, listener); }
public void addActionListener(ActionListener listener) { // TODO } // addActionListener()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void removeActionListener(ActionListener listener) { }
public void removeActionListener(ActionListener listener) { listenerList.remove (ActionListener.class, listener); }
public void removeActionListener(ActionListener listener) { // TODO } // removeActionListener()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public List getInetAddresses(VMNetDevice netDevice);
public List<InetAddress> getInetAddresses(VMNetDevice netDevice);
public List getInetAddresses(VMNetDevice netDevice);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff85486c4bc88d3b82d27fe4f951dc7bafeafa6f/VMNetAPI.java/buggy/core/src/classpath/vm/java/net/VMNetAPI.java
public Collection getNetDevices();
public Collection<VMNetDevice> getNetDevices();
public Collection getNetDevices();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff85486c4bc88d3b82d27fe4f951dc7bafeafa6f/VMNetAPI.java/buggy/core/src/classpath/vm/java/net/VMNetAPI.java
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); c.setForeground(defaults.getColor("Label.foreground")); c.setBackground(defaults.getColor("Label.background")); c.setFont(defaults.getFont("Label.font"));
LookAndFeel.installColorsAndFont(c, "Label.background", "Label.foreground", "Label.font");
protected void installDefaults(JLabel c) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); c.setForeground(defaults.getColor("Label.foreground")); c.setBackground(defaults.getColor("Label.background")); c.setFont(defaults.getFont("Label.font")); //XXX: There are properties we don't use calle...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicLabelUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicLabelUI.java
Unsafe.copy(srcPtr, dstPtr, length * elemsize);
Unsafe.copy(srcPtr, dstPtr, size);
public static void arrayCopy(Object src, int srcPos, Object dst, int dstPos, int length) throws PrivilegedActionPragma { Class src_class = src.getClass(); Class dst_class = dst.getClass(); if (!src_class.isArray()) { Unsafe.debug('!'); throw new ArrayStoreException("src is not an array"); } if (!dst_class.i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d72aecd9d9769d27b315f4c415bf7fe4ef49cb91/VmSystem.java/clean/core/src/core/org/jnode/vm/VmSystem.java
headers = new LinkedHashMap();
public Headers() { headers = new LinkedHashMap(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Headers.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/http/Headers.java
String old = (String) headers.get(key);
String old = (String) super.get(key);
private void addValue(String name, String value) { Header key = new Header(name); String old = (String) headers.get(key); if (old == null) { headers.put(key, value); } else { headers.put(key, old + ", " + value); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Headers.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/http/Headers.java
headers.put(key, value);
super.put(key, value);
private void addValue(String name, String value) { Header key = new Header(name); String old = (String) headers.get(key); if (old == null) { headers.put(key, value); } else { headers.put(key, old + ", " + value); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Headers.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/http/Headers.java
headers.put(key, old + ", " + value);
super.put(key, old + ", " + value);
private void addValue(String name, String value) { Header key = new Header(name); String old = (String) headers.get(key); if (old == null) { headers.put(key, value); } else { headers.put(key, old + ", " + value); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Headers.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/http/Headers.java
return headers.containsKey(new Header((String) key));
return super.containsKey(new Header((String) key));
public boolean containsKey(Object key) { return headers.containsKey(new Header((String) key)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Headers.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/http/Headers.java
Set entries = headers.entrySet();
Set entries = super.entrySet();
public Set entrySet() { Set entries = headers.entrySet(); Set ret = new LinkedHashSet(); for (Iterator i = entries.iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); ret.add(new HeaderEntry(entry)); } return ret; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Headers.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/http/Headers.java
return headers.get(new Header((String) key));
return super.get(new Header((String) key));
public Object get(Object key) { return headers.get(new Header((String) key)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Headers.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/http/Headers.java
return (String) headers.get(new Header(header));
return (String) super.get(new Header(header));
public String getValue(String header) { return (String) headers.get(new Header(header)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Headers.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/http/Headers.java
Set keys = headers.keySet();
Set keys = super.keySet();
public Set keySet() { Set keys = headers.keySet(); Set ret = new LinkedHashSet(); for (Iterator i = keys.iterator(); i.hasNext(); ) { ret.add(((Header) i.next()).name); } return ret; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Headers.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/http/Headers.java
StringBuffer value = new StringBuffer();
StringBuilder value = new StringBuilder();
public void parse(InputStream in) throws IOException { LineInputStream lin = (in instanceof LineInputStream) ? (LineInputStream) in : new LineInputStream(in); String name = null; StringBuffer value = new StringBuffer(); while (true) { String line = lin.readLine(); if (line ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Headers.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/http/Headers.java
return headers.put(new Header((String) key), value);
return super.put(new Header((String) key), value);
public Object put(Object key, Object value) { return headers.put(new Header((String) key), value); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Headers.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/http/Headers.java
headers.put(new Header(key), value);
put(key, value);
public void putAll(Map t) { for (Iterator i = t.keySet().iterator(); i.hasNext(); ) { String key = (String) i.next(); String value = (String) t.get(key); headers.put(new Header(key), value); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Headers.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/http/Headers.java
return headers.remove(new Header((String) key));
return super.remove(new Header((String) key));
public Object remove(Object key) { return headers.remove(new Header((String) key)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Headers.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/http/Headers.java
oldViewport.addChangeListener(viewportChangeListener);
newViewport.addChangeListener(viewportChangeListener); syncScrollPaneWithViewport();
protected void updateViewport(PropertyChangeEvent ev) { JViewport oldViewport = (JViewport) ev.getOldValue(); oldViewport.removeChangeListener(viewportChangeListener); JViewport newViewport = (JViewport) ev.getNewValue(); oldViewport.addChangeListener(viewportChangeListener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/BasicScrollPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollPaneUI.java
public X500DistinguishedName(byte[] encoded) throws IOException
public X500DistinguishedName()
public X500DistinguishedName(byte[] encoded) throws IOException { this(); parseDer(new DERReader(encoded)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/X500DistinguishedName.java/buggy/core/src/classpath/gnu/gnu/java/security/x509/X500DistinguishedName.java
this(); parseDer(new DERReader(encoded));
components = new LinkedList(); currentRdn = new LinkedHashMap(); components.add(currentRdn);
public X500DistinguishedName(byte[] encoded) throws IOException { this(); parseDer(new DERReader(encoded)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/X500DistinguishedName.java/buggy/core/src/classpath/gnu/gnu/java/security/x509/X500DistinguishedName.java
UShortSeqHolder h = new UShortSeqHolder(); h._read(input); return h.value;
short[] value = new short[ input.read_long() ]; input.read_ushort_array(value, 0, value.length); return value;
public static short[] read(InputStream input) { UShortSeqHolder h = new UShortSeqHolder(); h._read(input); return h.value; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/UShortSeqHelper.java/clean/core/src/classpath/org/org/omg/CORBA/UShortSeqHelper.java
UShortSeqHolder h = new UShortSeqHolder(value); h._write(output);
output.write_long(value.length); output.write_ushort_array(value, 0, value.length);
public static void write(OutputStream output, short[] value) { UShortSeqHolder h = new UShortSeqHolder(value); h._write(output); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/UShortSeqHelper.java/clean/core/src/classpath/org/org/omg/CORBA/UShortSeqHelper.java
layeredPane.repaint(bounds.x, bounds.y, bounds.width, bounds.height);
public void hide() { layeredPane.remove(panel); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Popup.java/buggy/core/src/classpath/javax/javax/swing/Popup.java
private void drainEvents()
void drainEvents()
private void drainEvents() { synchronized (queueLock) { if (isCoalesce()) { if (queue > 0) fireActionPerformed(); } else { while (queue > 0) { fireActionPerformed(); queue--; } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/Timer.java/clean/core/src/classpath/javax/javax/swing/Timer.java
private void queueEvent()
void queueEvent()
private void queueEvent() { synchronized (queueLock) { queue++; if (queue == 1) SwingUtilities.invokeLater(drainer); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/Timer.java/clean/core/src/classpath/javax/javax/swing/Timer.java
JComponent component = tip.getComponent(); if (component instanceof JMenuItem) { JMenuItem item = (JMenuItem) component; KeyStroke acc = item.getAccelerator(); String tipText = item.getToolTipText(); int mne = item.getMnemonic(); if (acc == null && mne > 0) acc = KeyStroke.getKeyStroke(Character.toUpperCase((char) m...
public Dimension getPreferredSize(JComponent c) { JToolTip tip = (JToolTip) c; FontMetrics fm; Toolkit g = tip.getToolkit(); text = tip.getTipText(); // accelerator JComponent component = tip.getComponent(); if (component instanceof JMenuItem) { JMenuItem item = (JMenuItem) compo...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicToolTipUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); c.setBackground(defaults.getColor("ToolTip.background")); c.setForeground(defaults.getColor("ToolTip.foreground")); c.setFont(defaults.getFont("ToolTip.font")); c.setBorder(defaults.getBorder("ToolTip.border"));
LookAndFeel.installColorsAndFont(c, "ToolTip.background", "ToolTip.foreground", "ToolTip.font"); LookAndFeel.installBorder(c, "ToolTip.border");
protected void installDefaults(JComponent c) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); c.setBackground(defaults.getColor("ToolTip.background")); c.setForeground(defaults.getColor("ToolTip.foreground")); c.setFont(defaults.getFont("ToolTip.font")); c.setBorder(defaults.getBorder("Tool...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicToolTipUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java
if (accText != null) { g.setColor(accFore); int textWidth = fm.stringWidth(text + " "); fm = t.getFontMetrics(accFont); int width = fm.stringWidth(accText); g.drawString(accText, textWidth, vr.y + ascent); }
public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); Toolkit t = tip.getToolkit(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicToolTipUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java
public int getMnemonic() { return getModel().getMnemonic(); }
public int getMnemonic() { return getModel().getMnemonic(); }
public int getMnemonic() { return getModel().getMnemonic(); }
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
if (factory == null) { try { Object o = Class.forName(defaultFactoryClass); factory = (PreferencesFactory) o; } catch (ClassNotFoundException cnfe) { throw new RuntimeException("Couldn't load default factory"
if (factory == null) { try { Class cls = Class.forName (defaultFactoryClass); factory = (PreferencesFactory) cls.newInstance(); } catch (Exception e) { throw new RuntimeException ("Couldn't load default factory"
private static PreferencesFactory getFactory() throws SecurityException { // First check for permission SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(prefsPermission); } // Get the factory if (factory == null) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/Preferences.java/buggy/core/src/classpath/java/java/util/prefs/Preferences.java
private static PreferencesFactory getFactory() throws SecurityException { // First check for permission SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(prefsPermission); } // Get the factory if (factory == null) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/Preferences.java/buggy/core/src/classpath/java/java/util/prefs/Preferences.java
private static Preferences nodeForPackage(Object o, Preferences root) {
private static Preferences nodeForPackage(Class c, Preferences root) {
private static Preferences nodeForPackage(Object o, Preferences root) { // Get the package path String className = o.getClass().getName(); String packagePath; int index = className.lastIndexOf('.'); if(index == -1) { packagePath = "<unnamed>"; } else { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/Preferences.java/buggy/core/src/classpath/java/java/util/prefs/Preferences.java
String className = o.getClass().getName();
String className = c.getName();
private static Preferences nodeForPackage(Object o, Preferences root) { // Get the package path String className = o.getClass().getName(); String packagePath; int index = className.lastIndexOf('.'); if(index == -1) { packagePath = "<unnamed>"; } else { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/Preferences.java/buggy/core/src/classpath/java/java/util/prefs/Preferences.java
public static Preferences systemNodeForPackage(Object o)
public static Preferences systemNodeForPackage(Class c)
public static Preferences systemNodeForPackage(Object o) throws SecurityException { return nodeForPackage(o, systemRoot()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/Preferences.java/buggy/core/src/classpath/java/java/util/prefs/Preferences.java
return nodeForPackage(o, systemRoot());
return nodeForPackage(c, systemRoot());
public static Preferences systemNodeForPackage(Object o) throws SecurityException { return nodeForPackage(o, systemRoot()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/Preferences.java/buggy/core/src/classpath/java/java/util/prefs/Preferences.java
public static Preferences userNodeForPackage(Object o)
public static Preferences userNodeForPackage(Class c)
public static Preferences userNodeForPackage(Object o) throws SecurityException { return nodeForPackage(o, userRoot()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/Preferences.java/buggy/core/src/classpath/java/java/util/prefs/Preferences.java
return nodeForPackage(o, userRoot());
return nodeForPackage(c, userRoot());
public static Preferences userNodeForPackage(Object o) throws SecurityException { return nodeForPackage(o, userRoot()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/Preferences.java/buggy/core/src/classpath/java/java/util/prefs/Preferences.java
public double getElemDouble(int bank, int i)
public double getElemDouble(int i)
public double getElemDouble(int bank, int i) { return getElem(bank, i); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/DataBuffer.java/buggy/core/src/classpath/java/java/awt/image/DataBuffer.java
return getElem(bank, i);
return getElem(i);
public double getElemDouble(int bank, int i) { return getElem(bank, i); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/DataBuffer.java/buggy/core/src/classpath/java/java/awt/image/DataBuffer.java
public float getElemFloat(int bank, int i)
public float getElemFloat(int i)
public float getElemFloat(int bank, int i) { return getElem(bank, i); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/DataBuffer.java/buggy/core/src/classpath/java/java/awt/image/DataBuffer.java
return getElem(bank, i);
return getElem(i);
public float getElemFloat(int bank, int i) { return getElem(bank, i); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/DataBuffer.java/buggy/core/src/classpath/java/java/awt/image/DataBuffer.java
public void setDataElements(int x, int y, Object obj, DataBuffer data)
public void setDataElements(int x, int y, int w, int h, Object obj, DataBuffer data)
public void setDataElements(int x, int y, Object obj, DataBuffer data) { int offset = pixelStride*x + scanlineStride*y; int[] totalBandDataOffsets = new int[numBands]; int[] bankOffsets = data.getOffsets(); for (int b=0; b<numBands; b++) totalBandDataOffsets[b] = bandOffsets[b]+bankOffsets[bankIndices[b...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/ComponentSampleModel.java/buggy/core/src/classpath/java/java/awt/image/ComponentSampleModel.java
int offset = pixelStride*x + scanlineStride*y; int[] totalBandDataOffsets = new int[numBands];
if (!tightPixelPacking) { super.setDataElements(x, y, w, h, obj, data); return; } int rowSize = w*numBands; int dataSize = rowSize*h; DataBuffer transferBuffer = Buffers.createBufferFromData(getTransferType(), obj, dataSize);
public void setDataElements(int x, int y, Object obj, DataBuffer data) { int offset = pixelStride*x + scanlineStride*y; int[] totalBandDataOffsets = new int[numBands]; int[] bankOffsets = data.getOffsets(); for (int b=0; b<numBands; b++) totalBandDataOffsets[b] = bandOffsets[b]+bankOffsets[bankIndices[b...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/ComponentSampleModel.java/buggy/core/src/classpath/java/java/awt/image/ComponentSampleModel.java
for (int b=0; b<numBands; b++) totalBandDataOffsets[b] = bandOffsets[b]+bankOffsets[bankIndices[b]] + offset;
public void setDataElements(int x, int y, Object obj, DataBuffer data) { int offset = pixelStride*x + scanlineStride*y; int[] totalBandDataOffsets = new int[numBands]; int[] bankOffsets = data.getOffsets(); for (int b=0; b<numBands; b++) totalBandDataOffsets[b] = bandOffsets[b]+bankOffsets[bankIndices[b...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/ComponentSampleModel.java/buggy/core/src/classpath/java/java/awt/image/ComponentSampleModel.java
switch (getTransferType())
int outOffset = pixelStride*x + scanlineStride*y + bankOffsets[0]; if (scanlineStride == rowSize)
public void setDataElements(int x, int y, Object obj, DataBuffer data) { int offset = pixelStride*x + scanlineStride*y; int[] totalBandDataOffsets = new int[numBands]; int[] bankOffsets = data.getOffsets(); for (int b=0; b<numBands; b++) totalBandDataOffsets[b] = bandOffsets[b]+bankOffsets[bankIndices[b...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/ComponentSampleModel.java/buggy/core/src/classpath/java/java/awt/image/ComponentSampleModel.java
case DataBuffer.TYPE_BYTE: { DataBufferByte out = (DataBufferByte) data; byte[] in = (byte[]) obj;
rowSize *= h; h = 1; }
public void setDataElements(int x, int y, Object obj, DataBuffer data) { int offset = pixelStride*x + scanlineStride*y; int[] totalBandDataOffsets = new int[numBands]; int[] bankOffsets = data.getOffsets(); for (int b=0; b<numBands; b++) totalBandDataOffsets[b] = bandOffsets[b]+bankOffsets[bankIndices[b...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/ComponentSampleModel.java/buggy/core/src/classpath/java/java/awt/image/ComponentSampleModel.java
for (int b=0; b<numBands; b++) out.getData(bankIndices[b])[totalBandDataOffsets[b]] = in[b]; return; } case DataBuffer.TYPE_USHORT: { DataBufferUShort out = (DataBufferUShort) data; short[] in = (short[]) obj; for (int b=0; b<numBands; b++) out.getData(bankIndices[b])[totalBandDataOffsets[b]] = in[b]; return; } case...
int inOffset = 0; Object outArray = Buffers.getData(data); for (int yd = 0; yd<h; yd++) { System.arraycopy(obj, inOffset, outArray, outOffset, rowSize); outOffset += scanlineStride; inOffset += rowSize;
public void setDataElements(int x, int y, Object obj, DataBuffer data) { int offset = pixelStride*x + scanlineStride*y; int[] totalBandDataOffsets = new int[numBands]; int[] bankOffsets = data.getOffsets(); for (int b=0; b<numBands; b++) totalBandDataOffsets[b] = bandOffsets[b]+bankOffsets[bankIndices[b...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/ComponentSampleModel.java/buggy/core/src/classpath/java/java/awt/image/ComponentSampleModel.java
public float[] getData(int bank)
public float[] getData()
public float[] getData(int bank) { return bankData[bank]; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/DataBufferFloat.java/buggy/core/src/classpath/java/java/awt/image/DataBufferFloat.java
return bankData[bank];
return data;
public float[] getData(int bank) { return bankData[bank]; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/DataBufferFloat.java/buggy/core/src/classpath/java/java/awt/image/DataBufferFloat.java