rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
Dimension getMinimumOptionPaneSize() { return new Dimension(300,100); }
public Dimension getMinimumOptionPaneSize() { return minimumSize; }
Dimension getMinimumOptionPaneSize() { return new Dimension(300,100); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicOptionPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicOptionPaneUI.java
{ if (c == null) return getMinimumOptionPaneSize(); if (c != pane) return null; LayoutManager l = c.getLayout(); if (l == null) return getMinimumOptionPaneSize(); Dimension d1 = l.preferredLayoutSize(c);
{ Dimension d = optionPane.getLayout().preferredLayoutSize(optionPane);
public Dimension getPreferredSize(JComponent c) { if (c == null) return getMinimumOptionPaneSize(); if (c != pane) return null; LayoutManager l = c.getLayout(); if (l == null) return getMinimumOptionPaneSize(); Dimension d1 = l.preferredLayoutSize(c); Dimension d2 = getMinimumOptionPaneSize(); d1.w...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicOptionPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicOptionPaneUI.java
d1.width = Math.max(d1.width, d2.width); d1.height = Math.max(d1.height, d2.height); return d2; }
int w = Math.max(d.width, d2.width); int h = Math.max(d.height, d2.height); return new Dimension(w, h); }
public Dimension getPreferredSize(JComponent c) { if (c == null) return getMinimumOptionPaneSize(); if (c != pane) return null; LayoutManager l = c.getLayout(); if (l == null) return getMinimumOptionPaneSize(); Dimension d1 = l.preferredLayoutSize(c); Dimension d2 = getMinimumOptionPaneSize(); d1.w...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicOptionPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicOptionPaneUI.java
{ super.installUI(c); pane = (JOptionPane)c;
{ if (c instanceof JOptionPane) { optionPane = (JOptionPane) c;
public void installUI(JComponent c) { super.installUI(c); pane = (JOptionPane)c; System.out.println(" -------------: " + pane); JLabel message = null; JButton ok_button = new JButton("Ok"); ok_button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent a) { System.o...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicOptionPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicOptionPaneUI.java
System.out.println(" -------------: " + pane); JLabel message = null; JButton ok_button = new JButton("Ok"); ok_button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent a) { System.out.println("ACTION ---> " + a); if (pane.dialog.isModal()) { System.out.println("modal dialog !!...
installDefaults(); installComponents(); installListeners(); installKeyboardActions(); } }
public void installUI(JComponent c) { super.installUI(c); pane = (JOptionPane)c; System.out.println(" -------------: " + pane); JLabel message = null; JButton ok_button = new JButton("Ok"); ok_button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent a) { System.o...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicOptionPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicOptionPaneUI.java
throw new Error ("Not implemented");
if (inputComponent != null) { inputComponent.requestFocus(); return; } if (initialFocusComponent != null) initialFocusComponent.requestFocus();
public void selectInitialValue(JOptionPane op) { throw new Error ("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicOptionPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicOptionPaneUI.java
newChild.setParent(parent);
public void insertNodeInto(MutableTreeNode newChild, MutableTreeNode parent, int index) { parent.insert(newChild, index); int[] childIndices = new int[1]; childIndices[0] = index; nodesWereInserted(parent, childIndices); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/DefaultTreeModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeModel.java
Point screenLoc = getLocationOnScreen(); Dimension size = getSize(); JPopupMenu popup = getPopupMenu(); Dimension popupSize = popup.getSize(); if (popupSize.width == 0 || popupSize.height == 0) popupSize = popup.getPreferredSize(); Toolkit tk = Toolkit.getDefaultToolkit(); Rectangle screenBounds = new Rectangle(tk...
protected Point getPopupMenuOrigin() { // if menu in the menu bar if (isTopLevelMenu()) return new Point(0, this.getHeight()); // if submenu return new Point(this.getWidth(), 0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9039090be0dcd38b643f1b4daad3123abc83e5f2/JMenu.java/clean/core/src/classpath/javax/javax/swing/JMenu.java
return new Point(0, this.getHeight());
{ int xOffset = UIManager.getInt("Menu.menuPopupOffsetX"); int yOffset = UIManager.getInt("Menu.menuPopupOffsetY"); if (getComponentOrientation().isLeftToRight()) { point.x = xOffset; if (screenLoc.x + point.x + popupSize.width > screenBounds.width + screenBounds.width && screenBounds.width - size.width < 2 * (scre...
protected Point getPopupMenuOrigin() { // if menu in the menu bar if (isTopLevelMenu()) return new Point(0, this.getHeight()); // if submenu return new Point(this.getWidth(), 0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9039090be0dcd38b643f1b4daad3123abc83e5f2/JMenu.java/clean/core/src/classpath/javax/javax/swing/JMenu.java
return new Point(this.getWidth(), 0);
return point;
protected Point getPopupMenuOrigin() { // if menu in the menu bar if (isTopLevelMenu()) return new Point(0, this.getHeight()); // if submenu return new Point(this.getWidth(), 0); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9039090be0dcd38b643f1b4daad3123abc83e5f2/JMenu.java/clean/core/src/classpath/javax/javax/swing/JMenu.java
public boolean isTearOff() { // NOT YET IMPLEMENTED return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9039090be0dcd38b643f1b4daad3123abc83e5f2/JMenu.java/clean/core/src/classpath/javax/javax/swing/JMenu.java
public void menuSelectionChanged(boolean changed) { // if this menu selection is true, then activate this menu and // display popup associated with this menu setSelectedHelper(changed, isEnabled(), true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9039090be0dcd38b643f1b4daad3123abc83e5f2/JMenu.java/clean/core/src/classpath/javax/javax/swing/JMenu.java
if (getModel().isEnabled()) popupMenu.setVisible(popup);
if (popup != isPopupMenuVisible() && (isEnabled() || ! popup)) { if (popup && isShowing()) { Point loc = menuLocation == null ? getPopupMenuOrigin() : menuLocation; getPopupMenu().show(this, loc.x, loc.y);
public void setPopupMenuVisible(boolean popup) { if (getModel().isEnabled()) popupMenu.setVisible(popup); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9039090be0dcd38b643f1b4daad3123abc83e5f2/JMenu.java/clean/core/src/classpath/javax/javax/swing/JMenu.java
else getPopupMenu().setVisible(false); } }
public void setPopupMenuVisible(boolean popup) { if (getModel().isEnabled()) popupMenu.setVisible(popup); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9039090be0dcd38b643f1b4daad3123abc83e5f2/JMenu.java/clean/core/src/classpath/javax/javax/swing/JMenu.java
setSelectedHelper(selected, true, false);
setSelectedHelper(selected, true, false);
public void setSelected(boolean selected) { setSelectedHelper(selected, true, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9039090be0dcd38b643f1b4daad3123abc83e5f2/JMenu.java/clean/core/src/classpath/javax/javax/swing/JMenu.java
private void setSelectedHelper(boolean selected, boolean menuEnabled, boolean showMenu) { // If menu is selected and enabled, activates the menu and // displays associated popup. if (selected && menuEnabled) { super.setArmed(true); super.setSelected(true); // FIXME: The popup menu should be shown ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9039090be0dcd38b643f1b4daad3123abc83e5f2/JMenu.java/clean/core/src/classpath/javax/javax/swing/JMenu.java
private void setSelectedHelper(boolean selected, boolean menuEnabled, boolean showMenu) { // If menu is selected and enabled, activates the menu and // displays associated popup. if (selected && menuEnabled) { super.setArmed(true); super.setSelected(true); // FIXME: The popup menu should be shown ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9039090be0dcd38b643f1b4daad3123abc83e5f2/JMenu.java/clean/core/src/classpath/javax/javax/swing/JMenu.java
popupMenu.setVisible(false);
try { if (popupMenu != null) { popupMenu.setVisible(false); } } catch (Exception e) { e.printStackTrace(); }
private void setSelectedHelper(boolean selected, boolean menuEnabled, boolean showMenu) { // If menu is selected and enabled, activates the menu and // displays associated popup. if (selected && menuEnabled) { super.setArmed(true); super.setSelected(true); // FIXME: The popup menu should be shown ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9039090be0dcd38b643f1b4daad3123abc83e5f2/JMenu.java/clean/core/src/classpath/javax/javax/swing/JMenu.java
throws IOException, NotImplementedException
throws IOException
public void write(byte[] data) throws IOException, NotImplementedException { write(data, 0, data.length); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/ImageOutputStreamImpl.java/clean/core/src/classpath/javax/javax/imageio/stream/ImageOutputStreamImpl.java
throws IOException
throws IOException, NotImplementedException
public void writeBits(long bits, int numBits) throws IOException { // FIXME: Implement me. throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/ImageOutputStreamImpl.java/clean/core/src/classpath/javax/javax/imageio/stream/ImageOutputStreamImpl.java
write(data.getBytes());
int len = data.length(); for (int i = 0; i < len; ++i) writeByte(data.charAt(i));
public void writeBytes(String data) throws IOException { write(data.getBytes()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/ImageOutputStreamImpl.java/clean/core/src/classpath/javax/javax/imageio/stream/ImageOutputStreamImpl.java
writeShort((short) value);
writeShort(value);
public void writeChar(int value) throws IOException { writeShort((short) value); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/ImageOutputStreamImpl.java/clean/core/src/classpath/javax/javax/imageio/stream/ImageOutputStreamImpl.java
writeLong((long) value);
writeLong(Double.doubleToLongBits(value));
public void writeDouble(double value) throws IOException { writeLong((long) value); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/ImageOutputStreamImpl.java/clean/core/src/classpath/javax/javax/imageio/stream/ImageOutputStreamImpl.java
writeInt((int) value);
writeInt(Float.floatToIntBits(value));
public void writeFloat(float value) throws IOException { writeInt((int) value); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/ImageOutputStreamImpl.java/clean/core/src/classpath/javax/javax/imageio/stream/ImageOutputStreamImpl.java
public void writeUTF(String data) throws IOException, NotImplementedException
public void writeUTF(String value) throws IOException
public void writeUTF(String data) throws IOException, NotImplementedException { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/ImageOutputStreamImpl.java/clean/core/src/classpath/javax/javax/imageio/stream/ImageOutputStreamImpl.java
throw new Error("not implemented");
int len = value.length(); int sum = 0; for (int i = 0; i < len && sum <= 65535; ++i) { char c = value.charAt(i); if (c >= '\u0001' && c <= '\u007f') sum += 1; else if (c == '\u0000' || (c >= '\u0080' && c <= '\u07ff')) sum += 2; else sum += 3; } if (sum > 65535) throw new UTFDataFormatException (); int pos = 0; byt...
public void writeUTF(String data) throws IOException, NotImplementedException { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/ImageOutputStreamImpl.java/clean/core/src/classpath/javax/javax/imageio/stream/ImageOutputStreamImpl.java
return 0;
ListSelectionModel lsm = this.selectionModel; int lo = lsm.getMinSelectionIndex(); int hi = lsm.getMaxSelectionIndex(); int sum = 0; if (lo != -1 && hi != -1) { switch (lsm.getSelectionMode()) { case ListSelectionModel.SINGLE_SELECTION: sum = 1; break; case ListSelectionModel.SINGLE_INTERVAL_SELECTION: sum = hi ...
public int getSelectedColumnCount() { return 0; // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/DefaultTableColumnModel.java/buggy/core/src/classpath/javax/javax/swing/table/DefaultTableColumnModel.java
return null;
ListSelectionModel lsm = this.selectionModel; int sz = getSelectedColumnCount(); int [] ret = new int[sz]; int lo = lsm.getMinSelectionIndex(); int hi = lsm.getMaxSelectionIndex(); int j = 0; java.util.ArrayList ls = new java.util.ArrayList(); if (lo != -1 && hi != -1) { switch (lsm.getSelectionMode()) { case Lis...
public int[] getSelectedColumns() { return null; // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3fecc4797b433a10203c51309b9d8626f7783895/DefaultTableColumnModel.java/buggy/core/src/classpath/javax/javax/swing/table/DefaultTableColumnModel.java
final Collection devs = api.getNetDevices(); final Vector intfs = new Vector(); for (Iterator i = devs.iterator(); i.hasNext(); ) { final VMNetDevice dev = (VMNetDevice)i.next(); final List addrs = api.getInetAddresses(dev);
final Collection<VMNetDevice> devs = api.getNetDevices(); final Vector<NetworkInterface> intfs = new Vector<NetworkInterface>(); for (VMNetDevice dev : devs) { final List<InetAddress> addrs = api.getInetAddresses(dev);
public static Vector getInterfaces() throws SocketException { final VMNetAPI api = VMNetUtils.getAPI(); final Collection devs = api.getNetDevices(); final Vector intfs = new Vector(); for (Iterator i = devs.iterator(); i.hasNext(); ) { final VMNetDevice dev = (VMNetDevice)i.ne...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff85486c4bc88d3b82d27fe4f951dc7bafeafa6f/VMNetworkInterface.java/buggy/core/src/classpath/vm/java/net/VMNetworkInterface.java
if(getFileSystem().isReadOnly()) { throw new ReadOnlyFileSystemException("addDirectory in readonly filesystem"); }
public FSEntry addDirectory(String name) throws IOException { name = name.trim(); String shortName = generateShortNameFor(name); FatDirEntry realEntry = new FatDirEntry(this, splitName(shortName), splitExt(shortName)); final long parentCluster; if (file == null) { parentCluster = 0; } else { parentCluster = ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9414f60c71a9fbba291a438dae9ea46ca709fbb/FatLfnDirectory.java/clean/fs/src/fs/org/jnode/fs/fat/FatLfnDirectory.java
if(getFileSystem().isReadOnly()) { throw new ReadOnlyFileSystemException("addFile in readonly filesystem"); }
public FSEntry addFile(String name) throws IOException { name = name.trim(); String shortName = generateShortNameFor(name); FatDirEntry realEntry = new FatDirEntry(this, splitName(shortName), splitExt(shortName)); LfnEntry entry = new LfnEntry(this, realEntry, name); shortNameIndex.put(shortName, entry); longFil...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9414f60c71a9fbba291a438dae9ea46ca709fbb/FatLfnDirectory.java/clean/fs/src/fs/org/jnode/fs/fat/FatLfnDirectory.java
if (name != null) this.name = name; else this.name = peer.getName(this);
public Font (String name, int style, int size) { HashMap attrs = new HashMap(); ClasspathFontPeer.copyStyleToAttrs (style, attrs); ClasspathFontPeer.copySizeToAttrs (size, attrs); this.peer = getPeerFromToolkit (name, attrs); this.size = size; this.pointSize = (float) size; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/Font.java/clean/core/src/classpath/java/java/awt/Font.java
return getDeclaringClass().getName().hashCode() ^ getName().hashCode();
final Class<?> declClass = getDeclaringClass(); return declClass.getName().hashCode() ^ getName().hashCode();
public int hashCode() { return getDeclaringClass().getName().hashCode() ^ getName().hashCode(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff85486c4bc88d3b82d27fe4f951dc7bafeafa6f/Field.java/buggy/core/src/classpath/vm/java/lang/reflect/Field.java
sb.append(getType().getName()).append(' '); sb.append(getDeclaringClass().getName()).append('.');
final Class<?> type = getType(); final Class<?> declClass = getDeclaringClass(); sb.append(type.getName()).append(' '); sb.append(declClass.getName()).append('.');
public String toString() { // 64 is a reasonable buffer initial size for field StringBuffer sb = new StringBuffer(64); Modifier.toString(getModifiers(), sb).append(' '); sb.append(getType().getName()).append(' '); sb.append(getDeclaringClass().getName()).append('.'); sb.append(getName()); return sb.toString(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff85486c4bc88d3b82d27fe4f951dc7bafeafa6f/Field.java/buggy/core/src/classpath/vm/java/lang/reflect/Field.java
return ((Double) object).doubleValue() != 0.0;
Double value = (Double) object; if (value.isNaN()) return false; return value.doubleValue() != 0.0;
public static boolean _boolean(Node context, Object object) { if (object instanceof Boolean) { return ((Boolean) object).booleanValue(); } if (object instanceof Double) { return ((Double) object).doubleValue() != 0.0; } if (object instanceof String) { return ((S...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Expr.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Expr.java
Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet); return node.getLocalName();
if (nodeSet == null || nodeSet.isEmpty()) return ""; Node node = firstNode(nodeSet); String ret = node.getLocalName(); return (ret == null) ? "" : ret;
public static String _local_name(Node context, Collection nodeSet) { Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet); return node.getLocalName(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Expr.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Expr.java
Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet);
if (nodeSet == null || nodeSet.isEmpty()) return ""; Node node = firstNode(nodeSet); String ret = null;
public static String _name(Node context, Collection nodeSet) { Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet); switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: case Node.ELEMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: return node....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Expr.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Expr.java
return node.getNodeName(); default: return "";
ret = node.getNodeName();
public static String _name(Node context, Collection nodeSet) { Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet); switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: case Node.ELEMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: return node....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Expr.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Expr.java
return (ret == null) ? "" : ret;
public static String _name(Node context, Collection nodeSet) { Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet); switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: case Node.ELEMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: return node....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Expr.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Expr.java
Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet); return node.getNamespaceURI();
if (nodeSet == null || nodeSet.isEmpty()) return ""; Node node = firstNode(nodeSet); String ret = node.getNamespaceURI(); return (ret == null) ? "" : ret;
public static String _namespace_uri(Node context, Collection nodeSet) { Node node = (nodeSet == null || nodeSet.size() == 0) ? context : firstNode(nodeSet); return node.getNamespaceURI(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Expr.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Expr.java
super.refresh();
public void refresh(){ super.refresh(); try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); PluginDescriptorModel pdm = (PluginDescriptorModel) mgr.getRegistry().getPluginDescriptor(pluginId); if(pdm != null){ isvalid = false; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f96f4d3388652de01d8a71cb8104234cfb501dec/JIFSFfragmentJar.java/clean/fs/src/fs/org/jnode/fs/jifs/files/JIFSFfragmentJar.java
buffer = pdm.getJarFile().getBuffer();
buffer = fdm.getJarFile().getBuffer();
public void refresh(){ super.refresh(); try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); PluginDescriptorModel pdm = (PluginDescriptorModel) mgr.getRegistry().getPluginDescriptor(pluginId); if(pdm != null){ isvalid = false; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f96f4d3388652de01d8a71cb8104234cfb501dec/JIFSFfragmentJar.java/clean/fs/src/fs/org/jnode/fs/jifs/files/JIFSFfragmentJar.java
public JIFSFpluginJar(String id, FSDirectory parent) { super(id + ".jar", parent); this.id = id; refresh();
public JIFSFpluginJar() { return;
public JIFSFpluginJar(String id, FSDirectory parent) { super(id + ".jar", parent); this.id = id; refresh(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f96f4d3388652de01d8a71cb8104234cfb501dec/JIFSFpluginJar.java/buggy/fs/src/fs/org/jnode/fs/jifs/files/JIFSFpluginJar.java
super.refresh();
public void refresh(){ super.refresh(); try{ final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME); PluginDescriptorModel pdm = (PluginDescriptorModel) mgr.getRegistry().getPluginDescriptor(id); if(pdm != null){ buffer = pdm.getJarFile().get...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f96f4d3388652de01d8a71cb8104234cfb501dec/JIFSFpluginJar.java/buggy/fs/src/fs/org/jnode/fs/jifs/files/JIFSFpluginJar.java
this(SwingConstants.HORIZONTAL, 0, 10, 0, 100);
this(SwingConstants.VERTICAL, 0, 10, 0, 100);
public JScrollBar() { this(SwingConstants.HORIZONTAL, 0, 10, 0, 100); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JScrollBar.java/clean/core/src/classpath/javax/javax/swing/JScrollBar.java
adjustmentListenerList.add(AdjustmentListener.class, listener);
listenerList.add(AdjustmentListener.class, listener);
public void addAdjustmentListener(AdjustmentListener listener) { adjustmentListenerList.add(AdjustmentListener.class, listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JScrollBar.java/clean/core/src/classpath/javax/javax/swing/JScrollBar.java
changeListenerList.add(ChangeListener.class, listener);
listenerList.add(ChangeListener.class, listener);
public void addChangeListener(ChangeListener listener) { changeListenerList.add(ChangeListener.class, listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JScrollBar.java/clean/core/src/classpath/javax/javax/swing/JScrollBar.java
Object[] adjustmentListeners = adjustmentListenerList.getListenerList();
Object[] adjustmentListeners = listenerList.getListenerList();
protected void fireAdjustmentValueChanged(int id, int type, int value) { Object[] adjustmentListeners = adjustmentListenerList.getListenerList(); AdjustmentEvent adjustmentEvent = new AdjustmentEvent(this, AdjustmentEvent.ADJUSTMENT_VALUE_CHANGED, AdjustmentE...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JScrollBar.java/clean/core/src/classpath/javax/javax/swing/JScrollBar.java
Object[] changeListeners = changeListenerList.getListenerList();
Object[] changeListeners = listenerList.getListenerList();
private void fireStateChanged() { Object[] changeListeners = changeListenerList.getListenerList(); if (changeEvent == null) changeEvent = new ChangeEvent(this); for (int i = changeListeners.length - 2; i >= 0; i -= 2) { if (changeListeners[i] == ChangeListener.class) ((ChangeListener) changeList...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JScrollBar.java/clean/core/src/classpath/javax/javax/swing/JScrollBar.java
return (AdjustmentListener[]) adjustmentListenerList.getListenerList();
return (AdjustmentListener[]) listenerList.getListeners(AdjustmentListener.class);
public AdjustmentListener[] getAdjustmentListeners() { return (AdjustmentListener[]) adjustmentListenerList.getListenerList(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JScrollBar.java/clean/core/src/classpath/javax/javax/swing/JScrollBar.java
return (ChangeListener[]) changeListenerList.getListenerList();
return (ChangeListener[]) listenerList.getListeners(ChangeListener.class);
public ChangeListener[] getChangeListeners() { return (ChangeListener[]) changeListenerList.getListenerList(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JScrollBar.java/clean/core/src/classpath/javax/javax/swing/JScrollBar.java
adjustmentListenerList.remove(AdjustmentListener.class, listener);
listenerList.remove(AdjustmentListener.class, listener);
public void removeAdjustmentListener(AdjustmentListener listener) { adjustmentListenerList.remove(AdjustmentListener.class, listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JScrollBar.java/clean/core/src/classpath/javax/javax/swing/JScrollBar.java
changeListenerList.remove(ChangeListener.class, listener);
listenerList.remove(ChangeListener.class, listener);
public void removeChangeListener(ChangeListener listener) { changeListenerList.remove(ChangeListener.class, listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JScrollBar.java/clean/core/src/classpath/javax/javax/swing/JScrollBar.java
public final void debugStackTrace(VmThread thread) throws UninterruptiblePragma { Address f = thread.getStackFrame();
public final void debugStackTrace() { Address f = Unsafe.getCurrentFrame();
public final void debugStackTrace(VmThread thread) throws UninterruptiblePragma { Address f = thread.getStackFrame(); Unsafe.debug("Debug stacktrace: "); boolean first = true; int max = 20; while (isValid(f) && (max > 0)) { if (first) { first = false; } else { Unsafe.debug(", "); } final VmMethod me...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5fd2b1e0180cda24cafbd8288788f03fd5464c0f/VmStackReader.java/buggy/core/src/core/org/jnode/vm/VmStackReader.java
public Object getAttribute(AttributedCharacterIterator.Attribute attrib)
private Object getAttribute(AttributedCharacterIterator.Attribute key, int pos)
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.nex...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/AttributedStringIterator.java/buggy/core/src/classpath/java/java/text/AttributedStringIterator.java
return(null); for (int i = 0; i < attribs.length; i++)
return null; for (int i = attribs.length - 1; i >= 0; i--)
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.nex...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/AttributedStringIterator.java/buggy/core/src/classpath/java/java/text/AttributedStringIterator.java
Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext())
if (pos >= attribs[i].begin_index && pos < attribs[i].end_index)
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.nex...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/AttributedStringIterator.java/buggy/core/src/classpath/java/java/text/AttributedStringIterator.java
Object obj = iter.next(); if (obj.equals(attrib)) if ((ci.getIndex() >= attribs[i].begin_index) && (ci.getIndex() < attribs[i].end_index)) return(attribs[i].attribs.get(obj));
Set keys = attribs[i].attribs.keySet(); if (keys.contains(key)) { return attribs[i].attribs.get(key); }
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.nex...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/AttributedStringIterator.java/buggy/core/src/classpath/java/java/text/AttributedStringIterator.java
return(null);
return null;
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attribs == null) return(null); for (int i = 0; i < attribs.length; i++) { Set key_set = attribs[i].attribs.keySet(); Iterator iter = key_set.iterator(); while (iter.hasNext()) { Object obj = iter.nex...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/AttributedStringIterator.java/buggy/core/src/classpath/java/java/text/AttributedStringIterator.java
if (labelText.length() <= underlinedChar)
if (labelText != null && labelText.length() <= underlinedChar)
public void setText(String text) { if (text != labelText) { String oldText = labelText; labelText = text; firePropertyChange(TEXT_CHANGED_PROPERTY, oldText, labelText); if (labelText.length() <= underlinedChar) setDisplayedMnemonicIndex(labelText.length() - 1); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JLabel.java/clean/core/src/classpath/javax/javax/swing/JLabel.java
throw new DatatypeConfigurationException (e);
throw new DatatypeConfigurationException(e);
public static DatatypeFactory newInstance() throws DatatypeConfigurationException { try { Class t = Class.forName(DATATYPEFACTORY_IMPLEMENTATION_CLASS); return (DatatypeFactory) t.newInstance(); } catch (Exception e) { throw new DatatypeConfigurationException (e); } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bfc868d8eca62bee7fa0aac5a51ae6c3bbaa7e55/DatatypeFactory.java/buggy/core/src/classpath/javax/javax/xml/datatype/DatatypeFactory.java
protected Item cloneConstant() {
protected WordItem cloneConstant() {
protected Item cloneConstant() { return createConst(getValue()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/FloatItem.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/FloatItem.java
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); ((AbstractButton) c).setIcon(defaults.getIcon("CheckBox.icon")); ((AbstractButton) c).setSelectedIcon(defaults.getIcon("CheckBox.checkIcon"));
public void installUI(final JComponent c) { super.installUI(c); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/BasicCheckBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicCheckBoxUI.java
{ }
{ super(bevelType); }
public BevelBorderUIResource(int bevelType) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderUIResource.java/clean/core/src/classpath/javax/javax/swing/plaf/BorderUIResource.java
Border insideBorder) { }
Border insideBorder) { super(outsideBorder, insideBorder); }
public CompoundBorderUIResource(Border outsideBorder, Border insideBorder) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderUIResource.java/clean/core/src/classpath/javax/javax/swing/plaf/BorderUIResource.java
{ this(new Insets(top,left,bottom,right)); }
{ super(top, left, bottom, right); }
public EmptyBorderUIResource(int top, int left, int bottom, int right) { this(new Insets(top,left,bottom,right)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderUIResource.java/clean/core/src/classpath/javax/javax/swing/plaf/BorderUIResource.java
public MatteBorderUIResource(int top, int left, int bottom, int right, Color color) { }
public MatteBorderUIResource(int top, int left, int bottom, int right, Color color) { super(top, left, bottom, right, color); }
public MatteBorderUIResource(int top, int left, int bottom, int right, Color color) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderUIResource.java/clean/core/src/classpath/javax/javax/swing/plaf/BorderUIResource.java
TitledBorderUIResource(String title) { }
public TitledBorderUIResource(String title) { super(title); }
TitledBorderUIResource(String title) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderUIResource.java/clean/core/src/classpath/javax/javax/swing/plaf/BorderUIResource.java
public static Border getBlackLineBorderUIResource() { return null; }
public static Border getBlackLineBorderUIResource() { /* Swing is not designed to be thread-safe, so there is no * need to synchronize the access to the global variable. */ if (blackLineBorderUIResource == null) blackLineBorderUIResource = new LineBorderUIResource(Color.black); return blackLineBorderUIResource; }
public static Border getBlackLineBorderUIResource() { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderUIResource.java/clean/core/src/classpath/javax/javax/swing/plaf/BorderUIResource.java
public Insets getBorderInsets(Component c) { return null; }
public Insets getBorderInsets(Component c) { return delegate.getBorderInsets(c); }
public Insets getBorderInsets(Component c) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderUIResource.java/clean/core/src/classpath/javax/javax/swing/plaf/BorderUIResource.java
public static Border getLoweredBevelBorderUIResource() { return null; }
public static Border getLoweredBevelBorderUIResource() { /* Swing is not designed to be thread-safe, so there is no * need to synchronize the access to the global variable. */ if (loweredBevelBorderUIResource == null) loweredBevelBorderUIResource = new BevelBorderUIResource( BevelBorder.LOWERED); return loweredBevelBor...
public static Border getLoweredBevelBorderUIResource() { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderUIResource.java/clean/core/src/classpath/javax/javax/swing/plaf/BorderUIResource.java
public static Border getRaisedBevelBorderUIResource() { return null; }
public static Border getRaisedBevelBorderUIResource() { /* Swing is not designed to be thread-safe, so there is no * need to synchronize the access to the global variable. */ if (raisedBevelBorderUIResource == null) raisedBevelBorderUIResource = new BevelBorderUIResource( BevelBorder.RAISED); return raisedBevelBorderUI...
public static Border getRaisedBevelBorderUIResource() { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderUIResource.java/clean/core/src/classpath/javax/javax/swing/plaf/BorderUIResource.java
public boolean isBorderOpaque() { return false; }
public boolean isBorderOpaque() { return delegate.isBorderOpaque(); }
public boolean isBorderOpaque() { return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderUIResource.java/clean/core/src/classpath/javax/javax/swing/plaf/BorderUIResource.java
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { }
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { delegate.paintBorder(c, g, x, y, width, height); }
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderUIResource.java/clean/core/src/classpath/javax/javax/swing/plaf/BorderUIResource.java
return ("label=" + label + ",state=" + state + ",group=" + group + "," + super.paramString());
return ("label=" + label + ",state=" + state + "," + super.paramString());
paramString(){ return ("label=" + label + ",state=" + state + ",group=" + group + "," + super.paramString());}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/cfd5d26ab69af1fe494534bdf03f35be22c13bd8/Checkbox.java/buggy/core/src/classpath/java/java/awt/Checkbox.java
return parent == null ? SystemColor.window : parent.getBackground();
return parent == null ? null : parent.getBackground();
public Color getBackground() { if (background != null) return background; return parent == null ? SystemColor.window : parent.getBackground(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/82b0980887a33e07224a75af67c57ab11ebe0991/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
if (font != null) return font;
Font f = font; if (f != null) return f;
public Font getFont() { if (font != null) return font; if (parent != null) return parent.getFont (); else return new Font ("Dialog", Font.PLAIN, 12); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/82b0980887a33e07224a75af67c57ab11ebe0991/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
if (parent != null) return parent.getFont ();
Component p = parent; if (p != null) return p.getFont();
public Font getFont() { if (font != null) return font; if (parent != null) return parent.getFont (); else return new Font ("Dialog", Font.PLAIN, 12); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/82b0980887a33e07224a75af67c57ab11ebe0991/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
return new Font ("Dialog", Font.PLAIN, 12);
return new Font("Dialog", Font.PLAIN, 12);
public Font getFont() { if (font != null) return font; if (parent != null) return parent.getFont (); else return new Font ("Dialog", Font.PLAIN, 12); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/82b0980887a33e07224a75af67c57ab11ebe0991/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
if (parent == null) param.append(",parent==null"); else param.append(",parent==").append(parent.getName());
protected String paramString() { StringBuffer param = new StringBuffer(); String name = getName(); if (name != null) param.append(name).append(","); param.append(x).append(",").append(y).append(",").append(width) .append("x").append(height); if (! isValid()) param.append(",invalid"); if (! isVis...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/82b0980887a33e07224a75af67c57ab11ebe0991/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
if (background != null && c != null) if (background.equals(c))
if ((c != null) && c.equals(background))
public void setBackground(Color c) { // return if the background is already set to that color. if (background != null && c != null) if (background.equals(c)) return; // If c is null, inherit from closest ancestor whose bg is set. if (c == null && parent != null) c = parent.getBackground(); fir...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/82b0980887a33e07224a75af67c57ab11ebe0991/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
firePropertyChange("background", background, c);
public void setBackground(Color c) { // return if the background is already set to that color. if (background != null && c != null) if (background.equals(c)) return; // If c is null, inherit from closest ancestor whose bg is set. if (c == null && parent != null) c = parent.getBackground(); fir...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/82b0980887a33e07224a75af67c57ab11ebe0991/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
firePropertyChange("background", previous, c);
public void setBackground(Color c) { // return if the background is already set to that color. if (background != null && c != null) if (background.equals(c)) return; // If c is null, inherit from closest ancestor whose bg is set. if (c == null && parent != null) c = parent.getBackground(); fir...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/82b0980887a33e07224a75af67c57ab11ebe0991/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
if (font == newFont) return;
if((newFont != null && (font == null || !font.equals(newFont))) || newFont == null) {
public void setFont(Font newFont) { if (font == newFont) return; Font oldFont = font; font = newFont; if (peer != null) peer.setFont(font); firePropertyChange("font", oldFont, newFont); invalidate(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/82b0980887a33e07224a75af67c57ab11ebe0991/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
}
public void setFont(Font newFont) { if (font == newFont) return; Font oldFont = font; font = newFont; if (peer != null) peer.setFont(font); firePropertyChange("font", oldFont, newFont); invalidate(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/82b0980887a33e07224a75af67c57ab11ebe0991/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
firePropertyChange("foreground", foreground, c);
public void setForeground(Color c) { firePropertyChange("foreground", foreground, c); if (peer != null) peer.setForeground(c); foreground = c; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/82b0980887a33e07224a75af67c57ab11ebe0991/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
firePropertyChange("foreground", previous, c);
public void setForeground(Color c) { firePropertyChange("foreground", foreground, c); if (peer != null) peer.setForeground(c); foreground = c; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/82b0980887a33e07224a75af67c57ab11ebe0991/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
if (!isLightweight())
if (isLightweight() || getParent() == null)
public void update(Graphics g) { if (!isLightweight()) { Rectangle clip = g.getClipBounds(); if (clip == null) g.clearRect(0, 0, width, height); else g.clearRect(clip.x, clip.y, clip.width, clip.height); } paint(g); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/82b0980887a33e07224a75af67c57ab11ebe0991/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
public void update(Graphics g) { if (!isLightweight()) { Rectangle clip = g.getClipBounds(); if (clip == null) g.clearRect(0, 0, width, height); else g.clearRect(clip.x, clip.y, clip.width, clip.height); } paint(g); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/82b0980887a33e07224a75af67c57ab11ebe0991/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); desktop.setBackground(defaults.getColor("desktop"));
Color bg = desktop.getBackground(); if (bg == null || bg instanceof UIResource) desktop.setBackground(UIManager.getColor("desktop"));
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); desktop.setBackground(defaults.getColor("desktop")); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicDesktopPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicDesktopPaneUI.java
public String getSystemId() { return systemId;
public String getSystemId() { return systemId;
public String getSystemId() { return systemId; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/StreamSource.java/clean/core/src/classpath/javax/javax/xml/transform/stream/StreamSource.java
public void setInputStream(InputStream stream) { this.inputStream = stream; }
public void setInputStream(InputStream stream) { this.inputStream = stream; }
public void setInputStream(InputStream stream) { this.inputStream = stream; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/StreamSource.java/clean/core/src/classpath/javax/javax/xml/transform/stream/StreamSource.java
public void setPublicId(String publicID) { this.publicId = publicID;
public void setPublicId(String publicId) { this.publicId = publicId;
public void setPublicId(String publicID) { this.publicId = publicID; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/StreamSource.java/clean/core/src/classpath/javax/javax/xml/transform/stream/StreamSource.java
public void setReader(Reader reader) { this.reader = reader;
public void setReader(Reader reader) { this.reader = reader;
public void setReader(Reader reader) { this.reader = reader; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/StreamSource.java/clean/core/src/classpath/javax/javax/xml/transform/stream/StreamSource.java
public void setSystemId(File file) { try { this.systemId = fileToURL (file).toString (); } catch (IOException e) { throw new RuntimeException (e.getMessage ()); }
public void setSystemId(String systemId) { this.systemId = systemId;
public void setSystemId(File file) { try { this.systemId = fileToURL (file).toString (); } catch (IOException e) { // can't happen throw new RuntimeException (e.getMessage ()); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/StreamSource.java/clean/core/src/classpath/javax/javax/xml/transform/stream/StreamSource.java
return perms.get(perm) != null;
Enumeration elements = elements(); while (elements.hasMoreElements()) { Permission p = (Permission)elements.nextElement(); if (p.implies(perm)) return true; } return false;
public boolean implies(Permission perm) { return perms.get(perm) != null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c8d0b510df30040b1f03422e59cba66c49d8be06/Permissions.java/buggy/core/src/classpath/java/java/security/Permissions.java
return super.isShowing();
return isVisible();
public boolean isShowing() { return super.isShowing(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/307c62a404c75cfe6d08b0eae748fea5c1b5a741/Window.java/clean/core/src/classpath/java/java/awt/Window.java
public void extensionAdded(ExtensionPoint point, Extension extension) { refreshFinders(); refreshMappers();
public final void extensionAdded(ExtensionPoint point, Extension extension) { loadExtensions();
public void extensionAdded(ExtensionPoint point, Extension extension) { refreshFinders(); refreshMappers(); findDeviceDrivers(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2a65f42e51073648a22e85a4ff87fb83e6145b6/DefaultDeviceManager.java/buggy/core/src/driver/org/jnode/driver/DefaultDeviceManager.java
public void extensionRemoved(ExtensionPoint point, Extension extension) { refreshFinders(); refreshMappers();
public final void extensionRemoved(ExtensionPoint point, Extension extension) { loadExtensions();
public void extensionRemoved(ExtensionPoint point, Extension extension) { refreshFinders(); refreshMappers(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2a65f42e51073648a22e85a4ff87fb83e6145b6/DefaultDeviceManager.java/buggy/core/src/driver/org/jnode/driver/DefaultDeviceManager.java
protected void findDeviceDrivers() { for (Iterator i = devices.values().iterator(); i.hasNext();) {
private final void findDeviceDrivers() { final List devices; synchronized (this) { devices = new ArrayList(this.devices.values()); } for (Iterator i = devices.iterator(); i.hasNext();) {
protected void findDeviceDrivers() { for (Iterator i = devices.values().iterator(); i.hasNext();) { final Device dev = (Device) i.next(); if (dev.getDriver() == null) { final Driver drv = findDriver(dev); if (drv != null) { try { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2a65f42e51073648a22e85a4ff87fb83e6145b6/DefaultDeviceManager.java/buggy/core/src/driver/org/jnode/driver/DefaultDeviceManager.java