rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
JComponent comp = (JComponent) e.nextElement(); | JComponent comp = (JComponent) i.next(); | 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(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java |
invalidComponents.clear(); | workInvalidComponents.clear(); | 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(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/RepaintManager.java/clean/core/src/classpath/javax/javax/swing/RepaintManager.java |
} else if (name.equals(XMLNS_URIs)) { return uris; | public boolean getFeature (String name) throws SAXNotRecognizedException, SAXNotSupportedException { if (name.equals(NAMESPACES)) { return namespaces; } else if (name.equals(NAMESPACE_PREFIXES)) { return prefixes; } else { throw new SAXNotRecognizedException("Feature: " + name); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/ParserAdapter.java/buggy/core/src/classpath/org/org/xml/sax/helpers/ParserAdapter.java | |
} else if (name.equals(XMLNS_URIs)) { checkNotParsing("feature", name); uris = value; | public void setFeature (String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { if (name.equals(NAMESPACES)) { checkNotParsing("feature", name); namespaces = value; if (!namespaces && !prefixes) { prefixes = true; } } else if (name.equals(NAMESPACE_PREFIXES)) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/ParserAdapter.java/buggy/core/src/classpath/org/org/xml/sax/helpers/ParserAdapter.java | |
if (uris) nsSupport.setNamespaceDeclUris (true); | private void setupParser () { nsSupport.reset(); if (entityResolver != null) { parser.setEntityResolver(entityResolver); } if (dtdHandler != null) { parser.setDTDHandler(dtdHandler); } if (errorHandler != null) { parser.setErrorHandler(errorHandler); } parser.setDocumentHandler(this); locator = null;... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/ParserAdapter.java/buggy/core/src/classpath/org/org/xml/sax/helpers/ParserAdapter.java | |
prefix = attQName.substring(n+1); | prefix = attQName.substring(6); | public void startElement (String qName, AttributeList qAtts) throws SAXException { // These are exceptions from the // first pass; they should be // ignored if there's a second pass, // but reported otherwise. Vector exceptions = null; // If we're not doing Namespace // processing, dispatch thi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/ParserAdapter.java/buggy/core/src/classpath/org/org/xml/sax/helpers/ParserAdapter.java |
if (prefixes) atts.addAttribute("", "", attQName.intern(), type, value); | if (prefixes) { if (uris) atts.addAttribute (nsSupport.XMLNS, prefix, attQName.intern(), type, value); else atts.addAttribute ("", "", attQName.intern(), type, value); } | public void startElement (String qName, AttributeList qAtts) throws SAXException { // These are exceptions from the // first pass; they should be // ignored if there's a second pass, // but reported otherwise. Vector exceptions = null; // If we're not doing Namespace // processing, dispatch thi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/ParserAdapter.java/buggy/core/src/classpath/org/org/xml/sax/helpers/ParserAdapter.java |
final Class cls = cl.loadClass(className); | final Class<?> cls = cl.loadClass(className); | final void startApp(final String name, final String className) { try { final Runnable runner = new Runnable() { public void run() { try { final ClassLoader cl = Thread.currentThread().getContextClassLoader(); final Class cls = cl.loadClass(className); final Method main = cls.getMethod("main", ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/982e1b1b1ed579528f868755d8a932bed0e03228/ApplicationBar.java/buggy/gui/src/desktop/org/jnode/desktop/ApplicationBar.java |
final Class cls = cl.loadClass(className); | final Class<?> cls = cl.loadClass(className); | public void run() { try { final ClassLoader cl = Thread.currentThread().getContextClassLoader(); final Class cls = cl.loadClass(className); final Method main = cls.getMethod("main", mainTypes); final Object[] args = { new String[0] }; main.invoke(null, args); } catch (SecurityE... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/982e1b1b1ed579528f868755d8a932bed0e03228/ApplicationBar.java/buggy/gui/src/desktop/org/jnode/desktop/ApplicationBar.java |
catch(NumberFormatException e) { ; } | catch(NumberFormatException e) { } | public static Font decode (String fontspec){ String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } if (token.toUpperCase... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Font.java/buggy/core/src/classpath/java/java/awt/Font.java |
public UnmarshalException(String s, Exception e) | public UnmarshalException(String s) | public UnmarshalException(String s, Exception e) { super(s, e); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/UnmarshalException.java/buggy/core/src/classpath/java/java/rmi/UnmarshalException.java |
super(s, e); | super(s); | public UnmarshalException(String s, Exception e) { super(s, e); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/UnmarshalException.java/buggy/core/src/classpath/java/java/rmi/UnmarshalException.java |
File f = new File (url.getFile()); | String fn = url.getFile(); fn = gnu.java.net.protocol.file.Connection.unquote(fn); File f = new File (fn); | public static synchronized JarFile get (URL url, boolean useCaches) throws IOException { JarFile jf; if (useCaches) { jf = (JarFile) cache.get (url); if (jf != null) return jf; } if ("file".equals (url.getProtocol())) { Fil... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/206323a9a1de1e11c769011a5cbcb03397404977/Connection.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/jar/Connection.java |
public INodeTable(Ext2FileSystem fs, int firstBlock) { | public INodeTable(Ext2FileSystem fs, int firstBlock) throws IOException { | public INodeTable(Ext2FileSystem fs, int firstBlock) { this.fs = fs; this.firstBlock = firstBlock; blockSize=fs.getSuperblock().getBlockSize(); blockCount = (int)Math.ceil( (double)(fs.getSuperblock().getINodesCount()*INode.INODE_LENGTH) / (double) blockSize); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/INodeTable.java/buggy/fs/src/fs/org/jnode/fs/ext2/INodeTable.java |
blockSize=fs.getSuperblock().getBlockSize(); | blockSize=(int)fs.getBlockSize(); | public INodeTable(Ext2FileSystem fs, int firstBlock) { this.fs = fs; this.firstBlock = firstBlock; blockSize=fs.getSuperblock().getBlockSize(); blockCount = (int)Math.ceil( (double)(fs.getSuperblock().getINodesCount()*INode.INODE_LENGTH) / (double) blockSize); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/INodeTable.java/buggy/fs/src/fs/org/jnode/fs/ext2/INodeTable.java |
(double)(fs.getSuperblock().getINodesCount()*INode.INODE_LENGTH) / | (double)(fs.getSuperblock().getINodesPerGroup()*INode.INODE_LENGTH) / | public INodeTable(Ext2FileSystem fs, int firstBlock) { this.fs = fs; this.firstBlock = firstBlock; blockSize=fs.getSuperblock().getBlockSize(); blockCount = (int)Math.ceil( (double)(fs.getSuperblock().getINodesCount()*INode.INODE_LENGTH) / (double) blockSize); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/INodeTable.java/buggy/fs/src/fs/org/jnode/fs/ext2/INodeTable.java |
addCompileHighOptLevel("org.jnode.naming"); | protected void setupCompileHighOptLevelPackages() { addCompileHighOptLevel("java.io"); addCompileHighOptLevel("java.lang"); addCompileHighOptLevel("java.lang.ref"); addCompileHighOptLevel("java.lang.reflect"); addCompileHighOptLevel("java.net"); addCompileHighOptLevel("java... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95d080b6dd45e9377ad3ace3a74f8c5e46c8815f/AbstractBootImageBuilder.java/buggy/builder/src/builder/org/jnode/build/AbstractBootImageBuilder.java | |
public void removeLayoutComponent(Component component) { | public void removeLayoutComponent(Component component) { | public void removeLayoutComponent(Component component) { // do nothing } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e0c4001932916dcdf180e32bf374255e88829b25/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
boolean hasParent = (currentDirectory.getParentFile() != null); | boolean hasParent = currentDirectory.getParentFile() != null; | public void propertyChange(PropertyChangeEvent e) { JFileChooser filechooser = getFileChooser(); String n = e.getPropertyName(); if (n.equals(JFileChooser.MULTI_SELECTION_ENABLED_CHANGED_PROPERTY)) { int mode = -1; if (filechooser.isMultiSelectionEnabled()) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e0c4001932916dcdf180e32bf374255e88829b25/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
if (editFile.renameTo (fc.getFileSystemView().createFileObject (fc.getCurrentDirectory(), text))) | if (editFile.renameTo(fc.getFileSystemView().createFileObject( fc.getCurrentDirectory(), text))) | void completeEditing() { if (editField != null && editFile != null) { String text = editField.getText(); if (text != null && text != "" && !text.equals(fc.getName(editFile))) if (editFile.renameTo (fc.getFileSystemView().createFileObject ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e0c4001932916dcdf180e32bf374255e88829b25/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
if (editFile.renameTo (fc.getFileSystemView().createFileObject (fc.getCurrentDirectory(), text))) | if (editFile.renameTo(fc.getFileSystemView().createFileObject( fc.getCurrentDirectory(), text))) | void completeEditing() { if (editField != null && editFile != null) { String text = editField.getText(); if (text != null && text != "" && !text.equals(fc.getName(editFile))) if (editFile.renameTo (fc.getFileSystemView().createFileObject ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e0c4001932916dcdf180e32bf374255e88829b25/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
public void removeLayoutComponent(Component component) { | public void removeLayoutComponent(Component component) { | public void removeLayoutComponent(Component component) { // do nothing } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e0c4001932916dcdf180e32bf374255e88829b25/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
public boolean doAccessibleAction(int value0) { return false; } | public boolean doAccessibleAction(int value0) { return false; } | public boolean doAccessibleAction(int value0) { return false; // TODO } // doAccessibleAction() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public AccessibleAction getAccessibleAction() { return null; } | public AccessibleAction getAccessibleAction() { return null; } | public AccessibleAction getAccessibleAction() { return null; // TODO } // getAccessibleAction() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public int getAccessibleActionCount() { return 0; } | public int getAccessibleActionCount() { return 0; } | public int getAccessibleActionCount() { return 0; // TODO } // getAccessibleActionCount() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public String getAccessibleActionDescription(int value0) { return null; } | public String getAccessibleActionDescription(int value0) { return null; } | public String getAccessibleActionDescription(int value0) { return null; // TODO } // getAccessibleActionDescription() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public AccessibleIcon[] getAccessibleIcon() { return null; } | public AccessibleIcon[] getAccessibleIcon() { return null; } | public AccessibleIcon[] getAccessibleIcon() { return null; // TODO } // getAccessibleIcon() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public String getAccessibleName() { return null; } | public String getAccessibleName() { return null; } | public String getAccessibleName() { return null; // TODO } // getAccessibleName() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public AccessibleRelationSet getAccessibleRelationSet() { return null; } | public AccessibleRelationSet getAccessibleRelationSet() { return null; } | public AccessibleRelationSet getAccessibleRelationSet() { return null; // TODO } // getAccessibleRelationSet() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public AccessibleStateSet getAccessibleStateSet() { return null; } | public AccessibleStateSet getAccessibleStateSet() { return null; } | public AccessibleStateSet getAccessibleStateSet() { return null; // TODO } // getAccessibleStateSet() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public AccessibleText getAccessibleText() { return null; } | public AccessibleText getAccessibleText() { return null; } | public AccessibleText getAccessibleText() { return null; // TODO } // getAccessibleText() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public AccessibleValue getAccessibleValue() { return null; } | public AccessibleValue getAccessibleValue() { return null; } | public AccessibleValue getAccessibleValue() { return null; // TODO } // getAccessibleValue() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public String getAfterIndex(int value0, int value1) { return null; } | public String getAfterIndex(int value0, int value1) { return null; } | public String getAfterIndex(int value0, int value1) { return null; // TODO } // getAfterIndex() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public String getAtIndex(int value0, int value1) { return null; } | public String getAtIndex(int value0, int value1) { return null; } | public String getAtIndex(int value0, int value1) { return null; // TODO } // getAtIndex() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public String getBeforeIndex(int value0, int value1) { return null; } | public String getBeforeIndex(int value0, int value1) { return null; } | public String getBeforeIndex(int value0, int value1) { return null; // TODO } // getBeforeIndex() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public int getCaretPosition() { return 0; } | public int getCaretPosition() { return 0; } | public int getCaretPosition() { return 0; // TODO } // getCaretPosition() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public int getCharCount() { return 0; } | public int getCharCount() { return 0; } | public int getCharCount() { return 0; // TODO } // getCharCount() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public AttributeSet getCharacterAttribute(int value0) { return null; } | public AttributeSet getCharacterAttribute(int value0) { return null; } | public AttributeSet getCharacterAttribute(int value0) { return null; // TODO } // getCharacterAttribute() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public Rectangle getCharacterBounds(int value0) { return null; } | public Rectangle getCharacterBounds(int value0) { return null; } | public Rectangle getCharacterBounds(int value0) { return null; // TODO } // getCharacterBounds() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public Number getCurrentAccessibleValue() { return null; } | public Number getCurrentAccessibleValue() { return null; } | public Number getCurrentAccessibleValue() { return null; // TODO } // getCurrentAccessibleValue() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public int getIndexAtPoint(Point value0) { return 0; } | public int getIndexAtPoint(Point value0) { return 0; } | public int getIndexAtPoint(Point value0) { return 0; // TODO } // getIndexAtPoint() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public Number getMaximumAccessibleValue() { return null; } | public Number getMaximumAccessibleValue() { return null; } | public Number getMaximumAccessibleValue() { return null; // TODO } // getMaximumAccessibleValue() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public Number getMinimumAccessibleValue() { return null; } | public Number getMinimumAccessibleValue() { return null; } | public Number getMinimumAccessibleValue() { return null; // TODO } // getMinimumAccessibleValue() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public String getSelectedText() { return null; } | public String getSelectedText() { return null; } | public String getSelectedText() { return null; // TODO } // getSelectedText() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public int getSelectionEnd() { return 0; } | public int getSelectionEnd() { return 0; } | public int getSelectionEnd() { return 0; // TODO } // getSelectionEnd() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public int getSelectionStart() { return 0; } | public int getSelectionStart() { return 0; } | public int getSelectionStart() { return 0; // TODO } // getSelectionStart() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
private Rectangle getTextRectangle() { return null; } | private Rectangle getTextRectangle() { return null; } | private Rectangle getTextRectangle() { return null; // TODO } // getTextRectangle() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public boolean setCurrentAccessibleValue(Number value0) { return false; } | public boolean setCurrentAccessibleValue(Number value0) { return false; } | public boolean setCurrentAccessibleValue(Number value0) { return false; // TODO } // setCurrentAccessibleValue() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
protected int checkHorizontalKey(int key, String exception) { return 0; } | protected int checkHorizontalKey(int key, String exception) { switch (key) { case SwingConstants.RIGHT: case SwingConstants.LEFT: case SwingConstants.CENTER: case SwingConstants.LEADING: case SwingConstants.TRAILING: break; default: throw new IllegalArgumentException(exception); } return key; } | protected int checkHorizontalKey(int key, String exception) { // Verify that key is a legal value for the horizontalAlignment properties. return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
protected int checkVerticalKey(int key, String exception) { return 0; } | protected int checkVerticalKey(int key, String exception) { switch (key) { case SwingConstants.TOP: case SwingConstants.BOTTOM: case SwingConstants.CENTER: break; default: throw new IllegalArgumentException(exception); } return key; } | protected int checkVerticalKey(int key, String exception) { // Ensures that the key is a valid. return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
protected ActionListener createActionListener() { return new ActionListener() { public void actionPerformed(ActionEvent e) { } }; } | protected ActionListener createActionListener() { return new ActionListener() { public void actionPerformed(ActionEvent e) { e.setSource(AbstractButton.this); AbstractButton.this.fireActionPerformed(e); } }; } | protected ActionListener createActionListener() { return new ActionListener() { public void actionPerformed(ActionEvent e) { } }; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public void actionPerformed(ActionEvent e) { } | public void actionPerformed(ActionEvent e) { e.setSource(AbstractButton.this); AbstractButton.this.fireActionPerformed(e); } | public void actionPerformed(ActionEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
protected ChangeListener createChangeListener() { return new ChangeListener() { public void stateChanged(ChangeEvent e) { } }; } | protected ChangeListener createChangeListener() { return new ChangeListener() { public void stateChanged(ChangeEvent e) { AbstractButton.this.fireStateChanged(e); AbstractButton.this.revalidate(); AbstractButton.this.repaint(); } }; } | protected ChangeListener createChangeListener() { // Subclasses that want to handle ChangeEvents differently can override this to return another ChangeListener implementation. return new ChangeListener() { public void stateChanged(ChangeEvent e) { } }; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
protected ItemListener createItemListener() { return new ItemListener() { public void itemStateChanged(ItemEvent e) { } }; } | protected ItemListener createItemListener() { return new ItemListener() { public void itemStateChanged(ItemEvent e) { AbstractButton.this.fireItemStateChanged(e); } }; } | protected ItemListener createItemListener() { return new ItemListener() { public void itemStateChanged(ItemEvent e) { } }; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
protected void fireActionPerformed(ActionEvent event) { getModel().fireActionPerformed(event); } | public void fireActionPerformed(ActionEvent e) { EventListener[] ll = listenerList.getListeners(ActionListener.class); for (int i = 0; i < ll.length; i++) ((ActionListener)ll[i]).actionPerformed(e); } | protected void fireActionPerformed(ActionEvent event) { getModel().fireActionPerformed(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
protected void fireItemStateChanged(ItemEvent event) { getModel().fireItemStateChanged(event); } | public void fireItemStateChanged(ItemEvent e) { EventListener[] ll = listenerList.getListeners(ItemListener.class); for (int i = 0; i < ll.length; i++) ((ItemListener)ll[i]).itemStateChanged(e); } | protected void fireItemStateChanged(ItemEvent event) { getModel().fireItemStateChanged(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
protected void fireStateChanged(ChangeEvent event) { getModel().fireStateChanged(event); } | public void fireStateChanged(ChangeEvent e) { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(e); } | protected void fireStateChanged(ChangeEvent event) { getModel().fireStateChanged(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public Action getAction() { return action_taken; } | public Action getAction() { return action; } | public Action getAction() { return action_taken; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public String getActionCommand() { return getModel().getActionCommand(); } | public String getActionCommand() { return getModel().getActionCommand(); } | public String getActionCommand() { return getModel().getActionCommand(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public String getLabel() { return getText(); } | public String getLabel() { return getText(); } | public String getLabel() { return getText(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public ButtonUI getUI() { return (ButtonUI) ui; } | public ButtonUI getUI() { return (ButtonUI) ui; } | public ButtonUI getUI() { //Returns the L&F object that renders this component. return (ButtonUI) ui; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h) { return current_icon == img; } | public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h) { return current_icon == img; } | public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h) { //This is overridden to return false if the current Icon's Image is not equal to the passed in Image img. return current_icon == img; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public boolean isBorderPainted() { return paint_border; } | public boolean isBorderPainted() { return paint_border; } | public boolean isBorderPainted() { return paint_border; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
protected void paintBorder(Graphics g) { if (isBorderPainted()) super.paintBorder(g); } | protected void paintBorder(Graphics g) { if (isBorderPainted()) super.paintBorder(g); } | protected void paintBorder(Graphics g) { // Paint the button's border if BorderPainted property is true. if (isBorderPainted()) super.paintBorder(g); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public void removeActionListener(ActionListener l) { getModel().removeActionListener(l); } | public void removeActionListener(ActionListener l) { listenerList.remove(ActionListener.class, l); } | public void removeActionListener(ActionListener l) { getModel().removeActionListener(l); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public void removeItemListener(ItemListener l) { getModel().removeItemListener(l); } | public void removeItemListener(ItemListener l) { listenerList.remove(ItemListener.class, l); } | public void removeItemListener(ItemListener l) { getModel().removeItemListener(l); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public void setActionCommand(String aCommand) { getModel().setActionCommand(aCommand); } | public void setActionCommand(String aCommand) { getModel().setActionCommand(aCommand); } | public void setActionCommand(String aCommand) { getModel().setActionCommand(aCommand); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public void setFocusPainted(boolean b) { boolean old = paint_focus; paint_focus = b; | public void setFocusPainted(boolean b) { boolean old = paint_focus; paint_focus = b; | public void setFocusPainted(boolean b) { boolean old = paint_focus; paint_focus = b; firePropertyChange(FOCUS_PAINTED_CHANGED_PROPERTY, old, b); if (hasFocus()) { revalidate(); repaint(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
firePropertyChange(FOCUS_PAINTED_CHANGED_PROPERTY, old, b); if (hasFocus()) { revalidate(); repaint(); } } | if (old != b) { firePropertyChange(FOCUS_PAINTED_CHANGED_PROPERTY, old, b); revalidate(); repaint(); } } | public void setFocusPainted(boolean b) { boolean old = paint_focus; paint_focus = b; firePropertyChange(FOCUS_PAINTED_CHANGED_PROPERTY, old, b); if (hasFocus()) { revalidate(); repaint(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public void setLabel(String label) { setText(label); } | public void setLabel(String label) { setText(label); } | public void setLabel(String label) { setText(label); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public void setPressedIcon(Icon pressedIcon) { pressed_button = pressedIcon; revalidate(); repaint(); } | public void setPressedIcon(Icon pressedIcon) { Icon old = pressed_icon; pressed_icon = pressedIcon; if (pressed_icon != old) { firePropertyChange(PRESSED_ICON_CHANGED_PROPERTY, old, pressed_icon); revalidate(); repaint(); } } | public void setPressedIcon(Icon pressedIcon) { pressed_button = pressedIcon; revalidate(); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public void setRolloverIcon(Icon rolloverIcon) { } | public void setRolloverIcon(Icon rolloverIcon) { Icon old = rollover_icon; rollover_icon = rolloverIcon; if (old != rolloverIcon) { firePropertyChange(ROLLOVER_ICON_CHANGED_PROPERTY, old, rolloverIcon); revalidate(); repaint(); } } | public void setRolloverIcon(Icon rolloverIcon) { // Sets the rollover icon for the button. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public void setRolloverSelectedIcon(Icon rolloverSelectedIcon) { } | public void setRolloverSelectedIcon(Icon rolloverSelectedIcon) { Icon old = rollover_selected_icon; rollover_selected_icon = rolloverSelectedIcon; if (old != rolloverSelectedIcon) { firePropertyChange(ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, old, rolloverSelectedIcon); revalidate(); repaint(); } } | public void setRolloverSelectedIcon(Icon rolloverSelectedIcon) { // Sets the rollover selected icon for the button. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public void setVerticalAlignment(int alignment) { vert_align = alignment; } | public void setVerticalAlignment(int a) { int old = vert_align; vert_align = a; if (old != a) { firePropertyChange(VERTICAL_ALIGNMENT_CHANGED_PROPERTY, old, a); revalidate(); repaint(); } } | public void setVerticalAlignment(int alignment) { vert_align = alignment; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public void setVerticalTextPosition(int textPosition) { vert_text_pos = textPosition; } | public void setVerticalTextPosition(int t) { int old = vert_text_pos; vert_text_pos = t; if (old != t) { firePropertyChange(VERTICAL_TEXT_POSITION_CHANGED_PROPERTY, old, t); revalidate(); repaint(); } } | public void setVerticalTextPosition(int textPosition) { vert_text_pos = textPosition; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
setOpaque(true); text = ""; | public AbstractButton() { actionListener = createActionListener(); changeListener = createChangeListener(); itemListener = createItemListener(); horizontalAlignment = CENTER; horizontalTextPosition = TRAILING; verticalAlignment = CENTER; verticalTextPosition = CENTER; borderPainted = true; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/AbstractButton.java/buggy/core/src/classpath/javax/javax/swing/AbstractButton.java | |
return getPreferredMenuItemSize(c, checkIcon, arrowIcon, defaultTextIconGap); | return getPreferredMenuItemSize(c, checkIcon, arrowIcon, defaultTextIconGap); | public Dimension getPreferredSize(JComponent c) { return getPreferredMenuItemSize(c, checkIcon, arrowIcon, defaultTextIconGap); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/BasicMenuItemUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuItemUI.java |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); defaults.getBorder("CheckBox.border").paintBorder(m, g, cr.x, cr.y, cr.width, cr.height); | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/BasicMenuItemUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuItemUI.java | |
protected JComponent createContentPane() | protected Container createContentPane() | protected JComponent createContentPane() { JPanel p = new JPanel(); p.setName(this.getName() + ".contentPane"); p.setLayout(new BorderLayout()); return p; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/JRootPane.java/clean/core/src/classpath/javax/javax/swing/JRootPane.java |
return super.isArmed(); | return super.isSelected(); | public boolean isSelected() { return super.isArmed(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JMenu.java/clean/core/src/classpath/javax/javax/swing/JMenu.java |
public void insert(Component component, int index) { | public void insert(Action action, int index) { | public void insert(Component component, int index) { // TODO } // insert() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JPopupMenu.java/buggy/core/src/classpath/javax/javax/swing/JPopupMenu.java |
c.setBackground(UIManager.getColor("Viewport.background")); | LookAndFeel.installColorsAndFont(c, "Viewport.background", "Viewport.foreground", "Viewport.font"); | protected void installDefaults(JComponent c) { c.setOpaque(true); c.setBackground(UIManager.getColor("Viewport.background")); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicViewportUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicViewportUI.java |
throws java.io.IOException; | throws IOException; | public abstract void parse(Reader reader, ParserCallback callback, boolean ignoreCharSet ) throws java.io.IOException; | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/HTMLEditorKit.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTMLEditorKit.java |
super.addAttribute(key.toString().toLowerCase(), value); | if (key instanceof String) super.addAttribute(((String) key).toLowerCase(), value); else super.addAttribute(key, value); | public void addAttribute(Object key, Object value) { super.addAttribute(key.toString().toLowerCase(), value); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/htmlAttributeSet.java/clean/core/src/classpath/gnu/gnu/javax/swing/text/html/parser/htmlAttributeSet.java |
Object v = super.getAttribute(key); | v = super.getAttribute(key); | public Object getAttribute(Object _key) { Object key = _key.toString().toLowerCase(); Object v = super.getAttribute(key); if (v != null) return v; else if (parent != null) return parent.getAttribute(key); else return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/htmlAttributeSet.java/clean/core/src/classpath/gnu/gnu/javax/swing/text/html/parser/htmlAttributeSet.java |
else if (parent != null) | key = HTML.getAttributeKey((String) key); v = super.getAttribute(key); if (v != null) return v; if (parent != null) | public Object getAttribute(Object _key) { Object key = _key.toString().toLowerCase(); Object v = super.getAttribute(key); if (v != null) return v; else if (parent != null) return parent.getAttribute(key); else return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/htmlAttributeSet.java/clean/core/src/classpath/gnu/gnu/javax/swing/text/html/parser/htmlAttributeSet.java |
else | } | public Enumeration getAttributeNames() { // Replace the string keys by HTML.attribute, where applicable final Enumeration enumeration = super.getAttributeNames(); return new Enumeration() { public boolean hasMoreElements() { return enumeration.hasMoreElements(); } p... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/htmlAttributeSet.java/clean/core/src/classpath/gnu/gnu/javax/swing/text/html/parser/htmlAttributeSet.java |
else | } | public Object nextElement() { Object key = enumeration.nextElement(); HTML.Attribute hKey = HTML.getAttributeKey((String) key); if (hKey != null) return hKey; else return key; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/htmlAttributeSet.java/clean/core/src/classpath/gnu/gnu/javax/swing/text/html/parser/htmlAttributeSet.java |
Obj(org.omg.CORBA.Object _object, byte[] _key, Servant _servant, POA _poa) | Obj(org.omg.CORBA.Object _object, byte[] _key, Servant _servant, gnuPOA _poa) | Obj(org.omg.CORBA.Object _object, byte[] _key, Servant _servant, POA _poa) { object = _object; key = _key; servant = _servant; poa = _poa; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/AOM.java/clean/core/src/classpath/gnu/gnu/CORBA/Poa/AOM.java |
public Obj add(org.omg.CORBA.Object object, Servant servant, POA poa) | public Obj add(org.omg.CORBA.Object object, Servant servant, gnuPOA poa) | public Obj add(org.omg.CORBA.Object object, Servant servant, POA poa) { return add(generateObjectKey(object), object, servant, poa); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8820e7a18265b8e9be753676d9477fb94a1447c8/AOM.java/clean/core/src/classpath/gnu/gnu/CORBA/Poa/AOM.java |
BasicListUI.this.list.setSelectedIndex(lead+1); | BasicListUI.this.list.setSelectedIndex(Math.min(lead+1,max)); | public void keyPressed( KeyEvent evt ) { if (evt.getKeyCode() == KeyEvent.VK_DOWN) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); if (!evt.isShiftDown()) { BasicListUI.this.list.clearSelection(); BasicListUI.this.list.setSelectedInd... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicListUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
BasicListUI.this.list.getSelectionModel().setLeadSelectionIndex(lead+1); | BasicListUI.this.list.getSelectionModel(). setLeadSelectionIndex(Math.min(lead+1,max)); | public void keyPressed( KeyEvent evt ) { if (evt.getKeyCode() == KeyEvent.VK_DOWN) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); if (!evt.isShiftDown()) { BasicListUI.this.list.clearSelection(); BasicListUI.this.list.setSelectedInd... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicListUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
BasicListUI.this.list.getSelectionModel().setLeadSelectionIndex(Math.max(lead-1,0)); | BasicListUI.this.list.getSelectionModel(). setLeadSelectionIndex(Math.max(lead-1,0)); | public void keyPressed( KeyEvent evt ) { if (evt.getKeyCode() == KeyEvent.VK_DOWN) { int lead = BasicListUI.this.list.getLeadSelectionIndex(); if (!evt.isShiftDown()) { BasicListUI.this.list.clearSelection(); BasicListUI.this.list.setSelectedInd... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicListUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
boolean controlPressed = event.isControlDown(); if (controlPressed) | if (event.isControlDown()) | public void mouseClicked(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; boolean controlPressed = event.isControlDown(); if (controlPressed) { if (BasicListUI.this.list.getSelec... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicListUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel.SINGLE_SELECTION) | if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel.SINGLE_SELECTION) | public void mouseClicked(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; boolean controlPressed = event.isControlDown(); if (controlPressed) { if (BasicListUI.this.list.getSelec... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicListUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java |
else if (event.isShiftDown()) { if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel.SINGLE_SELECTION) BasicListUI.this.list.setSelectedIndex(index); else if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel.SINGLE_INTERVAL_SELECTION) BasicListUI.this.list.setSelectionInterval (BasicLis... | public void mouseClicked(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; boolean controlPressed = event.isControlDown(); if (controlPressed) { if (BasicListUI.this.list.getSelec... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicListUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java | |
if (list != null) list.revalidate(); | void damageLayout() { updateLayoutStateNeeded = 1; if (list != null) list.revalidate(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicListUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java | |
data[i+offset] = (float) val; | data[i+offset] = val; | public void setElem(int i, int val) { data[i+offset] = (float) val; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/DataBufferFloat.java/clean/core/src/classpath/java/java/awt/image/DataBufferFloat.java |
targetClass = target.getClass(); | public EventHandler(Object target, String action, String eventPropertyName, String listenerMethodName) { this.target = target; this.action = action; // Turn this into a method or do we wait till // runtime property = eventPropertyName; listenerMethod = listenerMethodName; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java | |
throws NoSuchMethodException, IllegalAccessException, InvocationTargetException | private Object[] getProperty(Object o, String prop) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { // Use the event object when the property name to extract is null. if (prop == null) return new Object[] {o, o.getClass()}; // Isolate the first property name from a.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/320c6e82f0607a5c7ec66c594ec20bb9010947d1/EventHandler.java/buggy/core/src/classpath/java/java/beans/EventHandler.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.