rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
this(mimeType, null);
mimeType = null; representationClass = null; humanPresentableName = null;
public DataFlavor(String mimeType) throws ClassNotFoundException { this(mimeType, null); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/DataFlavor.java/clean/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
public String getParameter(String paramName)
private static String getParameter(String paramName, String mimeString)
public String getParameter(String paramName) { if ("humanPresentableName".equals(paramName)) return getHumanPresentableName(); return getParameter(paramName, mimeType); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/DataFlavor.java/clean/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
if ("humanPresentableName".equals(paramName)) return getHumanPresentableName(); return getParameter(paramName, mimeType);
int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null); String value = mimeString.substring(idx + paramName.length() + 1); idx = value.indexOf(" "); if (idx == -1) return(value); else return(value.substring(0, idx));
public String getParameter(String paramName) { if ("humanPresentableName".equals(paramName)) return getHumanPresentableName(); return getParameter(paramName, mimeType); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/DataFlavor.java/clean/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
throws IOException, ClassNotFoundException
throws IOException, ClassNotFoundException, NotImplementedException
public void readExternal(ObjectInput stream) throws IOException, ClassNotFoundException { // FIXME: Implement me }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/DataFlavor.java/clean/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
public void writeExternal(ObjectOutput stream) throws IOException
public void writeExternal(ObjectOutput stream) throws IOException, NotImplementedException
public void writeExternal(ObjectOutput stream) throws IOException { // FIXME: Implement me }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/DataFlavor.java/clean/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
throw new PatternSyntaxException(e.getMessage(),
PatternSyntaxException pse; pse = new PatternSyntaxException(e.getMessage(),
private Pattern (String regex, int flags) throws PatternSyntaxException { this.regex = regex; this.flags = flags; int gnuFlags = 0; if ((flags & CASE_INSENSITIVE) != 0) gnuFlags |= RE.REG_ICASE; if ((flags & MULTILINE) != 0) gnuFlags |= RE.REG_MULTILINE; if ((flags & DOTALL) != 0) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Pattern.java/clean/core/src/classpath/java/java/util/regex/Pattern.java
pse.initCause(e); throw pse;
private Pattern (String regex, int flags) throws PatternSyntaxException { this.regex = regex; this.flags = flags; int gnuFlags = 0; if ((flags & CASE_INSENSITIVE) != 0) gnuFlags |= RE.REG_ICASE; if ((flags & MULTILINE) != 0) gnuFlags |= RE.REG_MULTILINE; if ((flags & DOTALL) != 0) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Pattern.java/clean/core/src/classpath/java/java/util/regex/Pattern.java
throws DOMException;
throws DOMException;
public void setData(String data) throws DOMException;
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/ProcessingInstruction.java/buggy/core/src/classpath/org/org/w3c/dom/ProcessingInstruction.java
int len = dst.capacity() - dst.position();
int len = dst.remaining();
public SocketAddress receive (ByteBuffer dst) throws IOException { if (!isOpen()) throw new ClosedChannelException(); try { DatagramPacket packet; int len = dst.capacity() - dst.position(); if (dst.hasArray()) { packet = new DatagramPacket (dst....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/DatagramChannelImpl.java/clean/core/src/classpath/gnu/gnu/java/nio/DatagramChannelImpl.java
if (maximum != old) firePropertyChange("maximum", old, maximum);
public void setMaximum(int maximum) { sliderModel.setMaximum(maximum); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JSlider.java/buggy/core/src/classpath/javax/javax/swing/JSlider.java
if (minimum != old) firePropertyChange("minimum", old, minimum);
public void setMinimum(int minimum) { sliderModel.setMinimum(minimum); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JSlider.java/buggy/core/src/classpath/javax/javax/swing/JSlider.java
boolean oldPaintLabels = paintLabels;
public void setPaintLabels(boolean paint) { if (paint != paintLabels) { boolean oldPaintLabels = paintLabels; paintLabels = paint; firePropertyChange("paintLabels", oldPaintLabels, paintLabels); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JSlider.java/buggy/core/src/classpath/javax/javax/swing/JSlider.java
firePropertyChange("paintLabels", oldPaintLabels, paintLabels);
if (paint && majorTickSpacing > 0) labelTable = createStandardLabels(majorTickSpacing); firePropertyChange("paintLabels", !paint, paint);
public void setPaintLabels(boolean paint) { if (paint != paintLabels) { boolean oldPaintLabels = paintLabels; paintLabels = paint; firePropertyChange("paintLabels", oldPaintLabels, paintLabels); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JSlider.java/buggy/core/src/classpath/javax/javax/swing/JSlider.java
firePropertyChange("paintTrack", !paint, paint); }
public void setPaintTrack(boolean paint) { paintTrack = paint; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JSlider.java/buggy/core/src/classpath/javax/javax/swing/JSlider.java
fireStateChanged();
firePropertyChange("snapToTicks", !snap, snap);
public void setSnapToTicks(boolean snap) { if (snap != snapToTicks) { snapToTicks = snap; fireStateChanged(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JSlider.java/buggy/core/src/classpath/javax/javax/swing/JSlider.java
if (parameterTypes == null) { int cnt = vmMethod.getNoArguments(); ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { list.add(vmMethod.getArgumentType(i).asClass()); } parameterTypes = list; } return (Class[])parameterTypes.toArray(new Class[parameterTypes.size()]); }
if (parameterTypes == null) { int cnt = vmMethod.getNoArguments(); ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { list.add(vmMethod.getArgumentType(i).asClass()); } parameterTypes = list; } return (Class[])parameterTypes.toArray(new Class[parameterTypes.size()]); }
public Class[] getParameterTypes() { if (parameterTypes == null) { int cnt = vmMethod.getNoArguments(); ArrayList<Class> list = new ArrayList<Class>(cnt); for (int i = 0; i < cnt; i++) { list.add(vmMethod.getArgumentType(i).asClass()); } parameterTypes = list; } return (Class[])parameterTypes.toArray(n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba5684c8e20b5a25e0067d369b07af8854499835/Constructor.java/buggy/core/src/classpath/vm/java/lang/reflect/Constructor.java
public boolean intersects(Rectangle2D r)
public boolean intersects(double x, double y, double w, double h)
public boolean intersects(Rectangle2D r) { return intersects(r.getX(), r.getY(), r.getWidth(), r.getHeight()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Line2D.java/buggy/core/src/classpath/java/java/awt/geom/Line2D.java
return intersects(r.getX(), r.getY(), r.getWidth(), r.getHeight());
if (w <= 0 || h <= 0) return false; double x1 = getX1(); double y1 = getY1(); double x2 = getX2(); double y2 = getY2(); if (x1 >= x && x1 <= x + w && y1 >= y && y1 <= y + h) return true; if (x2 >= x && x2 <= x + w && y2 >= y && y2 <= y + h) return true; double x3 = x + w; double y3 = y + h; return (linesIntersect(x1...
public boolean intersects(Rectangle2D r) { return intersects(r.getX(), r.getY(), r.getWidth(), r.getHeight()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Line2D.java/buggy/core/src/classpath/java/java/awt/geom/Line2D.java
repaint();
public FrameWrapper(JInternalFrame iFrame) { this.frame = iFrame; this.setText(iFrame.getTitle()); this.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { try { JInternalFrame frame =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff793783089888aa53fdda97d69c19d8d63555c9/WindowBar.java/clean/gui/src/desktop/org/jnode/desktop/classic/WindowBar.java
repaint();
public FrameWrapper(JInternalFrame iFrame) { this.frame = iFrame; this.setText(iFrame.getTitle()); this.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { try { JInternalFrame frame =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff793783089888aa53fdda97d69c19d8d63555c9/WindowBar.java/clean/gui/src/desktop/org/jnode/desktop/classic/WindowBar.java
removeFrame(FrameWrapper.this.frame);
public void internalFrameClosed(InternalFrameEvent event) { remove(FrameWrapper.this); revalidate(); repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff793783089888aa53fdda97d69c19d8d63555c9/WindowBar.java/clean/gui/src/desktop/org/jnode/desktop/classic/WindowBar.java
removeFrame(FrameWrapper.this.frame);
public void internalFrameClosing(InternalFrameEvent event) { remove(FrameWrapper.this); revalidate(); repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff793783089888aa53fdda97d69c19d8d63555c9/WindowBar.java/clean/gui/src/desktop/org/jnode/desktop/classic/WindowBar.java
repaint();
public void internalFrameDeiconified(InternalFrameEvent event) { //To change body of implemented methods use File | Settings | File Templates. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff793783089888aa53fdda97d69c19d8d63555c9/WindowBar.java/clean/gui/src/desktop/org/jnode/desktop/classic/WindowBar.java
repaint();
public void internalFrameIconified(InternalFrameEvent event) { //To change body of implemented methods use File | Settings | File Templates. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff793783089888aa53fdda97d69c19d8d63555c9/WindowBar.java/clean/gui/src/desktop/org/jnode/desktop/classic/WindowBar.java
public boolean add(E o)
public void add(int index, E o)
public boolean add(E o) { add(size(), o); return true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/AbstractList.java/buggy/core/src/classpath/5.0/java/util/AbstractList.java
add(size(), o); return true;
throw new UnsupportedOperationException();
public boolean add(E o) { add(size(), o); return true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/AbstractList.java/buggy/core/src/classpath/5.0/java/util/AbstractList.java
final int LEFT_TO_RIGHT = Character.DIRECTIONALITY_LEFT_TO_RIGHT;
public static boolean requiresBidi(char[] text, int start, int end) { final int LEFT_TO_RIGHT = Character.DIRECTIONALITY_LEFT_TO_RIGHT; for (int i = start; i < end; i++) { char c = text[i]; if (Character.getDirectionality(c) != LEFT_TO_RIGHT) return true; } return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Bidi.java/buggy/core/src/classpath/java/java/text/Bidi.java
char c = text[i]; if (Character.getDirectionality(c) != LEFT_TO_RIGHT)
byte dir = Character.getDirectionality(text[i]); if (dir != Character.DIRECTIONALITY_LEFT_TO_RIGHT && dir != Character.DIRECTIONALITY_EUROPEAN_NUMBER && dir != Character.DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR && dir != Character.DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR && dir != Character.DIRECTIONALITY_ARABIC_NUMBE...
public static boolean requiresBidi(char[] text, int start, int end) { final int LEFT_TO_RIGHT = Character.DIRECTIONALITY_LEFT_TO_RIGHT; for (int i = start; i < end; i++) { char c = text[i]; if (Character.getDirectionality(c) != LEFT_TO_RIGHT) return true; } return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Bidi.java/buggy/core/src/classpath/java/java/text/Bidi.java
if (IS_PREFIX_DEFAULTING.equals(name))
if (IS_REPAIRING_NAMESPACES.equals(name))
public Object getProperty(String name) throws IllegalArgumentException { if (IS_PREFIX_DEFAULTING.equals(name)) return new Boolean(prefixDefaulting); throw new IllegalArgumentException(name); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/XMLOutputFactoryImpl.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLOutputFactoryImpl.java
if (IS_PREFIX_DEFAULTING.equals(name))
if (IS_REPAIRING_NAMESPACES.equals(name))
public boolean isPropertySupported(String name) { if (IS_PREFIX_DEFAULTING.equals(name)) return true; return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/XMLOutputFactoryImpl.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLOutputFactoryImpl.java
if (IS_PREFIX_DEFAULTING.equals(name))
if (IS_REPAIRING_NAMESPACES.equals(name))
public void setProperty(String name, Object value) throws IllegalArgumentException { if (IS_PREFIX_DEFAULTING.equals(name)) prefixDefaulting = ((Boolean) value).booleanValue(); else throw new IllegalArgumentException(name); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/89208158729137f73c8259a059fc5845c4da3e56/XMLOutputFactoryImpl.java/clean/core/src/classpath/gnu/gnu/xml/stream/XMLOutputFactoryImpl.java
log.setLevel(Level.INFO);
public Ext2FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); blockCache = new BlockCache(50,(float)0.75); inodeCache = new INodeCache(50,(float)0.75); //groupDescriptorLock = new Object(); //superblockLock = new Object(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2FileSystem.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
long iNodeTableBlock = groupDescriptors[0].getInodeTable(); INodeTable iNodeTable = new INodeTable(this, (int)iNodeTableBlock);
INodeTable iNodeTable = iNodeTables[0];
protected FSEntry buildRootEntry() throws IOException { //a free inode has been found: create the inode and write it into the inode table long iNodeTableBlock = groupDescriptors[0].getInodeTable(); //the first block of the inode table INodeTable iNodeTable = new INodeTable(this, (int)iNodeTableBlock); //byte[]...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2FileSystem.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
iNodeTables[i] = new INodeTable(this, (int)iNodeTableBlock);
public void create(int blockSize) throws FileSystemException { try{ //create the superblock superblock = new Superblock(); superblock.create(blockSize, this); //create the group descriptors groupCount = (int)Math.ceil((double)superblock.getBlocksCount() / (double)superblock.getBlocksPerGroup()); groupD...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2FileSystem.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
long iNodeTableBlock = groupDescriptors[preferredBlockBroup].getInodeTable(); INodeTable iNodeTable = new INodeTable(this, (int)iNodeTableBlock);
INodeTable iNodeTable = iNodeTables[preferredBlockBroup];
protected INode createINode(int preferredBlockBroup, int fileFormat, int accessRights, int uid, int gid) throws FileSystemException, IOException { if(preferredBlockBroup >= superblock.getBlocksCount()) throw new FileSystemException("Block group "+preferredBlockBroup+" does not exist"); int groupNr = preferr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2FileSystem.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
log.debug("Reading block "+nr+" (offset: "+nr*blockSize+") from disk");
public byte[] getBlock(long nr) throws IOException{ if(isClosed()) throw new IOException("FS closed (fs instance: "+this+")"); //log.debug("blockCache size: "+blockCache.size()); int blockSize = superblock.getBlockSize(); Block result; Integer key=new Integer((int)(nr)); synchronized(blockCache) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2FileSystem.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
else{ int group = (int) ((iNodeNr - 1) / superblock.getINodesPerGroup()); int index = (int) ((iNodeNr - 1) % superblock.getINodesPerGroup());
}
public INode getINode(int iNodeNr) throws IOException, FileSystemException{ if((iNodeNr<1)||(iNodeNr>superblock.getINodesCount())) throw new FileSystemException("INode number ("+iNodeNr+") out of range (0-"+superblock.getINodesCount()+")"); Integer key=new Integer(iNodeNr); //log.debug("iNodeCache size: "+in...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2FileSystem.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
long iNodeTableBlock = groupDescriptors[group].getInodeTable(); INodeTable iNodeTable = new INodeTable(this, (int)iNodeTableBlock); INode result = new INode(this, new INodeDescriptor(iNodeTable, iNodeNr, group, index)); result.read(iNodeTable.getInodeData(index));
int group = (int) ((iNodeNr - 1) / superblock.getINodesPerGroup()); int index = (int) ((iNodeNr - 1) % superblock.getINodesPerGroup()); INodeTable iNodeTable = iNodeTables[group]; INode result = new INode(this, new INodeDescriptor(iNodeTable, iNodeNr, group, index)); result.read(iNodeTable.getInodeData(index));
public INode getINode(int iNodeNr) throws IOException, FileSystemException{ if((iNodeNr<1)||(iNodeNr>superblock.getINodesCount())) throw new FileSystemException("INode number ("+iNodeNr+") out of range (0-"+superblock.getINodesCount()+")"); Integer key=new Integer(iNodeNr); //log.debug("iNodeCache size: "+in...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2FileSystem.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
public INode getINode(int iNodeNr) throws IOException, FileSystemException{ if((iNodeNr<1)||(iNodeNr>superblock.getINodesCount())) throw new FileSystemException("INode number ("+iNodeNr+") out of range (0-"+superblock.getINodesCount()+")"); Integer key=new Integer(iNodeNr); //log.debug("iNodeCache size: "+in...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2FileSystem.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
}
} else return (INode)inodeCache.get(key);
public INode getINode(int iNodeNr) throws IOException, FileSystemException{ if((iNodeNr<1)||(iNodeNr>superblock.getINodesCount())) throw new FileSystemException("INode number ("+iNodeNr+") out of range (0-"+superblock.getINodesCount()+")"); Integer key=new Integer(iNodeNr); //log.debug("iNodeCache size: "+in...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2FileSystem.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
iNodeTables[i] = new INodeTable(this, (int)groupDescriptors[i].getInodeTable());
public void read() throws FileSystemException { byte data[]; try { data = new byte[Superblock.SUPERBLOCK_LENGTH]; //skip the first 1024 bytes (bootsector) and read the superblock //TODO: the superblock should read itself getApi().read(1024, data, 0, Superblock.SUPERBLOCK_LENGTH); //superblock = new Superb...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045ac13c27477aac53d6ddbbbbac3b0493e8bffb/Ext2FileSystem.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
return new Ext2Directory( iNode );
return new Ext2Directory( iNode, fs );
public FSDirectory getDirectory() throws IOException { if(isDirectory()) return new Ext2Directory( iNode ); else throw new IOException("Not a directory"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/Ext2Entry.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2Entry.java
if ((name == null)
if ( (name == null)
protected AbstractPreferences(AbstractPreferences parent, String name) { if ((name == null) // name should be given || (name.length() > MAX_NAME_LENGTH) // 80 characters max || (parent == null && name.length() != 0) // root has no name || (parent != null && name.length() == 0) // all other nodes do || (name.i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
throw new IllegalArgumentException("Illegal name argument '" + name + "' (parent is " + parent == null ? "" : "not " + "null)");
throw new IllegalArgumentException("Illegal name argument '" + name + "' (parent is " + parent == null ? "" : "not " + "null)");
protected AbstractPreferences(AbstractPreferences parent, String name) { if ((name == null) // name should be given || (name.length() > MAX_NAME_LENGTH) // 80 characters max || (parent == null && name.length() != 0) // root has no name || (parent != null && name.length() == 0) // all other nodes do || (name.i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
synchronized (lock) {
synchronized(lock) {
public String[] childrenNames() throws BackingStoreException { synchronized (lock) { if (isRemoved()) throw new IllegalStateException("Node removed"); TreeSet childrenNames = new TreeSet(); // First get all cached node names childrenNames.addAll(childCache.keySet()); // Then add any others String names...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
synchronized (lock) {
synchronized(lock) {
public void clear() throws BackingStoreException { synchronized (lock) { if (isRemoved()) throw new IllegalStateException("Node Removed"); String[] keys = keys(); for (int i = 0; i < keys.length; i++) { removeSpi(keys[i]); } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
ByteArrayOutputStream bs = new ByteArrayOutputStream((s.length() / 4) * 3);
ByteArrayOutputStream bs = new ByteArrayOutputStream((s.length()/4)*3);
private static byte[] decode64(String s) { ByteArrayOutputStream bs = new ByteArrayOutputStream((s.length() / 4) * 3); char[] c = new char[s.length()]; s.getChars(0, s.length(), c, 0); // Convert from base64 chars int endchar = -1; for (int j = 0; j < c.length && endchar == -1; j++) { if (c[j] >= 'A' && c[j] <...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
for (int j = 0; j < c.length && endchar == -1; j++) {
for(int j = 0; j < c.length && endchar == -1; j++) {
private static byte[] decode64(String s) { ByteArrayOutputStream bs = new ByteArrayOutputStream((s.length() / 4) * 3); char[] c = new char[s.length()]; s.getChars(0, s.length(), c, 0); // Convert from base64 chars int endchar = -1; for (int j = 0; j < c.length && endchar == -1; j++) { if (c[j] >= 'A' && c[j] <...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
b0 += (c[i + 1] & 0x30) >> 4;
b0 += (c[i+1] & 0x30) >> 4;
private static byte[] decode64(String s) { ByteArrayOutputStream bs = new ByteArrayOutputStream((s.length() / 4) * 3); char[] c = new char[s.length()]; s.getChars(0, s.length(), c, 0); // Convert from base64 chars int endchar = -1; for (int j = 0; j < c.length && endchar == -1; j++) { if (c[j] >= 'A' && c[j] <...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
byte b1 = (byte) ((c[i + 1] & 0x0F) << 4); b1 += (byte) ((c[i + 2] & 0x3C) >> 2);
byte b1 = (byte) ((c[i+1] & 0x0F) << 4); b1 += (byte) ((c[i+2] & 0x3C) >> 2);
private static byte[] decode64(String s) { ByteArrayOutputStream bs = new ByteArrayOutputStream((s.length() / 4) * 3); char[] c = new char[s.length()]; s.getChars(0, s.length(), c, 0); // Convert from base64 chars int endchar = -1; for (int j = 0; j < c.length && endchar == -1; j++) { if (c[j] >= 'A' && c[j] <...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
byte b2 = (byte) ((c[i + 2] & 0x03) << 6); b2 += c[i + 3];
byte b2 = (byte) ((c[i+2] & 0x03) << 6); b2 += c[i+3];
private static byte[] decode64(String s) { ByteArrayOutputStream bs = new ByteArrayOutputStream((s.length() / 4) * 3); char[] c = new char[s.length()]; s.getChars(0, s.length(), c, 0); // Convert from base64 chars int endchar = -1; for (int j = 0; j < c.length && endchar == -1; j++) { if (c[j] >= 'A' && c[j] <...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
StringBuffer sb = new StringBuffer((b.length / 3) * 4);
StringBuffer sb = new StringBuffer((b.length/3)*4);
private static String encode64(byte[] b) { StringBuffer sb = new StringBuffer((b.length / 3) * 4); int i = 0; int remaining = b.length; char c[] = new char[4]; while (remaining > 0) { // Three input bytes are encoded as four chars (6 bits) as // 00000011 11112222 22333333 c[0] = (char) ((b[i] & 0xFC) >> 2);...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
c[1] += (char) ((b[i + 1] & 0xF0) >> 4); c[2] = (char) ((b[i + 1] & 0x0F) << 2);
c[1] += (char) ((b[i+1] & 0xF0) >> 4); c[2] = (char) ((b[i+1] & 0x0F) << 2);
private static String encode64(byte[] b) { StringBuffer sb = new StringBuffer((b.length / 3) * 4); int i = 0; int remaining = b.length; char c[] = new char[4]; while (remaining > 0) { // Three input bytes are encoded as four chars (6 bits) as // 00000011 11112222 22333333 c[0] = (char) ((b[i] & 0xFC) >> 2);...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
c[2] += (char) ((b[i + 2] & 0xC0) >> 6); c[3] = (char) (b[i + 2] & 0x3F);
c[2] += (char) ((b[i+2] & 0xC0) >> 6); c[3] = (char) (b[i+2] & 0x3F);
private static String encode64(byte[] b) { StringBuffer sb = new StringBuffer((b.length / 3) * 4); int i = 0; int remaining = b.length; char c[] = new char[4]; while (remaining > 0) { // Three input bytes are encoded as four chars (6 bits) as // 00000011 11112222 22333333 c[0] = (char) ((b[i] & 0xFC) >> 2);...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
for (int j = 0; j < 4; j++) {
for(int j = 0; j < 4; j++) {
private static String encode64(byte[] b) { StringBuffer sb = new StringBuffer((b.length / 3) * 4); int i = 0; int remaining = b.length; char c[] = new char[4]; while (remaining > 0) { // Three input bytes are encoded as four chars (6 bits) as // 00000011 11112222 22333333 c[0] = (char) ((b[i] & 0xFC) >> 2);...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
return (!isRemoved());
return(!isRemoved());
private boolean existsNode(String path) throws BackingStoreException { // Empty String "" indicates this node if (path.length() == 0) return (!isRemoved()); // Calculate child name and rest of path String childName; String childPath; int nextSlash = path.indexOf('/'); if (nextSlash == -1) { childName = path...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
childPath = path.substring(nextSlash + 1);
childPath = path.substring(nextSlash+1);
private boolean existsNode(String path) throws BackingStoreException { // Empty String "" indicates this node if (path.length() == 0) return (!isRemoved()); // Calculate child name and rest of path String childName; String childPath; int nextSlash = path.indexOf('/'); if (nextSlash == -1) { childName = path...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
child = (AbstractPreferences) childCache.get(childName);
child = (AbstractPreferences)childCache.get(childName);
private boolean existsNode(String path) throws BackingStoreException { // Empty String "" indicates this node if (path.length() == 0) return (!isRemoved()); // Calculate child name and rest of path String childName; String childPath; int nextSlash = path.indexOf('/'); if (nextSlash == -1) { childName = path...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
synchronized (child.lock) {
synchronized(child.lock) {
private boolean existsNode(String path) throws BackingStoreException { // Empty String "" indicates this node if (path.length() == 0) return (!isRemoved()); // Calculate child name and rest of path String childName; String childPath; int nextSlash = path.indexOf('/'); if (nextSlash == -1) { childName = path...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
public void exportNode(OutputStream os) throws BackingStoreException, IOException {
public void exportNode(OutputStream os) throws BackingStoreException, IOException {
public void exportNode(OutputStream os) throws BackingStoreException, IOException { NodeWriter nodeWriter = new NodeWriter(this, os); nodeWriter.writePrefs(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
public void exportSubtree(OutputStream os) throws BackingStoreException, IOException {
public void exportSubtree(OutputStream os) throws BackingStoreException, IOException {
public void exportSubtree(OutputStream os) throws BackingStoreException, IOException { NodeWriter nodeWriter = new NodeWriter(this, os); nodeWriter.writePrefsTree(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
synchronized (lock) {
synchronized(lock) {
private void flushNode(boolean sync) throws BackingStoreException { String[] keys = null; synchronized (lock) { if (sync) { syncSpi(); } else { flushSpi(); } keys = (String[]) childCache.keySet().toArray(); } if (keys != null) { for (int i = 0; i < keys.length; i++) { // Have to lock this node a...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
synchronized (this) {
synchronized(this) {
private void flushNode(boolean sync) throws BackingStoreException { String[] keys = null; synchronized (lock) { if (sync) { syncSpi(); } else { flushSpi(); } keys = (String[]) childCache.keySet().toArray(); } if (keys != null) { for (int i = 0; i < keys.length; i++) { // Have to lock this node a...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
synchronized (lock) {
synchronized(lock) {
public String get(String key, String defaultVal) { if (key.length() > MAX_KEY_LENGTH) throw new IllegalArgumentException(key); synchronized (lock) { if (isRemoved()) throw new IllegalStateException("Node removed"); String value; try { value = getSpi(key); } catch (Throwable t) { value = null; } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
protected AbstractPreferences getChild(String name) throws BackingStoreException { synchronized (lock) {
protected AbstractPreferences getChild(String name) throws BackingStoreException { synchronized(lock) {
protected AbstractPreferences getChild(String name) throws BackingStoreException { synchronized (lock) { // Get all the names (not yet in the cache) String[] names = childrenNamesSpi(); for (int i = 0; i < names.length; i++) if (name.equals(names[i])) return childSpi(name); // No child with that name f...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
for (int i = 0; i < names.length; i++)
for (int i=0; i < names.length; i++)
protected AbstractPreferences getChild(String name) throws BackingStoreException { synchronized (lock) { // Get all the names (not yet in the cache) String[] names = childrenNamesSpi(); for (int i = 0; i < names.length; i++) if (name.equals(names[i])) return childSpi(name); // No child with that name f...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
} catch (NumberFormatException nfe) { /* ignore */ }
} catch (NumberFormatException nfe) { /* ignore */ }
public double getDouble(String key, double defaultVal) { String value = get(key, null); if (value != null) { try { return Double.parseDouble(value); } catch (NumberFormatException nfe) { /* ignore */ } } return defaultVal; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
} catch (NumberFormatException nfe) { /* ignore */ }
} catch (NumberFormatException nfe) { /* ignore */ }
public float getFloat(String key, float defaultVal) { String value = get(key, null); if (value != null) { try { return Float.parseFloat(value); } catch (NumberFormatException nfe) { /* ignore */ } } return defaultVal; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
} catch (NumberFormatException nfe) { /* ignore */ }
} catch (NumberFormatException nfe) { /* ignore */ }
public int getInt(String key, int defaultVal) { String value = get(key, null); if (value != null) { try { return Integer.parseInt(value); } catch (NumberFormatException nfe) { /* ignore */ } } return defaultVal; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
} catch (NumberFormatException nfe) { /* ignore */ }
} catch (NumberFormatException nfe) { /* ignore */ }
public long getLong(String key, long defaultVal) { String value = get(key, null); if (value != null) { try { return Long.parseLong(value); } catch (NumberFormatException nfe) { /* ignore */ } } return defaultVal; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
childPath = path.substring(nextSlash + 1);
childPath = path.substring(nextSlash+1);
private Preferences getNode(String path) { // if mark is dom then goto end // Empty String "" indicates this node if (path.length() == 0) return this; // Calculate child name and rest of path String childName; String childPath; int nextSlash = path.indexOf('/'); if (nextSlash == -1) { childName = path; c...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
child = (AbstractPreferences) childCache.get(childName);
child = (AbstractPreferences)childCache.get(childName);
private Preferences getNode(String path) { // if mark is dom then goto end // Empty String "" indicates this node if (path.length() == 0) return this; // Calculate child name and rest of path String childName; String childPath; int nextSlash = path.indexOf('/'); if (nextSlash == -1) { childName = path; c...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
synchronized (child.lock) {
synchronized(child.lock) {
private Preferences getNode(String path) { // if mark is dom then goto end // Empty String "" indicates this node if (path.length() == 0) return this; // Calculate child name and rest of path String childName; String childPath; int nextSlash = path.indexOf('/'); if (nextSlash == -1) { childName = path; c...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
synchronized (lock) {
synchronized(lock) {
protected boolean isRemoved() { synchronized (lock) { return removed; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
abstract public boolean isUserNode();
public boolean isUserNode() { AbstractPreferences root = this; while (root.parent != null) root = root.parent; return root == Preferences.userRoot(); }
abstract public boolean isUserNode();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
synchronized (lock) {
synchronized(lock) {
public String[] keys() throws BackingStoreException { synchronized (lock) { if (isRemoved()) throw new IllegalStateException("Node removed"); return keysSpi(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
synchronized (lock) {
synchronized(lock) {
public Preferences node(String path) { synchronized (lock) { if (isRemoved()) throw new IllegalStateException("Node removed"); // Is it a relative path? if (!path.startsWith("/")) { // Check if it is a valid path if (path.indexOf("//") != -1 || path.endsWith("/")) throw new IllegalArgumentException...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
synchronized (lock) {
synchronized(lock) {
public boolean nodeExists(String path) throws BackingStoreException { synchronized (lock) { if (isRemoved() && path.length() != 0) throw new IllegalStateException("Node removed"); // Is it a relative path? if (!path.startsWith("/")) { // Check if it is a valid path if (path.indexOf("//") != -1 || path....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
synchronized (lock) {
synchronized(lock) {
public Preferences parent() { synchronized (lock) { if (isRemoved()) throw new IllegalStateException("Node removed"); return parent; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
private void purge() throws BackingStoreException {
private void purge() throws BackingStoreException {
private void purge() throws BackingStoreException { // Make sure all children have an AbstractPreferences node in cache String children[] = childrenNamesSpi(); for (int i = 0; i < children.length; i++) { if (childCache.get(children[i]) == null) childCache.put(children[i], childSpi(children[i])); } // purge a...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
synchronized (node) {
synchronized(node) {
private void purge() throws BackingStoreException { // Make sure all children have an AbstractPreferences node in cache String children[] = childrenNamesSpi(); for (int i = 0; i < children.length; i++) { if (childCache.get(children[i]) == null) childCache.put(children[i], childSpi(children[i])); } // purge a...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
if (key.length() > MAX_KEY_LENGTH || value.length() > MAX_VALUE_LENGTH) throw new IllegalArgumentException("key (" + key.length() + ")" + " or value (" + value.length() + ")" + " to large"); synchronized (lock) {
if (key.length() > MAX_KEY_LENGTH || value.length() > MAX_VALUE_LENGTH) throw new IllegalArgumentException("key (" + key.length() + ")" + " or value (" + value.length() + ")" + " to large"); synchronized(lock) {
public void put(String key, String value) { if (key.length() > MAX_KEY_LENGTH || value.length() > MAX_VALUE_LENGTH) throw new IllegalArgumentException("key (" + key.length() + ")" + " or value (" + value.length() + ")" + " to large"); synchronized (lock) { if (isRemoved()) throw new IllegalStateException("Nod...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
synchronized (lock) {
synchronized(lock) {
public void remove(String key) { if (key.length() > MAX_KEY_LENGTH) throw new IllegalArgumentException(key); synchronized (lock) { if (isRemoved()) throw new IllegalStateException("Node removed"); removeSpi(key); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
synchronized (parent) { synchronized (this) {
synchronized(parent) { synchronized(this) {
public void removeNode() throws BackingStoreException { // Check if it is a root node if (parent == null) throw new UnsupportedOperationException("Cannot remove root node"); synchronized (parent) { synchronized (this) { if (isRemoved()) throw new IllegalStateException("Node Removed"); purge(); } p...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
public void removePreferenceChangeListener(PreferenceChangeListener listener) {
public void removePreferenceChangeListener (PreferenceChangeListener listener) {
public void removePreferenceChangeListener(PreferenceChangeListener listener) { // XXX }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
return (isUserNode() ? "User" : "System") + " Preference Node: " + absolutePath(); }
return (isUserNode() ? "User":"System") + " Preference Node: " + absolutePath(); }
public String toString() { return (isUserNode() ? "User" : "System") + " Preference Node: " + absolutePath(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/clean/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
public abstract ShortBuffer put (short b);
public ShortBuffer put (ShortBuffer src) { if (src == this) throw new IllegalArgumentException (); checkForOverflow(src.remaining ()); if (src.remaining () > 0) { short[] toPut = new short [src.remaining ()]; src.get (toPut); put (toPut); } return this; }
public abstract ShortBuffer put (short b);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/ShortBuffer.java/buggy/core/src/classpath/java/java/nio/ShortBuffer.java
public void actionPerformed(ActionEvent event) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/DefaultEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/DefaultEditorKit.java
public void actionPerformed(ActionEvent event) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/DefaultEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/DefaultEditorKit.java
t.getDocument().insertString(t.getCaret().getDot(), event.getActionCommand(), null);
t.getDocument().insertString(t.getCaret().getDot(), event.getActionCommand(), null);
public void actionPerformed(ActionEvent event) { // first we filter the following events: // - control characters // - key events with the ALT modifier (FIXME: filter that too!) char c = event.getActionCommand().charAt(0); if (Character.isISOControl(c)) return; JTextComponent...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/DefaultEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/DefaultEditorKit.java
t.getDocument().getEndPosition().getOffset()));
t.getDocument().getEndPosition() .getOffset()));
public void actionPerformed(ActionEvent event) { // first we filter the following events: // - control characters // - key events with the ALT modifier (FIXME: filter that too!) char c = event.getActionCommand().charAt(0); if (Character.isISOControl(c)) return; JTextComponent...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/DefaultEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/DefaultEditorKit.java
public void actionPerformed(ActionEvent event) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/DefaultEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/DefaultEditorKit.java
public void actionPerformed(ActionEvent event) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/DefaultEditorKit.java/clean/core/src/classpath/javax/javax/swing/text/DefaultEditorKit.java
Class c = cl.loadClass(className);
Class<?> c = cl.loadClass(className);
private void addEntry(ConfigurationElement element){ final String className = element.getAttribute("class"); final String entryName = element.getAttribute("name"); if (className != null) { try { final ClassLoader cl = Thread.currentThread().getContextClassLoader(); Class c = cl.loadClass(className); Obj...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/982e1b1b1ed579528f868755d8a932bed0e03228/JIFSExtension.java/buggy/fs/src/fs/org/jnode/fs/jifs/def/JIFSExtension.java
{
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ValueOfNode(select.clone(stylesheet), disableOutputEscaping); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ValueOfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ValueOfNode.java
}
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ValueOfNode(select.clone(stylesheet), disableOutputEscaping); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ValueOfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ValueOfNode.java
{
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ValueOfNode(select.clone(stylesheet), disableOutputEscaping); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ValueOfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ValueOfNode.java
}
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ValueOfNode(select.clone(stylesheet), disableOutputEscaping); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ValueOfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ValueOfNode.java
/*if (stylesheet.debug) { System.err.println("value-of: " + select + " -> " + ret); }*/
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); /*if (stylesheet.debug) { System.err.println("value-of: " + select + " -> " + ret)...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ValueOfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ValueOfNode.java
{
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); /*if (stylesheet.debug) { System.err.println("value-of: " + select + " -> " + ret)...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ValueOfNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ValueOfNode.java