rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
/* Set up some variables */ doInput = true; | public Connection(URL url) { super (url); permission = new FilePermission(getURL().getFile(), DEFAULT_PERMISSION); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/968d0647be67a27f048ec02d6b7cd3d6e432fc2c/Connection.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/file/Connection.java | |
throw new BAD_OPERATION(method, 0, CompletionStatus.COMPLETED_MAYBE); | throw new BAD_OPERATION(method, Minor.Method, CompletionStatus.COMPLETED_MAYBE); | public final OutputStream _invoke(String method, InputStream input, ResponseHandler rh ) { OutputStream output = null; if (method.equals("destroy")) { // The "destroy" has been invoked. destroy(); output = rh.createReply(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/_PolicyImplBase.java/buggy/core/src/classpath/gnu/gnu/CORBA/_PolicyImplBase.java |
public UIResource() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicComboBoxEditor.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxEditor.java | ||
public FatLfnDirectory(FatFileSystem fs, int nrEntries) { super(fs, nrEntries); | public FatLfnDirectory(FatFileSystem fs, FatFile file) throws IOException { super(fs, file); | public FatLfnDirectory(FatFileSystem fs, int nrEntries) { super(fs, nrEntries); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/FatLfnDirectory.java/buggy/fs/src/fs/org/jnode/fs/fat/FatLfnDirectory.java |
public synchronized void write(BlockDeviceAPI device, long offset) throws IOException { | protected synchronized void write() throws IOException { | public synchronized void write(BlockDeviceAPI device, long offset) throws IOException { if (label != null) applyLabel(); final byte[] data = new byte[entries.size() * 32]; write(data); device.write(offset, data, 0, data.length); resetDirty(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/FatDirectory.java/buggy/fs/src/fs/org/jnode/fs/fat/FatDirectory.java |
device.write(offset, data, 0, data.length); | file.write(0, data, 0, data.length); | public synchronized void write(BlockDeviceAPI device, long offset) throws IOException { if (label != null) applyLabel(); final byte[] data = new byte[entries.size() * 32]; write(data); device.write(offset, data, 0, data.length); resetDirty(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/FatDirectory.java/buggy/fs/src/fs/org/jnode/fs/fat/FatDirectory.java |
{ | { | protected final void setCharacterAttributes(JEditorPane editor, AttributeSet atts, boolean replace) { Document doc = editor.getDocument(); if (doc instanceof StyledDocument) { StyledDocument styleDoc = (S... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/StyledEditorKit.java/buggy/core/src/classpath/javax/javax/swing/text/StyledEditorKit.java |
{ | { | protected final void setParagraphAttributes(JEditorPane editor, AttributeSet atts, boolean replace) { Document doc = editor.getDocument(); if (doc instanceof StyledDocument) { StyledDocument styleDoc = (Styl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/StyledEditorKit.java/buggy/core/src/classpath/javax/javax/swing/text/StyledEditorKit.java |
defaults.put("List.focusCellHighlightBorder", new LineBorderUIResource(getPrimary1())); | public void addCustomEntriesToTable(UIDefaults defaults) { // Gradients. defaults.put("Button.gradient", Arrays.asList(new Object[] {new Float(0.3), new Float(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c703200057968fb1fad7e17bbcfd87040b579718/OceanTheme.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/OceanTheme.java | |
if (accessibleContext == null) accessibleContext = new AccessibleBoxFiller(); | public AccessibleContext getAccessibleContext() { // FIXME: disable to make libjava compile; visibility rules are broken // if (accessibleContext == null) // accessibleContext = new AccessibleBoxFiller(); return accessibleContext; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045a5b41cdfa747889101d3993040acf89788bc4/Box.java/buggy/core/src/classpath/javax/javax/swing/Box.java | |
if (accessibleContext == null) accessibleContext = new AccessibleBox(); | public AccessibleContext getAccessibleContext() { // if (accessibleContext == null) // accessibleContext = new AccessibleBox(); return accessibleContext; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045a5b41cdfa747889101d3993040acf89788bc4/Box.java/buggy/core/src/classpath/javax/javax/swing/Box.java | |
if (e.getClickCount() == 2) { screen.sendKeys("[enter]"); } else { | private void jbInit() throws Exception { this.setLayout(borderLayout1);// this.setOpaque(false); setDoubleBuffered(true); s.setOpaque(false); s.setDoubleBuffered(true); loadProps(); screen = new Screen5250(this,defaultProps); this.addComponentListener(this); if (!defaultP... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/dcb947eb588a1d04e8bce2a3cb53d901acfa8f65/Gui5250.java/buggy/tn5250j/src/org/tn5250j/Gui5250.java | |
} | private void jbInit() throws Exception { this.setLayout(borderLayout1);// this.setOpaque(false); setDoubleBuffered(true); s.setOpaque(false); s.setDoubleBuffered(true); loadProps(); screen = new Screen5250(this,defaultProps); this.addComponentListener(this); if (!defaultP... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/dcb947eb588a1d04e8bce2a3cb53d901acfa8f65/Gui5250.java/buggy/tn5250j/src/org/tn5250j/Gui5250.java | |
if (e.getClickCount() == 2) { screen.sendKeys("[enter]"); } else { | public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) { screen.sendKeys("[enter]"); } else { screen.moveCursor(e); repaint(); getFocusForMe(); } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/dcb947eb588a1d04e8bce2a3cb53d901acfa8f65/Gui5250.java/buggy/tn5250j/src/org/tn5250j/Gui5250.java | |
} | public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) { screen.sendKeys("[enter]"); } else { screen.moveCursor(e); repaint(); getFocusForMe(); } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/dcb947eb588a1d04e8bce2a3cb53d901acfa8f65/Gui5250.java/buggy/tn5250j/src/org/tn5250j/Gui5250.java | |
Session s = manager.openSession(sesProps,"","Test Applet"); s.grabFocus(); | final Session s = manager.openSession(sesProps,"","Test Applet"); | private void jbInit() throws Exception { this.setSize(new Dimension(400,300)); Properties sesProps = new Properties(); // Start loading properties - Host must exist sesProps.put(SESSION_HOST,getParameter("host")); if (isSpecified("-e")) sesProps.put(SESSION_TN_ENHANCED,"1"); if ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/70dc34a77d5b023d648a1be0d809f3cce5a74f73/My5250App.java/clean/tn5250j/src/org/tn5250j/My5250App.java |
SwingUtilities.invokeLater(new Runnable() { public void run() { s.grabFocus(); } }); | private void jbInit() throws Exception { this.setSize(new Dimension(400,300)); Properties sesProps = new Properties(); // Start loading properties - Host must exist sesProps.put(SESSION_HOST,getParameter("host")); if (isSpecified("-e")) sesProps.put(SESSION_TN_ENHANCED,"1"); if ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/70dc34a77d5b023d648a1be0d809f3cce5a74f73/My5250App.java/clean/tn5250j/src/org/tn5250j/My5250App.java | |
throw new Error("Not implemented"); | return new URLAudioClip(url); | public static final AudioClip newAudioClip(URL url) { // This requires an implementation of AudioClip in gnu.java.applet. throw new Error("Not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/Applet.java/clean/core/src/classpath/java/java/applet/Applet.java |
return super.paramString(); | StringBuffer sb = new StringBuffer(super.paramString()); sb.append(",defaultIcon="); if (icon != null) sb.append(icon); sb.append(",disabledIcon="); if (disabledIcon != null) sb.append(disabledIcon); sb.append(",horizontalAlignment="); sb.append(SwingUtilities.convertHorizontalAlignmentCodeToString( horizontalAlignment... | protected String paramString() { return super.paramString(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JLabel.java/buggy/core/src/classpath/javax/javax/swing/JLabel.java |
public void setLabelFor(Component c) { if (c != labelFor) { // We put the label into the client properties for the labeled // component so that it can be read by the AccessibleJComponent. // The other option would be to reserve a default visible field // in JComponent, but since t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JLabel.java/buggy/core/src/classpath/javax/javax/swing/JLabel.java | ||
Component oldLabelFor = labelFor; | public void setLabelFor(Component c) { if (c != labelFor) { // We put the label into the client properties for the labeled // component so that it can be read by the AccessibleJComponent. // The other option would be to reserve a default visible field // in JComponent, but since t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JLabel.java/buggy/core/src/classpath/javax/javax/swing/JLabel.java | |
labelFor = c; | public void setLabelFor(Component c) { if (c != labelFor) { // We put the label into the client properties for the labeled // component so that it can be read by the AccessibleJComponent. // The other option would be to reserve a default visible field // in JComponent, but since t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JLabel.java/buggy/core/src/classpath/javax/javax/swing/JLabel.java | |
firePropertyChange("labelFor", oldLabelFor, labelFor); | public void setLabelFor(Component c) { if (c != labelFor) { // We put the label into the client properties for the labeled // component so that it can be read by the AccessibleJComponent. // The other option would be to reserve a default visible field // in JComponent, but since t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JLabel.java/buggy/core/src/classpath/javax/javax/swing/JLabel.java | |
protected AbstractDirectory(FatFileSystem fs, FatFile myFile) { this(fs, (int)myFile.getLength() / 32, myFile); | protected AbstractDirectory(FatFileSystem fs, int nrEntries) { super(fs); entries.setSize(nrEntries); _dirty = false; | protected AbstractDirectory(FatFileSystem fs, FatFile myFile) { this(fs, (int)myFile.getLength() / 32, myFile); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/AbstractDirectory.java/buggy/fs/src/fs/org/jnode/fs/fat/AbstractDirectory.java |
int len = sortKeys.size(); | int len = sortKeys != null ? sortKeys.size() : 0; | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i < len; i++) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/ApplyTemplatesNode.java/clean/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java |
exp = exp.replaceAll("%"+(i + 1), params[i]); | String par = params[i]; par = (par == null) ? "" : par.trim(); exp = exp.replaceAll("%"+(i + 1), par); | public String expand(String[] params){ //if(paramCount != params.length) return null; String exp = body; for(int i = 0; i < localLabels.length; i++){ exp = exp.replaceAll(localLabels[i], "__jnasm_macro_local_label_" + localLabelCount ++); } for(int i = 0; i < params.len... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/47c5da85f1261a2d08778f24570b04eca21dcb8c/Macro.java/clean/builder/src/builder/org/jnode/jnasm/preprocessor/Macro.java |
exp = exp.replaceAll("%"+(i + 1), defaultValues[i - params.length]); | String def = defaultValues[i - params.length]; def = (def == null) ? "" : def.trim(); exp = exp.replaceAll("%"+(i + 1), def); | public String expand(String[] params){ //if(paramCount != params.length) return null; String exp = body; for(int i = 0; i < localLabels.length; i++){ exp = exp.replaceAll(localLabels[i], "__jnasm_macro_local_label_" + localLabelCount ++); } for(int i = 0; i < params.len... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/47c5da85f1261a2d08778f24570b04eca21dcb8c/Macro.java/clean/builder/src/builder/org/jnode/jnasm/preprocessor/Macro.java |
public FileView() { } | public FileView() { } | public FileView() { // TODO } // FileView() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/FileView.java/buggy/core/src/classpath/javax/javax/swing/filechooser/FileView.java |
public Boolean isTraversable(File value0) { return null; } | public Boolean isTraversable(File directory) { return null; } | public Boolean isTraversable(File value0) { return null; // TODO } // isTraversable() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/FileView.java/buggy/core/src/classpath/javax/javax/swing/filechooser/FileView.java |
/* Subclasses with children should implement this */ | public void addAccessibleSelection(int index) { /* Subclasses with children should implement this */ } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java | |
/* * Chain the new focus listener to the existing chain * of focus listeners. Each new focus listener is * coupled via multicasting to the existing chain. */ | public void addFocusListener(FocusListener listener) { /* * Chain the new focus listener to the existing chain * of focus listeners. Each new focus listener is * coupled via multicasting to the existing chain. */ focusListener = AWTEventMulticaster.add(focusListener, listener); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java | |
public void clearAccessibleSelection() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java | ||
/* We can simply return the result of a test for containment in the bounding rectangle */ | public boolean contains(Point point) { /* We can simply return the result of a test for containment in the bounding rectangle */ return getBounds().contains(point); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java | |
/* Simply return the location of the bounding rectangle */ | public Point getLocation() { /* Simply return the location of the bounding rectangle */ return getBounds().getLocation(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java | |
/* Simply return the size of the bounding rectangle */ | public Dimension getSize() { /* Simply return the size of the bounding rectangle */ return getBounds().getSize(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java | |
/* Subclasses with children should implement this */ | public void removeAccessibleSelection(int index) { /* Subclasses with children should implement this */ } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java | |
/* Remove the focus listener from the chain */ | public void removeFocusListener(FocusListener listener) { /* Remove the focus listener from the chain */ focusListener = AWTEventMulticaster.remove(focusListener, listener); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java | |
/* Ignored */ | public void requestFocus() { /* Ignored */ } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java | |
/* Simply call addAccessibleSelection() on all accessible children */ | public void selectAllAccessibleSelection() { /* Simply call addAccessibleSelection() on all accessible children */ for (int a = 0; a < getAccessibleChildrenCount(); ++a) { addAccessibleSelection(a); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java | |
/* Ignored */ | public void setBackground(Color color) { /* Ignored */ } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java | |
/* Ignored */ | public void setBounds(Rectangle rectangle) { /* Ignored */ } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java | |
/* Ignored */ | public void setCursor(Cursor cursor) { /* Ignored */ } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java | |
/* Call the method of the enclosing component */ | public void setFont(Font font) { /* Call the method of the enclosing component */ MenuComponent.this.setFont(font); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java | |
/* Ignored */ | public void setForeground(Color color) { /* Ignored */ } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java | |
/* Ignored */ | public void setVisible(boolean visibility) { /* Ignored */ } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java | |
MenuComponent() { | public MenuComponent() { | MenuComponent(){ if (GraphicsEnvironment.isHeadless()) throw new HeadlessException ();} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java |
throw new HeadlessException (); } | throw new HeadlessException(); } | MenuComponent(){ if (GraphicsEnvironment.isHeadless()) throw new HeadlessException ();} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java |
getFont() { | public Font getFont() { | getFont(){ if (font != null) return font; if (parent != null) return parent.getFont (); return null;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java |
return parent.getFont (); | return parent.getFont(); | getFont(){ if (font != null) return font; if (parent != null) return parent.getFont (); return null;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java |
} | } | getFont(){ if (font != null) return font; if (parent != null) return parent.getFont (); return null;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java |
getName() { return(name); } | public String getName() { return name; } | getName(){ return(name);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java |
getTreeLock() { return(tree_lock); } | protected final Object getTreeLock() { return tree_lock; } | getTreeLock(){ return(tree_lock);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java |
{ return false; } | { boolean retVal = false; MenuContainer parent = getParent(); if (parent == null) { if (this instanceof MenuBar) { MenuBar menuBar = (MenuBar) this; if (menuBar.frame != null) retVal = menuBar.frame.postEvent(event); } } else retVal = parent.postEvent(event); return retVal; } | postEvent(Event event){ // This is overridden by subclasses that support events. return false;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java |
setFont(Font font) { | public void setFont(Font font) { | setFont(Font font){ this.font = font;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java |
} | } | setFont(Font font){ this.font = font;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java |
setName(String name) { | public void setName(String name) { | setName(String name){ this.name = name; nameExplicitlySet = true;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java |
} | } | setName(String name){ this.name = name; nameExplicitlySet = true;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java |
setParent(MenuContainer parent) { | final void setParent(MenuContainer parent) { | setParent(MenuContainer parent){ this.parent = parent;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java |
} | } | setParent(MenuContainer parent){ this.parent = parent;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java |
setTreeLock(Object tree_lock) { this.tree_lock = tree_lock; } | final void setTreeLock(Object treeLock) { this.tree_lock = treeLock; } | setTreeLock(Object tree_lock){ this.tree_lock = tree_lock;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java |
toString() { return this.getClass().getName() + "[" + paramString() + "]"; } | public String toString() { return getClass().getName() + "[" + paramString() + "]"; } | toString(){ return this.getClass().getName() + "[" + paramString() + "]";} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/clean/core/src/classpath/java/java/awt/MenuComponent.java |
public void addAccessibleSelection(int value0) throws NotImplementedException | public void addAccessibleSelection(int index) | public void addAccessibleSelection(int value0) throws NotImplementedException { // TODO: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java |
Accessible child = getAccessibleChild(index); if (child != null && child instanceof JMenuItem) { JMenuItem mi = (JMenuItem) child; MenuSelectionManager msm = MenuSelectionManager.defaultManager(); msm.setSelectedPath(createPath(JMenu.this)); } | public void addAccessibleSelection(int value0) throws NotImplementedException { // TODO: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java | |
throws NotImplementedException | public void clearAccessibleSelection() throws NotImplementedException { // TODO: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java | |
MenuSelectionManager msm = MenuSelectionManager.defaultManager(); MenuElement[] oldSelection = msm.getSelectedPath(); for (int i = 0; i < oldSelection.length; i++) { if (oldSelection[i] == JMenu.this) { MenuElement[] newSel = new MenuElement[i]; System.arraycopy(oldSelection, 0, newSel, 0, i); msm.setSelectedPath(new... | public void clearAccessibleSelection() throws NotImplementedException { // TODO: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java | |
public Accessible getAccessibleChild(int value0) throws NotImplementedException | public Accessible getAccessibleChild(int index) | public Accessible getAccessibleChild(int value0) throws NotImplementedException { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java |
return null; | Component[] children = getMenuComponents(); int count = 0; Accessible found = null; for (int i = 0; i < children.length; i++) { if (children[i] instanceof Accessible) { if (count == index) { found = (Accessible) children[i]; break; } count++; } } return found; | public Accessible getAccessibleChild(int value0) throws NotImplementedException { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java |
throws NotImplementedException | public int getAccessibleChildrenCount() throws NotImplementedException { return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java | |
return 0; | Component[] children = getMenuComponents(); int count = 0; for (int i = 0; i < children.length; i++) { if (children[i] instanceof Accessible) count++; } return count; | public int getAccessibleChildrenCount() throws NotImplementedException { return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java |
throws NotImplementedException | public AccessibleSelection getAccessibleSelection() throws NotImplementedException { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java | |
return null; | return this; | public AccessibleSelection getAccessibleSelection() throws NotImplementedException { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java |
throws NotImplementedException | public int getAccessibleSelectionCount() throws NotImplementedException { return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java | |
return 0; | int count = 0; MenuSelectionManager msm = MenuSelectionManager.defaultManager(); MenuElement[] me = msm.getSelectedPath(); if (me != null) { for (int i = 0; i < me.length; i++) { if (me[i] == JMenu.this) { if (i + 1 < me.length) { count = 1; break; } } } } return count; | public int getAccessibleSelectionCount() throws NotImplementedException { return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java |
public boolean isAccessibleChildSelected(int value0) throws NotImplementedException | public boolean isAccessibleChildSelected(int index) | public boolean isAccessibleChildSelected(int value0) throws NotImplementedException { return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java |
return false; | boolean selected = false; MenuSelectionManager msm = MenuSelectionManager.defaultManager(); MenuElement[] me = msm.getSelectedPath(); if (me != null) { Accessible toBeFound = getAccessibleChild(index); for (int i = 0; i < me.length; i++) { if (me[i] == toBeFound) { selected = true; break; } } } return selected; | public boolean isAccessibleChildSelected(int value0) throws NotImplementedException { return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java |
public void removeAccessibleSelection(int value0) throws NotImplementedException | public void removeAccessibleSelection(int index) | public void removeAccessibleSelection(int value0) throws NotImplementedException { // TODO: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java |
Accessible child = getAccessibleChild(index); if (child != null) { MenuSelectionManager msm = MenuSelectionManager.defaultManager(); MenuElement[] oldSelection = msm.getSelectedPath(); for (int i = 0; i < oldSelection.length; i++) { if (oldSelection[i] == child) { MenuElement[] newSel = new MenuElement[i - 1]; System... | public void removeAccessibleSelection(int value0) throws NotImplementedException { // TODO: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java | |
throws NotImplementedException | public void selectAllAccessibleSelection() throws NotImplementedException { // TODO: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java | |
public void selectAllAccessibleSelection() throws NotImplementedException { // TODO: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java | ||
int pos = 0; | int pos = s.offset; | public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x and y pixel coordinates. int pixelX = x; int pixelY = y; // The font... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8b7bd34f9c789e32b3e30b7431e945f2f0ff17f5/Utilities.java/buggy/core/src/classpath/javax/javax/swing/text/Utilities.java |
public void executeScriptFile(Session session, String scriptFile) throws InterpreterDriver.InterpreterException { try { final Session s1 = session; final String s2 = scriptFile; s1.setMacroRunning(true); Runnable interpretIt = new Runnable() { public v... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/JPythonInterpreterDriver.java/clean/tn5250j/src/org/tn5250j/scripting/JPythonInterpreterDriver.java | ||
public void run() { _interpreter = new PythonInterpreter(); _interpreter.set("_session",s1); try { _interpreter.execfile(s2); } catch (org.python.core.PySyntaxError pse) { JOptionPane.showMessageDialog(s1... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/JPythonInterpreterDriver.java/clean/tn5250j/src/org/tn5250j/scripting/JPythonInterpreterDriver.java | ||
String clazz) | String clazz) | public LookAndFeelInfo(String name, String clazz) { this.name = name; this.clazz = clazz; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/UIManager.java/buggy/core/src/classpath/javax/javax/swing/UIManager.java |
public static String getCrossPlatformLookAndFeelClassName() | public static String getCrossPlatformLookAndFeelClassName() | public static String getCrossPlatformLookAndFeelClassName() { return "javax.swing.plaf.metal.MetalLookAndFeel"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/UIManager.java/buggy/core/src/classpath/javax/javax/swing/UIManager.java |
{ | { | public static boolean removeAuxiliaryLookAndFeel(LookAndFeel laf) { if (auxLookAndFeels == null) return false; int count = auxLookAndFeels.length; if (count == 1 && auxLookAndFeels[0] == laf) { auxLookAndFeels = null; return true; } for (int i = 0; i < count; i++) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/UIManager.java/buggy/core/src/classpath/javax/javax/swing/UIManager.java |
{ | { | public static boolean removeAuxiliaryLookAndFeel(LookAndFeel laf) { if (auxLookAndFeels == null) return false; int count = auxLookAndFeels.length; if (count == 1 && auxLookAndFeels[0] == laf) { auxLookAndFeels = null; return true; } for (int i = 0; i < count; i++) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/UIManager.java/buggy/core/src/classpath/javax/javax/swing/UIManager.java |
public synchronized void addNotify() { if (peer != null) { | addNotify() { if (peer != null) { | public synchronized void addNotify() { if (peer != null) { // This choice of toolkit seems unsatisfying, but I'm not sure // what else to do. peer = getToolkit().createCheckboxMenuItem(this); } super.addNotify(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/clean/core/src/classpath/java/java/awt/CheckboxMenuItem.java |
super.addNotify(); } | super.addNotify (); } | public synchronized void addNotify() { if (peer != null) { // This choice of toolkit seems unsatisfying, but I'm not sure // what else to do. peer = getToolkit().createCheckboxMenuItem(this); } super.addNotify(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/clean/core/src/classpath/java/java/awt/CheckboxMenuItem.java |
void dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) | dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) | void dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/clean/core/src/classpath/java/java/awt/CheckboxMenuItem.java |
} | } | void dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/clean/core/src/classpath/java/java/awt/CheckboxMenuItem.java |
public Object[] getSelectedObjects() { | getSelectedObjects() { | public Object[] getSelectedObjects() { if (state == false) return (null); Object[] obj = new Object[1]; obj[0] = getLabel(); return (obj); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/clean/core/src/classpath/java/java/awt/CheckboxMenuItem.java |
return (null); | return(null); | public Object[] getSelectedObjects() { if (state == false) return (null); Object[] obj = new Object[1]; obj[0] = getLabel(); return (obj); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/clean/core/src/classpath/java/java/awt/CheckboxMenuItem.java |
return (obj); } | return(obj); } | public Object[] getSelectedObjects() { if (state == false) return (null); Object[] obj = new Object[1]; obj[0] = getLabel(); return (obj); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/clean/core/src/classpath/java/java/awt/CheckboxMenuItem.java |
public boolean getState() { return (state); } | getState() { return(state); } | public boolean getState() { return (state); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/clean/core/src/classpath/java/java/awt/CheckboxMenuItem.java |
public String paramString() { return ("label=" + getLabel() + ",state=" + state + "," + super.paramString()); } | paramString() { return ("label=" + getLabel() + ",state=" + state + "," + super.paramString()); } | public String paramString() { return ("label=" + getLabel() + ",state=" + state + "," + super.paramString()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/clean/core/src/classpath/java/java/awt/CheckboxMenuItem.java |
protected void processEvent(AWTEvent event) { | processEvent(AWTEvent event) { | protected void processEvent(AWTEvent event) { if (event instanceof ItemEvent) processItemEvent((ItemEvent) event); else super.processEvent(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/clean/core/src/classpath/java/java/awt/CheckboxMenuItem.java |
processItemEvent((ItemEvent) event); | processItemEvent((ItemEvent)event); | protected void processEvent(AWTEvent event) { if (event instanceof ItemEvent) processItemEvent((ItemEvent) event); else super.processEvent(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/clean/core/src/classpath/java/java/awt/CheckboxMenuItem.java |
} | } | protected void processEvent(AWTEvent event) { if (event instanceof ItemEvent) processItemEvent((ItemEvent) event); else super.processEvent(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/clean/core/src/classpath/java/java/awt/CheckboxMenuItem.java |
protected void processItemEvent(ItemEvent event) { | processItemEvent(ItemEvent event) { | protected void processItemEvent(ItemEvent event) { if (item_listeners != null) item_listeners.itemStateChanged(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/clean/core/src/classpath/java/java/awt/CheckboxMenuItem.java |
} | } | protected void processItemEvent(ItemEvent event) { if (item_listeners != null) item_listeners.itemStateChanged(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5af1a0dd02ba16d1f4f4556ab34fa51c2db060d/CheckboxMenuItem.java/clean/core/src/classpath/java/java/awt/CheckboxMenuItem.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.