rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
if(isReadOnly()) throw new ReadOnlyFileSystemException("Filesystem is mounted read-only!"); Block block; Integer key=new Integer((int)nr); int blockSize=superblock.getBlockSize(); synchronized(blockCache) { if(blockCache.containsKey(key)) { block = (Block)blockCache.get(key); block.setData(data); if(forceWrite || S... | if (isReadOnly()) throw new ReadOnlyFileSystemException( "Filesystem is mounted read-only!"); | public void writeBlock(long nr, byte[] data, boolean forceWrite) throws IOException { if(isClosed()) throw new IOException("FS closed"); if(isReadOnly()) throw new ReadOnlyFileSystemException("Filesystem is mounted read-only!"); Block block; Integer key=new Integer((int)nr); int blockSize=superblock.get... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2FileSystem.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java |
log.debug("writing block "+nr+" to disk"); } else block.setDirty(true); } else { getApi().write(nr*blockSize, data, 0, blockSize); } } } | Block block; Integer key = new Integer((int) nr); int blockSize = superblock.getBlockSize(); synchronized (blockCache) { if (blockCache.containsKey(key)) { block = (Block) blockCache.get(key); block.setData(data); if (forceWrite || SYNC_WRITE) { getApi().write(nr * blockSize, data, 0, blockSize); block.setDirty(fa... | public void writeBlock(long nr, byte[] data, boolean forceWrite) throws IOException { if(isClosed()) throw new IOException("FS closed"); if(isReadOnly()) throw new ReadOnlyFileSystemException("Filesystem is mounted read-only!"); Block block; Integer key=new Integer((int)nr); int blockSize=superblock.get... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2FileSystem.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java |
ProcessingInstructionNode(TemplateNode children, TemplateNode next, String name) | ProcessingInstructionNode(String name) | ProcessingInstructionNode(TemplateNode children, TemplateNode next, String name) { super(children, next); this.name = name; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/ProcessingInstructionNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ProcessingInstructionNode.java |
super(children, next); | ProcessingInstructionNode(TemplateNode children, TemplateNode next, String name) { super(children, next); this.name = name; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/ProcessingInstructionNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ProcessingInstructionNode.java | |
return new ProcessingInstructionNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), name); | TemplateNode ret = new ProcessingInstructionNode(name); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; | TemplateNode clone(Stylesheet stylesheet) { return new ProcessingInstructionNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/ProcessingInstructionNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ProcessingInstructionNode.java |
throws NotImplementedException | protected void AdjustForGravity (GridBagConstraints gbc, Rectangle rect) { // FIXME throw new Error ("Not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/GridBagLayout.java/clean/core/src/classpath/java/java/awt/GridBagLayout.java | |
throw new AssertionError("The parent of a View must not be null."); | return null; else | public Container getContainer() { View parent = getParent(); if (parent == null) throw new AssertionError("The parent of a View must not be null."); return parent.getContainer(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/View.java/clean/core/src/classpath/javax/javax/swing/text/View.java |
final Item res; | final DoubleWordItem res; | protected final Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register lsb = pool.request(JvmType.INT); final Register msb = pool.request(JvmType.INT); os.writeMOV(INTSIZ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/DoubleWordItem.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/DoubleWordItem.java |
final X86RegisterPool pool = ec.getPool(); final Register lsb = pool.request(JvmType.INT); final Register msb = pool.request(JvmType.INT); | res = L1AHelper.requestDoubleWordRegisters(ec, getType()); final Register lsb = res.getLsbRegister(); final Register msb = res.getMsbRegister(); | protected final Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register lsb = pool.request(JvmType.INT); final Register msb = pool.request(JvmType.INT); os.writeMOV(INTSIZ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/DoubleWordItem.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/DoubleWordItem.java |
res = createReg(getType(), lsb, msb); pool.transferOwnerTo(lsb, res); pool.transferOwnerTo(msb, res); | protected final Item clone(EmitterContext ec) { final Item res; final AbstractX86Stream os = ec.getStream(); switch (getKind()) { case Kind.REGISTER: final X86RegisterPool pool = ec.getPool(); final Register lsb = pool.request(JvmType.INT); final Register msb = pool.request(JvmType.INT); os.writeMOV(INTSIZ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7f3f443c80552e30cb144c1a1ce760d89fa35f2b/DoubleWordItem.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/DoubleWordItem.java | |
final ArrayList list = new ArrayList(cnt); | final ArrayList<Class> list = new ArrayList<Class>(cnt); | public Class[] getExceptionTypes() { if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList list = new ArrayList(cnt); for (int i = 0; i < cnt; i++) { try { list.add(exceptions.getException(i).getRe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff85486c4bc88d3b82d27fe4f951dc7bafeafa6f/Method.java/clean/core/src/classpath/vm/java/lang/reflect/Method.java |
ArrayList list = new ArrayList(cnt); | ArrayList<Class> list = new ArrayList<Class>(cnt); | public Class[] getParameterTypes() { if (parameterTypes == null) { int cnt = vmMethod.getNoArguments(); ArrayList list = new ArrayList(cnt); for (int i = 0; i < cnt; i++) { list.add(vmMethod.getArgumentType(i).asClass()); } parameterTypes = list; } return (Class[])parameterTypes.toArray(new Class[param... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff85486c4bc88d3b82d27fe4f951dc7bafeafa6f/Method.java/clean/core/src/classpath/vm/java/lang/reflect/Method.java |
return getDeclaringClass().getName().hashCode() ^ getName().hashCode(); | final Class<?> declClass = getDeclaringClass(); return declClass.getName().hashCode() ^ getName().hashCode(); | public int hashCode() { return getDeclaringClass().getName().hashCode() ^ getName().hashCode(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff85486c4bc88d3b82d27fe4f951dc7bafeafa6f/Method.java/clean/core/src/classpath/vm/java/lang/reflect/Method.java |
sb.append(getReturnType().getName()).append(' '); sb.append(getDeclaringClass().getName()).append('.'); | final Class<?> retType = getReturnType(); final Class<?> declClass = getDeclaringClass(); sb.append(retType.getName()).append(' '); sb.append(declClass.getName()).append('.'); | public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); sb.append(getReturnType().getName()).append(' '); sb.append(getDeclaringClass().getName()).append('.'); sb.append(getName()).append('('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff85486c4bc88d3b82d27fe4f951dc7bafeafa6f/Method.java/clean/core/src/classpath/vm/java/lang/reflect/Method.java |
Class[] c = getParameterTypes(); | Class<?>[] c = getParameterTypes(); | public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); sb.append(getReturnType().getName()).append(' '); sb.append(getDeclaringClass().getName()).append('.'); sb.append(getName()).append('('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff85486c4bc88d3b82d27fe4f951dc7bafeafa6f/Method.java/clean/core/src/classpath/vm/java/lang/reflect/Method.java |
AccessibleJMenuItem(JMenuItem component) { super(component); } | AccessibleJMenuItem(JMenuItem component) { super(component); } | AccessibleJMenuItem(JMenuItem component) { super(component); // TODO } // AccessibleJMenuItem() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public AccessibleRole getAccessibleRole() { return AccessibleRole.MENU_ITEM; } | public AccessibleRole getAccessibleRole() { return AccessibleRole.MENU_ITEM; } | public AccessibleRole getAccessibleRole() { return AccessibleRole.MENU_ITEM; } // getAccessibleRole() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public void stateChanged(ChangeEvent event) { } | public void stateChanged(ChangeEvent event) { } | public void stateChanged(ChangeEvent event) { // TODO } // stateChanged() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public JMenuItem() { } | public JMenuItem() { this(null, null); } | public JMenuItem() { // TODO } // JMenuItem() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public void addMenuDragMouseListener(MenuDragMouseListener listener) { } | public void addMenuDragMouseListener(MenuDragMouseListener listener) { listenerList.add(MenuDragMouseListener.class, listener); } | public void addMenuDragMouseListener(MenuDragMouseListener listener) { // TODO } // addMenuDragMouseListener() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public void addMenuKeyListener(MenuKeyListener listener) { } | public void addMenuKeyListener(MenuKeyListener listener) { listenerList.add(MenuKeyListener.class, listener); } | public void addMenuKeyListener(MenuKeyListener listener) { // TODO } // addMenuKeyListener() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
protected void configurePropertiesFromAction(Action action) { } | protected void configurePropertiesFromAction(Action action) { super.configurePropertiesFromAction(action); if (action == null) setAccelerator(null); else setAccelerator((KeyStroke) (action.getValue(Action.ACCELERATOR_KEY))); } | protected void configurePropertiesFromAction(Action action) { // TODO } // configurePropertiesFromAction() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
protected PropertyChangeListener createActionPropertyChangeListener(Action action) { return null; } | protected PropertyChangeListener createActionPropertyChangeListener(Action action) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { Action act = (Action) (e.getSource()); configurePropertiesFromAction(act); } }; } | protected PropertyChangeListener createActionPropertyChangeListener(Action action) { return null; // TODO } // createActionPropertyChangeListener() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
protected void fireMenuDragMouseDragged(MenuDragMouseEvent event) { } | protected void fireMenuDragMouseDragged(MenuDragMouseEvent event) { EventListener[] ll = listenerList.getListeners(MenuDragMouseListener.class); for (int i = 0; i < ll.length; i++) ((MenuDragMouseListener) ll[i]).menuDragMouseDragged(event); } | protected void fireMenuDragMouseDragged(MenuDragMouseEvent event) { // TODO } // fireMenuDragMouseDragged() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
protected void fireMenuDragMouseEntered(MenuDragMouseEvent event) { } | protected void fireMenuDragMouseEntered(MenuDragMouseEvent event) { EventListener[] ll = listenerList.getListeners(MenuDragMouseListener.class); for (int i = 0; i < ll.length; i++) ((MenuDragMouseListener) ll[i]).menuDragMouseEntered(event); } | protected void fireMenuDragMouseEntered(MenuDragMouseEvent event) { // TODO } // fireMenuDragMouseEntered() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
protected void fireMenuDragMouseExited(MenuDragMouseEvent event) { } | protected void fireMenuDragMouseExited(MenuDragMouseEvent event) { EventListener[] ll = listenerList.getListeners(MenuDragMouseListener.class); for (int i = 0; i < ll.length; i++) ((MenuDragMouseListener) ll[i]).menuDragMouseExited(event); } | protected void fireMenuDragMouseExited(MenuDragMouseEvent event) { // TODO } // fireMenuDragMouseExited() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
protected void fireMenuDragMouseReleased(MenuDragMouseEvent event) { } | protected void fireMenuDragMouseReleased(MenuDragMouseEvent event) { EventListener[] ll = listenerList.getListeners(MenuDragMouseListener.class); for (int i = 0; i < ll.length; i++) ((MenuDragMouseListener) ll[i]).menuDragMouseReleased(event); } | protected void fireMenuDragMouseReleased(MenuDragMouseEvent event) { // TODO } // fireMenuDragMouseReleased() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
protected void fireMenuKeyPressed(MenuKeyEvent event) { | protected void fireMenuKeyPressed(MenuKeyEvent event) { | protected void fireMenuKeyPressed(MenuKeyEvent event) { // TODO } // fireMenuKeyPressed() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
} | } | protected void fireMenuKeyPressed(MenuKeyEvent event) { // TODO } // fireMenuKeyPressed() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
protected void fireMenuKeyReleased(MenuKeyEvent event) { | protected void fireMenuKeyReleased(MenuKeyEvent event) { | protected void fireMenuKeyReleased(MenuKeyEvent event) { // TODO } // fireMenuKeyReleased() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
} | } | protected void fireMenuKeyReleased(MenuKeyEvent event) { // TODO } // fireMenuKeyReleased() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
protected void fireMenuKeyTyped(MenuKeyEvent event) { | protected void fireMenuKeyTyped(MenuKeyEvent event) { | protected void fireMenuKeyTyped(MenuKeyEvent event) { // TODO } // fireMenuKeyTyped() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
} | } | protected void fireMenuKeyTyped(MenuKeyEvent event) { // TODO } // fireMenuKeyTyped() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public KeyStroke getAccelerator() { return null; } | public KeyStroke getAccelerator() { return accelerator; } | public KeyStroke getAccelerator() { return null; // TODO } // getAccelerator() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJMenuItem(this); } // if return accessibleContext; } // getAccessibleContext() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
} | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJMenuItem(this); } // if return accessibleContext; } // getAccessibleContext() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java | |
} | } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJMenuItem(this); } // if return accessibleContext; } // getAccessibleContext() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public Component getComponent() { return null; } | public Component getComponent() { return this; } | public Component getComponent() { return null; // TODO } // getComponent() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public MenuElement[] getSubElements() { return null; } | public MenuElement[] getSubElements() { return new MenuElement[0]; } | public MenuElement[] getSubElements() { return null; // TODO } // getSubElements() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public String getUIClassID() { | public String getUIClassID() { | public String getUIClassID() { return uiClassID; } // getUIClassID() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
} | } | public String getUIClassID() { return uiClassID; } // getUIClassID() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
protected void init(String text, Icon icon) { | protected void init(String text, Icon icon) { | protected void init(String text, Icon icon) { // TODO } // init() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
} | } | protected void init(String text, Icon icon) { // TODO } // init() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public boolean isArmed() { return false; } | public boolean isArmed() { return getModel().isArmed(); } | public boolean isArmed() { return false; // TODO } // isArmed() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public void menuSelectionChanged(boolean changed) { } | public void menuSelectionChanged(boolean changed) { if (changed) model.setArmed(true); } | public void menuSelectionChanged(boolean changed) { // TODO } // menuSelectionChanged() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
protected String paramString() { return null; } | protected String paramString() { return "JMenuItem"; } | protected String paramString() { return null; // TODO } // paramString() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
MenuSelectionManager manager) { | MenuSelectionManager manager) { | public void processKeyEvent(KeyEvent event, MenuElement[] path, MenuSelectionManager manager) { // TODO } // processKeyEvent() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
} | } | public void processKeyEvent(KeyEvent event, MenuElement[] path, MenuSelectionManager manager) { // TODO } // processKeyEvent() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public void processMenuDragMouseEvent(MenuDragMouseEvent event) { } | public void processMenuDragMouseEvent(MenuDragMouseEvent event) { switch (event.getID()) { case MouseEvent.MOUSE_ENTERED: fireMenuDragMouseEntered(event); break; case MouseEvent.MOUSE_EXITED: fireMenuDragMouseExited(event); break; case MouseEvent.MOUSE_DRAGGED: fireMenuDragMouseDragged(event); break; case MouseEvent.MO... | public void processMenuDragMouseEvent(MenuDragMouseEvent event) { // TODO } // processMenuDragMouseEvent() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public void processMenuKeyEvent(MenuKeyEvent event) { | public void processMenuKeyEvent(MenuKeyEvent event) { | public void processMenuKeyEvent(MenuKeyEvent event) { // TODO } // processMenuKeyEvent() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
} | } | public void processMenuKeyEvent(MenuKeyEvent event) { // TODO } // processMenuKeyEvent() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
MenuSelectionManager manager) { } | MenuSelectionManager manager) { switch (event.getID()) { case MouseEvent.MOUSE_CLICKED: doClick(); break; case MouseEvent.MOUSE_ENTERED: if (event.getSource() instanceof JMenuItem) { JMenuItem item = (JMenuItem) event.getSource(); ButtonModel model = item.getModel(); if (item.isRolloverEnabled()) model.setRollover(tru... | public void processMouseEvent(MouseEvent event, MenuElement[] path, MenuSelectionManager manager) { // TODO } // processMouseEvent() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
throws IOException, ClassNotFoundException { | throws IOException, ClassNotFoundException { | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { // TODO } // readObject() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
} | } | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { // TODO } // readObject() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public void removeMenuDragMouseListener(MenuDragMouseListener listener) { } | public void removeMenuDragMouseListener(MenuDragMouseListener listener) { listenerList.remove(MenuDragMouseListener.class, listener); } | public void removeMenuDragMouseListener(MenuDragMouseListener listener) { // TODO } // removeMenuDragMouseListener() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public void removeMenuKeyListener(MenuKeyListener listener) { } | public void removeMenuKeyListener(MenuKeyListener listener) { listenerList.remove(MenuKeyListener.class, listener); } | public void removeMenuKeyListener(MenuKeyListener listener) { // TODO } // removeMenuKeyListener() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public void setAccelerator(KeyStroke keystroke) { } | public void setAccelerator(KeyStroke keystroke) { this.accelerator = keystroke; } | public void setAccelerator(KeyStroke keystroke) { // TODO } // setAccelerator() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public void setArmed(boolean armed) { } | public void setArmed(boolean armed) { getModel().setArmed(armed); } | public void setArmed(boolean armed) { // TODO } // setArmed() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public void setEnabled(boolean enabled) { } | public void setEnabled(boolean enabled) { setEnabled(enabled); } | public void setEnabled(boolean enabled) { // TODO } // setEnabled() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public void setUI(MenuItemUI ui) { | public void setUI(MenuItemUI ui) { | public void setUI(MenuItemUI ui) { super.setUI(ui); // TODO } // setUI() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
} | } | public void setUI(MenuItemUI ui) { super.setUI(ui); // TODO } // setUI() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
public void updateUI() { setUI((MenuItemUI) UIManager.get(this)); | public void updateUI() { MenuItemUI mi = ((MenuItemUI) UIManager.getUI(this)); setUI(mi); | public void updateUI() { setUI((MenuItemUI) UIManager.get(this)); invalidate(); } // updateUI() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
} | } | public void updateUI() { setUI((MenuItemUI) UIManager.get(this)); invalidate(); } // updateUI() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
private void writeObject(ObjectOutputStream stream) throws IOException { | private void writeObject(ObjectOutputStream stream) throws IOException { | private void writeObject(ObjectOutputStream stream) throws IOException { // TODO } // writeObject() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
} | } | private void writeObject(ObjectOutputStream stream) throws IOException { // TODO } // writeObject() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JMenuItem.java/clean/core/src/classpath/javax/javax/swing/JMenuItem.java |
{ ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkShadow(); Color shadow = MetalLookAndFeel.getControlShadow(); Color light = MetalLookAndFeel.getControlHighlight(); Color middle = MetalLookAndFeel.getControl(); i... | paintDefaultButtonBorder(c, g, x, y, w, h); | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { // With the OceanTheme the button border is painted entirely different. // However, I couldn't figure out how this is determined besides checking // for instanceof OceanTheme. The button paint... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/MetalBorders.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalBorders.java |
} | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { // With the OceanTheme the button border is painted entirely different. // However, I couldn't figure out how this is determined besides checking // for instanceof OceanTheme. The button paint... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/MetalBorders.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalBorders.java | |
if (bmodel.isPressed()) | if (bmodel.isPressed() || ((c instanceof JButton) && ((JButton) c).isDefaultButton())) | private void paintOceanButtonBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkSha... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/MetalBorders.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalBorders.java |
g.drawLine(x + 1, y + 1, x + w - 2, y + 1); g.drawLine(x + 1, y + 1, x + 1, y + h - 2); | g.setColor(darkShadow); g.drawRect(x, y, w - 1, h - 1); g.drawRect(x + 1, y + 1, w - 3, h - 3); | private void paintOceanButtonBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkSha... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/MetalBorders.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalBorders.java |
if (!sLoaders.contains(cl)) | if (cl!=null && !sLoaders.contains(cl)) | public CombinedClassLoader(Collection a_loaders) { ArrayList sLoaders = new ArrayList(a_loaders.size()); Iterator iter = a_loaders.iterator(); Object cl; while (iter.hasNext()) { cl = iter.next(); if (!sLoaders.contains(cl)) sLoaders.add(cl); } loaders = new Cl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/CombinedClassLoader.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/CombinedClassLoader.java |
super(iNode.getExt2FileSystem()); this.iNode=iNode; log.setLevel(Level.DEBUG); } | super(iNode.getExt2FileSystem()); this.iNode = iNode; log.setLevel(Level.DEBUG); } | public Ext2File(INode iNode) { super(iNode.getExt2FileSystem()); this.iNode=iNode; log.setLevel(Level.DEBUG); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2File.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2File.java |
log.debug("Ext2File.flush()"); iNode.update(); iNode.getExt2FileSystem().updateFS(); } | log.debug("Ext2File.flush()"); iNode.update(); iNode.getExt2FileSystem().updateFS(); } | public void flush() throws IOException { log.debug("Ext2File.flush()"); iNode.update(); //update the group descriptors and superblock: needed if blocks have been //allocated or deallocated iNode.getExt2FileSystem().updateFS(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2File.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2File.java |
return iNode.getSize(); } | return iNode.getSize(); } | public long getLength() { //log.debug("getLength(): "+iNode.getSize()); return iNode.getSize(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2File.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2File.java |
return iNode.getSizeInBlocks(); } | return iNode.getSizeInBlocks(); } | private long getLengthInBlocks() { return iNode.getSizeInBlocks(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2File.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2File.java |
public void read(long fileOffset, byte[] dest, int off, int len) throws IOException { synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { rereadInode(); iNode.incLocked(); } synchronized(iNode) { try{ if(len+off>getLength()) throw new IOException("Can't read past the file!"); long blockSize = ... | public void read(long fileOffset, byte[] dest, int off, int len) throws IOException { synchronized (((Ext2FileSystem) getFileSystem()).getInodeCache()) { rereadInode(); iNode.incLocked(); } synchronized (iNode) { try { if (len + off > getLength()) throw new IOException("Can't read past the file!"); l... | public void read(long fileOffset, byte[] dest, int off, int len) throws IOException { //synchronize to the inode cache to make sure that the inode does not get //flushed between reading it and locking it synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { //reread the inode before synchronizing to i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2File.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2File.java |
private void rereadInode() throws IOException{ int iNodeNr = iNode.getINodeNr(); try{ iNode = ((Ext2FileSystem)getFileSystem()).getINode(iNodeNr); }catch(FileSystemException fse) { throw new IOException(fse); } } | private void rereadInode() throws IOException { int iNodeNr = iNode.getINodeNr(); try { iNode = ((Ext2FileSystem) getFileSystem()).getINode(iNodeNr); } catch (FileSystemException ex) { final IOException ioe = new IOException(); ioe.initCause(ex); throw ioe; } } | private void rereadInode() throws IOException{ int iNodeNr = iNode.getINodeNr(); try{ iNode = ((Ext2FileSystem)getFileSystem()).getINode(iNodeNr); }catch(FileSystemException fse) { throw new IOException(fse); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2File.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2File.java |
if(!canWrite()) throw new ReadOnlyFileSystemException("FileSystem or File is readonly"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { rereadInode(); iNode.incLocked(); } synchronized(iNode) { try{ if(length<getLength()) { lon... | if (!canWrite()) throw new ReadOnlyFileSystemException( "FileSystem or File is readonly"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); synchronized (((Ext2FileSystem) getFileSystem()).getInodeCache()) { rereadInode(); iNode.incLocked(); } synchronized (iNode) { try { if (length < ge... | public void setLength(long length) throws IOException { if(!canWrite()) throw new ReadOnlyFileSystemException("FileSystem or File is readonly"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); //synchronize to the inode cache to make sure that the inode does not get //flushed between reading it and... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2File.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2File.java |
public void write(long fileOffset, byte[] src, int off, int len) throws IOException { synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { rereadInode(); iNode.incLocked(); } try{ synchronized(iNode) { if(fileOffset > getLength()) throw new IOException("Can't write beyond the end of the file! (... | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { synchronized (((Ext2FileSystem) getFileSystem()).getInodeCache()) { rereadInode(); iNode.incLocked(); } try { synchronized (iNode) { if (fileOffset > getLength()) throw new IOException( "Can't write beyond the end o... | public void write(long fileOffset, byte[] src, int off, int len) throws IOException { //synchronize to the inode cache to make sure that the inode does not get //flushed between reading it and locking it synchronized(((Ext2FileSystem)getFileSystem()).getInodeCache()) { //reread the inode before synchronizing to i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/Ext2File.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2File.java |
Class cls = obj.getClass(); String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); try { Class scls = cl.loadClass(classname + "_Stub"); Class[] stubprototype = new Class[] { RemoteRef.class }; Constructor con = scls.getConstructor(stubprototype); return (Remote)(con.newInstance(new Object[]{obj})); ... | Remote stub = (Remote)stubs.get(obj); if (stub == null) | public static Remote toStub(Remote obj) throws NoSuchObjectException { Class cls = obj.getClass(); String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); try { Class scls = cl.loadClass(classname + "_Stub"); // JDK 1.2 stubs Class[] stubprototype = new Class[] { RemoteRef.class }... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/RemoteObject.java/buggy/core/src/classpath/java/java/rmi/server/RemoteObject.java |
return stub; | public static Remote toStub(Remote obj) throws NoSuchObjectException { Class cls = obj.getClass(); String classname = cls.getName(); ClassLoader cl = cls.getClassLoader(); try { Class scls = cl.loadClass(classname + "_Stub"); // JDK 1.2 stubs Class[] stubprototype = new Class[] { RemoteRef.class }... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/RemoteObject.java/buggy/core/src/classpath/java/java/rmi/server/RemoteObject.java | |
poa.checkDiscarding(); | public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { // Local request must be intercepted both by server and request // interceptors. boolean s_intercept = false; ServerRequestInterceptorOperations s_interceptor = null; gnuServerRequestInfo s_info = null; boolean c_intercept ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b53ee23d2db4d673b2dea5fee94b6bff00d241bf/LocalRequest.java/buggy/core/src/classpath/gnu/gnu/CORBA/Poa/LocalRequest.java | |
String holder = toHelperName(idl); Class holderClass = Class.forName(holder); | String helper = toHelperName(idl); Class helperClass = Class.forName(helper); | public static UserException readUserException(String idl, InputStream input) { try { String holder = toHelperName(idl); Class holderClass = Class.forName(holder); Method read = holderClass.getMethod("read", new Class[] ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/ObjectCreator.java/buggy/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java |
holderClass.getMethod("read", | helperClass.getMethod("read", | public static UserException readUserException(String idl, InputStream input) { try { String holder = toHelperName(idl); Class holderClass = Class.forName(holder); Method read = holderClass.getMethod("read", new Class[] ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/ObjectCreator.java/buggy/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java |
int year = defaultCentury + calendar.get(Calendar.YEAR); calendar.set(Calendar.YEAR, year); | int year = calendar.get(Calendar.YEAR); | public Date parse (String dateStr, ParsePosition pos) { int fmt_index = 0; int fmt_max = pattern.length(); calendar.clear(); boolean saw_timezone = false; int quote_start = -1; boolean is2DigitYear = false; try { for (; fmt_index < fmt_max; ++fmt_index) { char ch = pattern.charAt(fm... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
{ | public Expr clone(Object context) { Stylesheet s = stylesheet; if (context instanceof Stylesheet) { s = (Stylesheet) context; } DocumentFunction f = new DocumentFunction(s, base); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len; i++) { ar... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/DocumentFunction.java/buggy/core/src/classpath/gnu/gnu/xml/transform/DocumentFunction.java | |
} | public Expr clone(Object context) { Stylesheet s = stylesheet; if (context instanceof Stylesheet) { s = (Stylesheet) context; } DocumentFunction f = new DocumentFunction(s, base); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len; i++) { ar... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/DocumentFunction.java/buggy/core/src/classpath/gnu/gnu/xml/transform/DocumentFunction.java | |
{ | public Expr clone(Object context) { Stylesheet s = stylesheet; if (context instanceof Stylesheet) { s = (Stylesheet) context; } DocumentFunction f = new DocumentFunction(s, base); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len; i++) { ar... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/DocumentFunction.java/buggy/core/src/classpath/gnu/gnu/xml/transform/DocumentFunction.java | |
} | public Expr clone(Object context) { Stylesheet s = stylesheet; if (context instanceof Stylesheet) { s = (Stylesheet) context; } DocumentFunction f = new DocumentFunction(s, base); int len = args.size(); List args2 = new ArrayList(len); for (int i = 0; i < len; i++) { ar... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/DocumentFunction.java/buggy/core/src/classpath/gnu/gnu/xml/transform/DocumentFunction.java | |
{ | Collection document(String uri, String base) { if ("".equals(uri) || uri == null) { uri = this.base.getBaseURI(); } // Get fragment Expr fragment = null; int hi = uri.indexOf('#'); if (hi != -1) { String f = uri.substring(hi + 1); uri = uri.substring(0, hi); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/DocumentFunction.java/buggy/core/src/classpath/gnu/gnu/xml/transform/DocumentFunction.java | |
} | Collection document(String uri, String base) { if ("".equals(uri) || uri == null) { uri = this.base.getBaseURI(); } // Get fragment Expr fragment = null; int hi = uri.indexOf('#'); if (hi != -1) { String f = uri.substring(hi + 1); uri = uri.substring(0, hi); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/DocumentFunction.java/buggy/core/src/classpath/gnu/gnu/xml/transform/DocumentFunction.java | |
{ | Collection document(String uri, String base) { if ("".equals(uri) || uri == null) { uri = this.base.getBaseURI(); } // Get fragment Expr fragment = null; int hi = uri.indexOf('#'); if (hi != -1) { String f = uri.substring(hi + 1); uri = uri.substring(0, hi); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/DocumentFunction.java/buggy/core/src/classpath/gnu/gnu/xml/transform/DocumentFunction.java | |
} | Collection document(String uri, String base) { if ("".equals(uri) || uri == null) { uri = this.base.getBaseURI(); } // Get fragment Expr fragment = null; int hi = uri.indexOf('#'); if (hi != -1) { String f = uri.substring(hi + 1); uri = uri.substring(0, hi); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/DocumentFunction.java/buggy/core/src/classpath/gnu/gnu/xml/transform/DocumentFunction.java | |
{ | Collection document(String uri, String base) { if ("".equals(uri) || uri == null) { uri = this.base.getBaseURI(); } // Get fragment Expr fragment = null; int hi = uri.indexOf('#'); if (hi != -1) { String f = uri.substring(hi + 1); uri = uri.substring(0, hi); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/DocumentFunction.java/buggy/core/src/classpath/gnu/gnu/xml/transform/DocumentFunction.java | |
} | Collection document(String uri, String base) { if ("".equals(uri) || uri == null) { uri = this.base.getBaseURI(); } // Get fragment Expr fragment = null; int hi = uri.indexOf('#'); if (hi != -1) { String f = uri.substring(hi + 1); uri = uri.substring(0, hi); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/DocumentFunction.java/buggy/core/src/classpath/gnu/gnu/xml/transform/DocumentFunction.java | |
{ | public boolean references(QName var) { for (Iterator i = args.iterator(); i.hasNext(); ) { if (((Expr) i.next()).references(var)) { return true; } } return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/DocumentFunction.java/buggy/core/src/classpath/gnu/gnu/xml/transform/DocumentFunction.java | |
} | public boolean references(QName var) { for (Iterator i = args.iterator(); i.hasNext(); ) { if (((Expr) i.next()).references(var)) { return true; } } return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/DocumentFunction.java/buggy/core/src/classpath/gnu/gnu/xml/transform/DocumentFunction.java | |
else getClientProperties().remove(key); | public final void putClientProperty(Object key, Object value) { getClientProperties().put(key, value); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java | |
new UIDefaults.ProxyLazyValue ("javax.swing.plaf.metal.MetalCheckBoxIcon"), "CheckBox.checkIcon", | protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", new ColorUIResource(getControl()), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", new ColorUIResource(getControlDark... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/03ccc48ad99f370100d28d05282f5ecf9aba8ad6/MetalLookAndFeel.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalLookAndFeel.java | |
JarURLConnection(URL url) throws MalformedURLException { | protected JarURLConnection(URL url) throws MalformedURLException { | JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside String url_string = url.toExternalForm(); if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string); if (url_string.inde... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/JarURLConnection.java/clean/core/src/classpath/java/java/net/JarURLConnection.java |
String url_string = url.toExternalForm(); | if (! url.getProtocol().equals("jar")) throw new MalformedURLException(url + ": Not jar protocol."); | JarURLConnection(URL url) throws MalformedURLException{ super(url); // Now, strip off the "jar:" and everything from the "!/" to the end // to get the "real" URL inside String url_string = url.toExternalForm(); if (!url_string.startsWith("jar:")) throw new MalformedURLException(url_string); if (url_string.inde... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/JarURLConnection.java/clean/core/src/classpath/java/java/net/JarURLConnection.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.