rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
for (int i = srcComponentsLength - 1; i >= 0; i--)
for (int i = srcComponentsLength - 2; i >= 0; i--)
public void compose(Raster src, Raster dstIn, WritableRaster dstOut) { // TODO: This implementation is very general and highly inefficient. There // are two possible ways to optimize this: // 1. Special cased implementations for common ColorModels and transfer // types. // 2. Native implementation....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/AlphaCompositeContext.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/AlphaCompositeContext.java
public float[] getNormalizedComponents (Object pixel, float[] normComponents, int normOffset)
public float[] getNormalizedComponents(int[] components, int offset, float[] normComponents, int normOffset)
public float[] getNormalizedComponents (Object pixel, float[] normComponents, int normOffset) { // subclasses has to implement this method. throw new UnsupportedOperationException(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/ColorModel.java/buggy/core/src/classpath/java/java/awt/image/ColorModel.java
throw new UnsupportedOperationException(); }
int numComponents = getNumComponents(); if (normComponents == null) { normComponents = new float[normOffset + numComponents]; } for (int i=0; i<numComponents; i++) { float in = components[offset++]; float out = in / ((1<<getComponentSize(i)) - 1); normComponents[normOffset++] = out; } return normComponents; }
public float[] getNormalizedComponents (Object pixel, float[] normComponents, int normOffset) { // subclasses has to implement this method. throw new UnsupportedOperationException(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/ColorModel.java/buggy/core/src/classpath/java/java/awt/image/ColorModel.java
return super.hashCode ();
long hashCode = Double.doubleToLongBits(get(position())) + 31; long multiplier = 1; for (int i = position() + 1; i < limit(); ++i) { multiplier *= 31; hashCode += (Double.doubleToLongBits(get(i)) + 30)*multiplier; } return ((int)hashCode);
public int hashCode () { // FIXME: Check what SUN calculates here. return super.hashCode (); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/DoubleBuffer.java/buggy/core/src/classpath/java/java/nio/DoubleBuffer.java
final public static DoubleBuffer wrap (double[] array, int offset, int length)
public static final DoubleBuffer wrap (double[] array, int offset, int length)
final public static DoubleBuffer wrap (double[] array, int offset, int length) { return new DoubleBufferImpl (array, 0, array.length, offset + length, offset, -1, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/DoubleBuffer.java/buggy/core/src/classpath/java/java/nio/DoubleBuffer.java
private synchronized void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{
private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{
private synchronized void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(it...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(iterator.hasNext()) { rec = iterator.nextDirectoryRecord();
synchronized(iNode) { Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(iterator.hasNext()) { rec = iterator.nextDirectoryRecord(); } Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); if(rec!=null) { long lastPos = rec.getFileOffset(); long lastLen = rec.getRecL...
private synchronized void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(it...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); if(rec!=null) { long lastPos = rec.getFileOffset(); long lastLen = rec.getRecLen(); rec.truncateRecord(); long remainingLength = fs.getBlockSize() - (lastPos%fs.getBlockSize()) - rec.getRecLen(); log.debug("LAST-1 record: begins at: "+lastPos+", length: "+last...
private synchronized void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(it...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
public synchronized FSEntry createDirectoryEntry(String name) throws IOException {
public FSEntry createDirectoryEntry(String name) throws IOException {
public synchronized FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
public synchronized FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
return newEntry;
return newEntry;
public synchronized FSEntry createDirectoryEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
public synchronized FSEntry createFileEntry(String name) throws IOException {
public FSEntry createFileEntry(String name) throws IOException {
public synchronized FSEntry createFileEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
public synchronized FSEntry createFileEntry(String name) throws IOException { if(!canWrite()) throw new IOException("Filesystem or directory is mounted read-only!"); //create a new iNode for the file //TODO: access rights, file type, UID and GID should be passed through the FSDirectory interface INode newINode; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java
return;
public void writeExpression(Expression expr) { // Implementation note: Why is this method overwritten and nearly exactly // reimplemented as in Encoder? // The Encoder class can (and should be) subclassed by users outside of the // java.beans package. While I have doubts that this is possible from an ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/XMLEncoder.java/buggy/core/src/classpath/java/java/beans/XMLEncoder.java
return null;
return currentWriter;
protected Thread getCurrentWriter() { // FIXME: Implement locking! return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
content.insertString(offset, text);
writeLock(); UndoableEdit temp = content.insertString(offset, text); writeUnlock(); GapContent.UndoInsertString changes = null; if (content instanceof GapContent) changes = (GapContent.UndoInsertString) temp;
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Doc...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
if (changes != null) { Element root = getDefaultRootElement(); int start = root.getElementIndex(changes.where); int end = root.getElementIndex(changes.where+changes.length); if (!(start == 0 && end == 0)) { Element[] removed = new Element[1]; removed[0] = root; Element[] added = new Element[end - start + 1]; for (i...
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Doc...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
if (currentWriter != null && currentWriter.equals(Thread.currentThread())) return; synchronized (documentCV) { while (currentWriter != null || numWritersWaiting > 0) { try { documentCV.wait(); } catch (InterruptedException ie) { throw new Error("interrupted trying to get a readLock"); } } numReaders++; }
public void readLock() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
if (numReaders == 0) throw new IllegalStateException("document lock failure"); synchronized (documentCV) { if (currentWriter == null) { numReaders --; if (numReaders == 0 && numWritersWaiting != 0) documentCV.notify(); } }
public void readUnlock() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
content.remove(offset, length);
Element[] added = new Element[1]; added[0] = root.getElement(start); boolean shouldFire = content.getString(offset, length).length() != 0; writeLock(); UndoableEdit temp = content.remove(offset, length); writeUnlock();
public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); removeUpdate(event); content.remove(offset, length); postRemoveUpdate(event); fireRemoveUpdate(event); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
GapContent.UndoRemove changes = null; if (content instanceof GapContent) changes = (GapContent.UndoRemove) temp; if (changes != null && !(start == end)) { ElementEdit edit = new ElementEdit (root, start, removed, added); event.addEdit(edit); } if (shouldFire)
public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); removeUpdate(event); content.remove(offset, length); postRemoveUpdate(event); fireRemoveUpdate(event); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
readLock(); try { runnable.run(); } finally { readUnlock(); }
public void render(Runnable runnable) { // FIXME: Implement me! }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
if (currentWriter!= null && currentWriter.equals(Thread.currentThread())) return; synchronized (documentCV) { numWritersWaiting++; while (numReaders > 0) { try { documentCV.wait(); } catch (InterruptedException ie) { throw new Error("interruped while trying to obtain write lock"); } } numWritersWaiting --; currentWrite...
protected void writeLock() { // FIXME: Implement me. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
synchronized (documentCV) { if (currentWriter.equals(Thread.currentThread())) { currentWriter = null; documentCV.notifyAll(); } }
protected void writeUnlock() { // FIXME: Implement me. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
Component c = sfp.getAwtFrame().findComponentAt(x, y);
Component c = sfp.getAWTComponent().findComponentAt(x, y);
public Component getTopComponentAt(int x, int y) { Component comp = super.getTopComponentAt(x, y); SwingFrame sfp = (SwingFrame) SwingUtilities.getAncestorOfClass( SwingFrame.class, comp); if (sfp != null) { Rectangle r = sfp.getBounds(); Insets ins = sfp.getSwingPeer().getInsets(); r.x = r....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d38fbd949384502ceb3f02e101548789fed3b5ca/SwingToolkit.java/clean/gui/src/awt/org/jnode/awt/swingpeers/SwingToolkit.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/IntItem.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/IntItem.java
LongLongSeqHolder h = new LongLongSeqHolder(); h._read(input); return h.value;
long[] value = new long[ input.read_long() ]; input.read_longlong_array(value, 0, value.length); return value;
public static long[] read(InputStream input) { LongLongSeqHolder h = new LongLongSeqHolder(); h._read(input); return h.value; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/LongLongSeqHelper.java/buggy/core/src/classpath/org/org/omg/CORBA/LongLongSeqHelper.java
LongLongSeqHolder h = new LongLongSeqHolder(value); h._write(output);
output.write_long(value.length); output.write_longlong_array(value, 0, value.length);
public static void write(OutputStream output, long[] value) { LongLongSeqHolder h = new LongLongSeqHolder(value); h._write(output); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/LongLongSeqHelper.java/buggy/core/src/classpath/org/org/omg/CORBA/LongLongSeqHelper.java
public LongLongSeqHolder(long[] initial_value)
public LongLongSeqHolder()
public LongLongSeqHolder(long[] initial_value) { value = initial_value; typecode.setLength(value.length); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/LongLongSeqHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/LongLongSeqHolder.java
value = initial_value; typecode.setLength(value.length);
public LongLongSeqHolder(long[] initial_value) { value = initial_value; typecode.setLength(value.length); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/LongLongSeqHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/LongLongSeqHolder.java
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding the rootPane (initialization stages) use super.add. // Otherwise pass the add onto the content pane. if (comp==rootPane) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabl...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JFrame.java/buggy/core/src/classpath/javax/javax/swing/JFrame.java
if (comp==rootPane)
if (!initStageDone)
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding the rootPane (initialization stages) use super.add. // Otherwise pass the add onto the content pane. if (comp==rootPane) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEnabl...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JFrame.java/buggy/core/src/classpath/javax/javax/swing/JFrame.java
s.setOpaque(true);
s.setOpaque(false);
protected void installDefaults(JSeparator s) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); shadow = defaults.getColor("Separator.shadow"); highlight = defaults.getColor("Separator.highlight"); s.setOpaque(true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicSeparatorUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSeparatorUI.java
log.debug("indirectWrite(blockNr="+dataBlockNr+", offset="+offset+"...)");
private final void indirectWrite(long dataBlockNr, long offset, long allocatedBlocks, long value, int indirectionLevel) throws IOException, FileSystemException { byte[] data = fs.getBlock( dataBlockNr ); if(indirectionLevel==1) { //data is a (simple) indirect block Ext2Utils.set32(data, (int)offset*4, va...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/INode.java/buggy/fs/src/fs/org/jnode/fs/ext2/INode.java
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/INode.java/buggy/fs/src/fs/org/jnode/fs/ext2/INode.java
log.info("reserved triple indirect block: "+tripleIndirectBlockNr);
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/INode.java/buggy/fs/src/fs/org/jnode/fs/ext2/INode.java
public abstract boolean addPermission(Permission permission);
boolean addPermission(Permission permission);
public abstract boolean addPermission(Permission permission);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1007f675673d392de852ea798af2cedde0e31ef9/AclEntry.java/clean/core/src/classpath/java/java/security/acl/AclEntry.java
public abstract boolean checkPermission(Permission permission);
boolean checkPermission(Permission permission);
public abstract boolean checkPermission(Permission permission);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1007f675673d392de852ea798af2cedde0e31ef9/AclEntry.java/clean/core/src/classpath/java/java/security/acl/AclEntry.java
public abstract Object clone();
Object clone();
public abstract Object clone();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1007f675673d392de852ea798af2cedde0e31ef9/AclEntry.java/clean/core/src/classpath/java/java/security/acl/AclEntry.java
public abstract Principal getPrincipal();
Principal getPrincipal();
public abstract Principal getPrincipal();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1007f675673d392de852ea798af2cedde0e31ef9/AclEntry.java/clean/core/src/classpath/java/java/security/acl/AclEntry.java
public abstract boolean isNegative();
boolean isNegative();
public abstract boolean isNegative();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1007f675673d392de852ea798af2cedde0e31ef9/AclEntry.java/clean/core/src/classpath/java/java/security/acl/AclEntry.java
public abstract Enumeration permissions();
Enumeration permissions();
public abstract Enumeration permissions();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1007f675673d392de852ea798af2cedde0e31ef9/AclEntry.java/clean/core/src/classpath/java/java/security/acl/AclEntry.java
public abstract boolean removePermission(Permission perm);
boolean removePermission(Permission perm);
public abstract boolean removePermission(Permission perm);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1007f675673d392de852ea798af2cedde0e31ef9/AclEntry.java/clean/core/src/classpath/java/java/security/acl/AclEntry.java
public abstract void setNegativePermissions();
void setNegativePermissions();
public abstract void setNegativePermissions();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1007f675673d392de852ea798af2cedde0e31ef9/AclEntry.java/clean/core/src/classpath/java/java/security/acl/AclEntry.java
public abstract boolean setPrincipal(Principal user);
boolean setPrincipal(Principal user);
public abstract boolean setPrincipal(Principal user);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1007f675673d392de852ea798af2cedde0e31ef9/AclEntry.java/clean/core/src/classpath/java/java/security/acl/AclEntry.java
public abstract String toString();
String toString();
public abstract String toString();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1007f675673d392de852ea798af2cedde0e31ef9/AclEntry.java/clean/core/src/classpath/java/java/security/acl/AclEntry.java
int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2)); p--;
int p = Expr.intValue(val2) - 1;
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SubstringFunction.java/buggy/core/src/classpath/gnu/gnu/xml/xpath/SubstringFunction.java
{
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SubstringFunction.java/buggy/core/src/classpath/gnu/gnu/xml/xpath/SubstringFunction.java
}
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SubstringFunction.java/buggy/core/src/classpath/gnu/gnu/xml/xpath/SubstringFunction.java
{
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SubstringFunction.java/buggy/core/src/classpath/gnu/gnu/xml/xpath/SubstringFunction.java
}
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SubstringFunction.java/buggy/core/src/classpath/gnu/gnu/xml/xpath/SubstringFunction.java
int v3 = (val3 instanceof Double) ? ((Double) val3).intValue() : (int) Math.round(_number(context, val3));
int v3 = Expr.intValue(val3);
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SubstringFunction.java/buggy/core/src/classpath/gnu/gnu/xml/xpath/SubstringFunction.java
{
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SubstringFunction.java/buggy/core/src/classpath/gnu/gnu/xml/xpath/SubstringFunction.java
}
public Object evaluate(Node context, int pos, int len) { Object val1 = arg1.evaluate(context, pos, len); Object val2 = arg2.evaluate(context, pos, len); String s = _string(context, val1); int p = (val2 instanceof Double) ? ((Double) val2).intValue() : (int) Math.round(_number(context, val2));...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/SubstringFunction.java/buggy/core/src/classpath/gnu/gnu/xml/xpath/SubstringFunction.java
throws NotImplementedException
public BufferCapabilities getBufferCapabilities() throws NotImplementedException { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/GraphicsConfiguration.java/buggy/core/src/classpath/java/java/awt/GraphicsConfiguration.java
throw new Error("not implemented");
if (imageCapabilities == null) getImageCapabilities(); if (bufferCapabilities == null) bufferCapabilities = new BufferCapabilities(imageCapabilities, imageCapabilities, null); return bufferCapabilities;
public BufferCapabilities getBufferCapabilities() throws NotImplementedException { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/GraphicsConfiguration.java/buggy/core/src/classpath/java/java/awt/GraphicsConfiguration.java
throws NotImplementedException
public ImageCapabilities getImageCapabilities() throws NotImplementedException { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/GraphicsConfiguration.java/buggy/core/src/classpath/java/java/awt/GraphicsConfiguration.java
throw new Error("not implemented");
if (imageCapabilities == null) imageCapabilities = new ImageCapabilities(false); return imageCapabilities;
public ImageCapabilities getImageCapabilities() throws NotImplementedException { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/GraphicsConfiguration.java/buggy/core/src/classpath/java/java/awt/GraphicsConfiguration.java
if (global) { Map ctx1 = (Map) variables.getLast(); Map ctx2 = (Map) parameters.getLast(); return (ctx1.containsKey(name) || ctx2.containsKey(name)); }
public boolean containsKey(QName name, int type) { Iterator i = null; switch (type) { case VARIABLE: i = variables.iterator(); break; case PARAM: i = parameters.iterator(); break; case WITH_PARAM: Map ctx = (Map) withParameters.getFirst(); return ct...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Bindings.java/clean/core/src/classpath/gnu/gnu/xml/transform/Bindings.java
if (global) { Map ctx = (Map) variables.getLast(); Object ret = ctx.get(name); if (ret == null) { ctx = (Map) parameters.getLast(); ret = ctx.get(name); } return ret; }
public Object get(QName name, Node context, int pos, int len) { //System.err.println("bindings.get: "+name); //System.err.println("\t"+toString()); Object ret = null; //if (parameters.size() > 1 && containsKey(name, PARAM)) // check that template defines parameter { Map cwp = (Map) withP...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Bindings.java/clean/core/src/classpath/gnu/gnu/xml/transform/Bindings.java
if (next instanceof RETokenChar) {
if (next instanceof RETokenChar && ((RETokenChar)next).insens == insens) {
boolean chain(REToken next) { if (next instanceof RETokenChar) { RETokenChar cnext = (RETokenChar) next; // assume for now that next can only be one character int newsize = ch.length + cnext.ch.length; char[] chTemp = new char [newsize]; System.arraycopy(ch,0,chTemp,0,ch.length...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e62592e8f80f1dcb092adb192d67f254df4e9392/RETokenChar.java/clean/core/src/classpath/gnu/gnu/regexp/RETokenChar.java
&& e.id >= AdjustmentEvent.ADJUSTMENT_FIRST && (adjustment_listeners != null || (eventMask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0))
&& e.id >= AdjustmentEvent.ADJUSTMENT_FIRST) { AdjustmentEvent ae = (AdjustmentEvent) e; boolean adjusting = ae.getValueIsAdjusting(); if (adjusting) setValueIsAdjusting(true); try { setValue(((AdjustmentEvent) e).getValue()); if (adjustment_listeners != null || (eventMask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0)
void dispatchEventImpl(AWTEvent e) { if (e.id <= AdjustmentEvent.ADJUSTMENT_LAST && e.id >= AdjustmentEvent.ADJUSTMENT_FIRST && (adjustment_listeners != null || (eventMask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Scrollbar.java/clean/core/src/classpath/java/java/awt/Scrollbar.java
} finally { if (adjusting) setValueIsAdjusting(false); } }
void dispatchEventImpl(AWTEvent e) { if (e.id <= AdjustmentEvent.ADJUSTMENT_LAST && e.id >= AdjustmentEvent.ADJUSTMENT_FIRST && (adjustment_listeners != null || (eventMask & AWTEvent.ADJUSTMENT_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Scrollbar.java/clean/core/src/classpath/java/java/awt/Scrollbar.java
if (!parentFile.exists()) {
if (parentFile!=null && !parentFile.exists()) {
public static void main(String[] args) throws Exception { final ParsedArguments cmdLine = HELP_INFO.parse(args); final File file = ARG_TOUCH.getFile(cmdLine); final File parentFile = file.getParentFile(); if (!file.exists()) { if (!parentFile.exists()) { if (!pa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af75f31f7ce367a1e5ad83168b6492652bafd7b6/TouchCommand.java/buggy/fs/src/fs/org/jnode/fs/command/TouchCommand.java
new Thread(new CommandShell((TextConsole) cm.createConsole(null,
new Thread(new CommandShell((TextConsole) cm.createConsole("Console 1",
public static void main(String[] argv) throws Exception { initEnv(); SwingTextScreenConsoleManager cm = new SwingTextScreenConsoleManager(); new Thread(new CommandShell((TextConsole) cm.createConsole(null, ConsoleManager.CreateOptions.TEXT | ConsoleManager.CreateOptions.SCROLLABL...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/da7ef004098bc7f4da5cf8e79875f5ffd8817bf4/ShellEmu.java/buggy/distr/src/apps/org/jnode/apps/console/ShellEmu.java
public SampleModel getSampleModel()
public SampleModel getSampleModel (int width, int height)
public SampleModel getSampleModel() { return sampleModel; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/ImageTypeSpecifier.java/buggy/core/src/classpath/javax/javax/imageio/ImageTypeSpecifier.java
return sampleModel;
if (width <= 0 || height <= 0) throw new IllegalArgumentException ("invalid dimension"); if (width * height < Math.min (width, height)) throw new IllegalArgumentException ("width * height > Integer.MAX_VALUE"); return sampleModel.createCompatibleSampleModel (width, height);
public SampleModel getSampleModel() { return sampleModel; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/ImageTypeSpecifier.java/buggy/core/src/classpath/javax/javax/imageio/ImageTypeSpecifier.java
public void fireTableCellUpdated (int row, int column)
public void fireTableCellUpdated(int row, int column)
public void fireTableCellUpdated (int row, int column) { fireTableChanged(new TableModelEvent(this, row, row, column)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eef19a6fbc70451186d53b7669077748b8b7c136/AbstractTableModel.java/clean/core/src/classpath/javax/javax/swing/table/AbstractTableModel.java
listener.tableChanged (event);
listener.tableChanged(event);
public void fireTableChanged(TableModelEvent event) { int index; TableModelListener listener; Object[] list = listenerList.getListenerList(); for (index = 0; index < list.length; index += 2) { listener = (TableModelListener) list [index + 1]; listener.tableChanged (event); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eef19a6fbc70451186d53b7669077748b8b7c136/AbstractTableModel.java/clean/core/src/classpath/javax/javax/swing/table/AbstractTableModel.java
public void fireTableRowsInserted (int firstRow, int lastRow)
public void fireTableRowsInserted(int firstRow, int lastRow)
public void fireTableRowsInserted (int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eef19a6fbc70451186d53b7669077748b8b7c136/AbstractTableModel.java/clean/core/src/classpath/javax/javax/swing/table/AbstractTableModel.java
public void fireTableRowsUpdated (int firstRow, int lastRow)
public void fireTableRowsUpdated(int firstRow, int lastRow)
public void fireTableRowsUpdated (int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.UPDATE)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eef19a6fbc70451186d53b7669077748b8b7c136/AbstractTableModel.java/clean/core/src/classpath/javax/javax/swing/table/AbstractTableModel.java
buffer.insert (0, (char) ('A' + columnIndex % 26));
buffer.insert(0, (char) ('A' + columnIndex % 26));
public String getColumnName(int columnIndex) { StringBuffer buffer = new StringBuffer(); while (columnIndex >= 0) { buffer.insert (0, (char) ('A' + columnIndex % 26)); columnIndex = columnIndex / 26 - 1; } return buffer.toString(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eef19a6fbc70451186d53b7669077748b8b7c136/AbstractTableModel.java/clean/core/src/classpath/javax/javax/swing/table/AbstractTableModel.java
public synchronized byte[] getINodeTableBlock(int blockNo) throws FileSystemException, IOException{
private byte[] getINodeTableBlock(int blockNo) throws FileSystemException, IOException{
public synchronized byte[] getINodeTableBlock(int blockNo) throws FileSystemException, IOException{ if(blockNo < blockCount) return fs.getBlock(firstBlock+blockNo); else throw new FileSystemException("Trying to get block #"+blockNo+ "of an inode table that only has "+blockCount+" blocks"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/INodeTable.java/buggy/fs/src/fs/org/jnode/fs/ext2/INodeTable.java
public synchronized void writeINodeTableBlock(byte[] data, int blockNo) throws FileSystemException, IOException {
private void writeINodeTableBlock(byte[] data, int blockNo) throws FileSystemException, IOException {
public synchronized void writeINodeTableBlock(byte[] data, int blockNo) throws FileSystemException, IOException { if(blockNo < blockCount) fs.writeBlock(firstBlock+blockNo, data, false); else throw new FileSystemException("Trying to write block #"+blockNo+ "of an inode table that only has "+blockCount+" blocks"...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/INodeTable.java/buggy/fs/src/fs/org/jnode/fs/ext2/INodeTable.java
return new UnixFileSystemView();
defaultFileSystemView = new UnixFileSystemView();
public static FileSystemView getFileSystemView() { if (File.separator.equals("/")) return new UnixFileSystemView(); // else if (File.Separator.equals("\")) // return new Win32FileSystemView(); // else // return new GenericFileSystemView(); return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/FileSystemView.java/clean/core/src/classpath/javax/javax/swing/filechooser/FileSystemView.java
return null;
} return defaultFileSystemView;
public static FileSystemView getFileSystemView() { if (File.separator.equals("/")) return new UnixFileSystemView(); // else if (File.Separator.equals("\")) // return new Win32FileSystemView(); // else // return new GenericFileSystemView(); return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/FileSystemView.java/clean/core/src/classpath/javax/javax/swing/filechooser/FileSystemView.java
Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column);
Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column);
Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eef19a6fbc70451186d53b7669077748b8b7c136/TableCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/table/TableCellRenderer.java
public void addSelectionPath(TreePath value0)
public void addSelectionPath(TreePath path)
public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
if (!isPathSelected(value0))
if (!isPathSelected(path))
public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
setSelectionPath(value0);
setSelectionPath(path);
public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
temp[temp.length - 1] = value0;
temp[temp.length - 1] = path;
public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
leadPath = value0; fireValueChanged(new TreeSelectionEvent(this, value0, true, leadPath, value0));
leadPath = path; fireValueChanged(new TreeSelectionEvent(this, path, true, leadPath, path));
public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
public void addSelectionPaths(TreePath[] value0)
public void addSelectionPaths(TreePath[] paths)
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
if (value0 != null)
if (paths != null)
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
for (int i = 0; i < value0.length; i++)
for (int i = 0; i < paths.length; i++)
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
v0 = value0[i];
v0 = paths[i];
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
leadPath = value0[value0.length - 1];
leadPath = paths[paths.length - 1];
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
leadPath, value0[0]));
leadPath, paths[0]));
public void addSelectionPaths(TreePath[] value0) { if (value0 != null) { TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (!isPathSelected(v0)) { if (isSelectionEmpty()) setSelectionPath(v0); else { TreePath[] temp = new TreePath[selection.length...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
protected boolean arePathsContiguous(TreePath[] value0)
protected boolean arePathsContiguous(TreePath[] paths)
protected boolean arePathsContiguous(TreePath[] value0) { return false; // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
protected boolean canPathsBeAdded(TreePath[] value0)
protected boolean canPathsBeAdded(TreePath[] paths)
protected boolean canPathsBeAdded(TreePath[] value0) { return false; // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
protected boolean canPathsBeRemoved(TreePath[] value0)
protected boolean canPathsBeRemoved(TreePath[] paths)
protected boolean canPathsBeRemoved(TreePath[] value0) { return false; // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
public boolean isPathSelected(TreePath value0)
public boolean isPathSelected(TreePath path)
public boolean isPathSelected(TreePath value0) { if (selection == null) return false; for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) return true; } return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
if (selection[i].equals(value0))
if (selection[i].equals(path))
public boolean isPathSelected(TreePath value0) { if (selection == null) return false; for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) return true; } return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
public boolean isRowSelected(int value0)
public boolean isRowSelected(int row)
public boolean isRowSelected(int value0) { return false; // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
public void removeSelectionPath(TreePath value0)
public void removeSelectionPath(TreePath path)
public void removeSelectionPath(TreePath value0) { int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, tem...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
if (isPathSelected(value0))
if (isPathSelected(path))
public void removeSelectionPath(TreePath value0) { int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, tem...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
if (selection[i].equals(value0))
if (selection[i].equals(path))
public void removeSelectionPath(TreePath value0) { int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, tem...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
fireValueChanged(new TreeSelectionEvent(this, value0, false, leadPath, value0));
fireValueChanged(new TreeSelectionEvent(this, path, false, leadPath, path));
public void removeSelectionPath(TreePath value0) { int index = -1; if (isPathSelected(value0)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(value0)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, tem...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
public void removeSelectionPaths(TreePath[] value0)
public void removeSelectionPaths(TreePath[] paths)
public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
if (value0 != null)
if (paths != null)
public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java