rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
this(session,name); setKeyStroke(name, ks, keyMap); | super(name); this.session = session; | public EmulatorAction(Session session, String name, KeyStroke ks, KeyMapper keyMap) { this(session,name); setKeyStroke(name, ks, keyMap); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/07f06b4067597c92fa853238df838b4d56dbcf8c/EmulatorAction.java/buggy/tn5250j/src/org/tn5250j/keyboard/actions/EmulatorAction.java |
final Collection devs = dm.getDevices(); | final Collection devs = new ArrayList(dm.getDevices()); | protected void startPlugin() throws PluginException { try { final DeviceManager dm = DeviceUtils.getDeviceManager(); dm.addListener(this); final Collection devs = dm.getDevices(); for (Iterator i = devs.iterator(); i.hasNext();) { addListeners((Devic... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/de67d8b053f7e360e73cda1e82e856d4db03a2c4/DebuggerPlugin.java/buggy/core/src/core/org/jnode/debugger/DebuggerPlugin.java |
} else if (readObj instanceof DelimitedXMLDataIOStyle || readObj instanceof TaggedXMLDataIOStyle ) { throw new SAXException("Cant parse delimited or tagged data from external file (yet)."); } | } | public Object action (SaxDocumentHandler handler, Attributes attrs) throws SAXException { // we only need to do these things for the first time we enter // a data node if (DataNodeLevel == 0) { // A little 'pre-handling' as href is a specialattribute ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/f09dd8cb39128096337ded1dec570563a7ad84d1/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
Log.errorln("Cant understand class of data !(Double|Integer|String). Ignoring append."); | Log.errorln("Dont understand this class of data !(Double|Integer|String). Ignoring append."); | public Array appendArrayToArray ( Array arrayToAppendTo, Array arrayToAdd ) { if (arrayToAppendTo != null) { List origAxisList = arrayToAppendTo.getAxes(); List addAxisList = arrayToAdd.getAxes(); Hashtable correspondingAddAxis = ne... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/f09dd8cb39128096337ded1dec570563a7ad84d1/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
ActionEvent event = new ActionEvent(this, 0, getText()); | ActionEvent event = new ActionEvent(this, 0, actionCommand == null ? getText() : actionCommand); | protected void fireActionPerformed() { ActionEvent event = new ActionEvent(this, 0, getText()); ActionListener[] listeners = getActionListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].actionPerformed(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/JTextField.java/buggy/core/src/classpath/javax/javax/swing/JTextField.java |
focusColor = getFocusColor(); selectColor = getSelectColor(); disabledTextColor = getDisabledTextColor(); | public MetalButtonUI() { super(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c4eda97e6e5feb8e7650d83d5066d85580f1249c/MetalButtonUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalButtonUI.java | |
public static void main(String[] args) throws NoSuchAliasException, NameNotFoundException { | public static void main(String[] args) throws NoSuchAliasException, NameNotFoundException, SyntaxErrorException { | public static void main(String[] args) throws NoSuchAliasException, NameNotFoundException { ParsedArguments cmdLine = HELP_INFO.parse(args); final Shell shell = ShellUtils.getShellManager().getCurrentShell(); final AliasManager aliasMgr = shell.getAliasManager(); if (cmdLine.size() == 0) { for (Iterator i = alia... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8475fed231619f209c4398ccad2ba966899e292d/AliasCommand.java/buggy/shell/src/shell/org/jnode/shell/command/AliasCommand.java |
throw new InstantiationException(ex1.getTargetException()); | final InstantiationException ie = new InstantiationException(); ie.initCause(ex1.getTargetException()); throw ie; | private DeviceToDriverMapper newMapperInstance(Class cls, ConfigurationElement element) throws InstantiationException, IllegalAccessException { try { final Constructor c = cls.getConstructor(new Class[] { ConfigurationElement.class }); try { return (DeviceToDriverMapper)c... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/DefaultDeviceManager.java/clean/core/src/driver/org/jnode/driver/DefaultDeviceManager.java |
if (view != null) | public void changedUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) { view.changedUpdate(ev, shape, vf); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java | |
{ | { float span = 10; | public float getPreferredSpan(int axis) { if (view != null) return view.getPreferredSpan(axis); return Integer.MAX_VALUE; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
return view.getPreferredSpan(axis); return Integer.MAX_VALUE; } | span = view.getPreferredSpan(axis); return span; } | public float getPreferredSpan(int axis) { if (view != null) return view.getPreferredSpan(axis); return Integer.MAX_VALUE; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
if (view != null) | public void insertUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) { view.insertUpdate(ev, shape, vf); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java | |
Rectangle b = s.getBounds(); view.setSize(b.width, b.height); | Rectangle b = s instanceof Rectangle ? (Rectangle) s : s.getBounds(); setSize(b.width, b.height); | public void paint(Graphics g, Shape s) { if (view != null) { Rectangle b = s.getBounds(); view.setSize(b.width, b.height); view.paint(g, s); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
if (view != null) | public void removeUpdate(DocumentEvent ev, Shape shape, ViewFactory vf) { view.removeUpdate(ev, shape, vf); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java | |
public void setSize(float w, float h) | public synchronized void setSize(float w, float h) | public void setSize(float w, float h) { if (view != null) view.setSize(w, h); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
if (kit == null) kit = new DefaultEditorKit(); | public EditorKit getEditorKit(JTextComponent t) { return kit; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java | |
return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); | Dimension d = new Dimension(); Insets i = c.getInsets(); Document doc = textComponent.getDocument(); if (doc instanceof AbstractDocument) ((AbstractDocument) doc).readLock(); try { d.width = (int) Math.min((long) rootView.getMaximumSpan(View.X_AXIS) + i.left + i.right, Integer.MAX_VALUE); d.height = (int) Math.min((... | public Dimension getMaximumSize(JComponent c) { // Sun's implementation returns Integer.MAX_VALUE here, so do we. return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
return new Dimension(i.left + i.right, i.top + i.bottom); | d.width += i.left + i.right; d.height += i.top + i.bottom; return d; | public Dimension getMinimumSize(JComponent c) { Insets i = c.getInsets(); return new Dimension(i.left + i.right, i.top + i.bottom); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
return rootView.getNextVisualPositionFrom(pos, b, getVisibleEditorRect(), | int offset = -1; Document doc = textComponent.getDocument(); if (doc instanceof AbstractDocument) ((AbstractDocument) doc).readLock(); try { Rectangle alloc = getVisibleEditorRect(); if (alloc != null) { rootView.setSize(alloc.width, alloc.height); offset = rootView.getNextVisualPositionFrom(pos, b, alloc, | public int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) throws BadLocationException { // A comment in the spec of NavigationFilter.getNextVisualPositionFrom() // sugge... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
} finally { if (doc instanceof AbstractDocument) ((AbstractDocument) doc).readUnlock(); } return offset; } | public int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) throws BadLocationException { // A comment in the spec of NavigationFilter.getNextVisualPositionFrom() // sugge... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java | |
float w = rootView.getPreferredSpan(View.X_AXIS); float h = rootView.getPreferredSpan(View.Y_AXIS); | else { rootView.setSize(Integer.MAX_VALUE, Integer.MAX_VALUE); } w = rootView.getPreferredSpan(View.X_AXIS); h = rootView.getPreferredSpan(View.Y_AXIS); } finally { if (doc instanceof AbstractDocument) ((AbstractDocument) doc).readUnlock(); } | public Dimension getPreferredSize(JComponent c) { Dimension d = c.getSize(); Insets i = c.getInsets(); if (d.width > (i.left + i.right) && d.height > (i.top + i.bottom)) { rootView.setSize(d.width - i.left - i.right, d.height - i.top - i.bottom); } float w = rootV... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
Insets insets = textComponent.getInsets(); | Insets insets = textComponent.getInsets(cachedInsets); | protected Rectangle getVisibleEditorRect() { int width = textComponent.getWidth(); int height = textComponent.getHeight(); // Return null if the component has no valid size. if (width <= 0 || height <= 0) return null; Insets insets = textComponent.getInsets(); return new Rectangle(insets.left... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
textComponent.setMargin(UIManager.getInsets(prefix + ".margin")); | protected void installDefaults() { String prefix = getPropertyPrefix(); // Install the standard properties. LookAndFeel.installColorsAndFont(textComponent, prefix + ".background", prefix + ".foreground", prefix + ".font"); LookAndFeel.installBorder(textComponent, prefi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java | |
color = UIManager.getColor(prefix + ".inactiveBackground"); | color = UIManager.getColor(prefix + ".inactiveForeground"); | protected void installDefaults() { String prefix = getPropertyPrefix(); // Install the standard properties. LookAndFeel.installColorsAndFont(textComponent, prefix + ".background", prefix + ".foreground", prefix + ".font"); LookAndFeel.installBorder(textComponent, prefi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
Caret caret = textComponent.getCaret(); if (caret == null || caret instanceof UIResource) { caret = createCaret(); textComponent.setCaret(caret); caret.setBlinkRate(UIManager.getInt(prefix + ".caretBlinkRate")); } Highlighter highlighter = textComponent.getHighlighter(); if (highlighter == null || highlighter instance... | protected void installDefaults() { String prefix = getPropertyPrefix(); // Install the standard properties. LookAndFeel.installColorsAndFont(textComponent, prefix + ".background", prefix + ".foreground", prefix + ".font"); LookAndFeel.installBorder(textComponent, prefi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java | |
textComponent.addFocusListener(focuslistener); | if (SystemProperties.getProperty("gnu.swing.text.no-xlike-clipboard") == null) { if (focusListener == null) focusListener = new FocusHandler(); textComponent.addFocusListener(focusListener); } | protected void installListeners() { textComponent.addFocusListener(focuslistener); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
textComponent.addPropertyChangeListener(updateHandler); | installFixedDefaults(); if (handler == null) handler = new Handler(); textComponent.addPropertyChangeListener(handler); | public void installUI(final JComponent c) { textComponent = (JTextComponent) c; installDefaults(); textComponent.addPropertyChangeListener(updateHandler); Document doc = textComponent.getDocument(); if (doc == null) { doc = getEditorKit(textComponent).createDefaultDocument(); textComponent.setDoc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
doc.addDocumentListener(documentHandler); | doc.addDocumentListener(handler); | public void installUI(final JComponent c) { textComponent = (JTextComponent) c; installDefaults(); textComponent.addPropertyChangeListener(updateHandler); Document doc = textComponent.getDocument(); if (doc == null) { doc = getEditorKit(textComponent).createDefaultDocument(); textComponent.setDoc... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
public final void paint(Graphics g, JComponent c) { try { Document doc = textComponent.getDocument(); if (doc instanceof AbstractDocument) { AbstractDocument aDoc = (AbstractDocument) doc; aDoc.readLock(); } paintSafely(g); } finally {... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java | ||
protected void paintSafely(Graphics g) { Caret caret = textComponent.getCaret(); Highlighter highlighter = textComponent.getHighlighter(); if (textComponent.isOpaque()) paintBackground(g); // Try painting with the highlighter without checking whether there // is a selection because a high... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java | ||
if (textComponent.getCaretColor() instanceof UIResource) textComponent.setCaretColor(null); if (textComponent.getSelectionColor() instanceof UIResource) textComponent.setSelectionColor(null); if (textComponent.getDisabledTextColor() instanceof UIResource) textComponent.setDisabledTextColor(null); if (textComponent.getS... | protected void uninstallDefaults() { // Do nothing here. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java | |
textComponent.removeFocusListener(focuslistener); textComponent.getDocument().removeDocumentListener(documentHandler); | if (focusListener != null) textComponent.removeFocusListener(focusListener); | protected void uninstallListeners() { textComponent.removeFocusListener(focuslistener); textComponent.getDocument().removeDocumentListener(documentHandler); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
super.uninstallUI(component); | textComponent.removePropertyChangeListener(handler); textComponent.getDocument().removeDocumentListener(handler); | public void uninstallUI(final JComponent component) { super.uninstallUI(component); rootView.setView(null); uninstallDefaults(); uninstallListeners(); uninstallKeyboardActions(); textComponent = null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java |
uninstallFixedDefaults(); | public void uninstallUI(final JComponent component) { super.uninstallUI(component); rootView.setView(null); uninstallDefaults(); uninstallListeners(); uninstallKeyboardActions(); textComponent = null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/632f16a08e2d29390bada293407cc91a253b358b/BasicTextUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java | |
writeOut(outputstream, valueListInfinite); | doValuePrint (outputstream, specialValue, valueListInfinite); | public void toXMLOutputStream (OutputStream outputstream, String indent) throws java.io.IOException { if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent); // indent node if desired // no need to have repeatable set to 'yes' would just waste space even if we used ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/57f32658b53e820a26154aac60c99ffe3026de0f/ValueListDelimitedList.java/clean/src/gov/nasa/gsfc/adc/xdf/ValueListDelimitedList.java |
writeOut(outputstream, valueListInfiniteNegative); | doValuePrint (outputstream, specialValue, valueListInfiniteNegative); | public void toXMLOutputStream (OutputStream outputstream, String indent) throws java.io.IOException { if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent); // indent node if desired // no need to have repeatable set to 'yes' would just waste space even if we used ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/57f32658b53e820a26154aac60c99ffe3026de0f/ValueListDelimitedList.java/clean/src/gov/nasa/gsfc/adc/xdf/ValueListDelimitedList.java |
writeOut(outputstream, valueListNoData); | doValuePrint (outputstream, specialValue, valueListNoData); | public void toXMLOutputStream (OutputStream outputstream, String indent) throws java.io.IOException { if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent); // indent node if desired // no need to have repeatable set to 'yes' would just waste space even if we used ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/57f32658b53e820a26154aac60c99ffe3026de0f/ValueListDelimitedList.java/clean/src/gov/nasa/gsfc/adc/xdf/ValueListDelimitedList.java |
writeOut(outputstream, valueListNotANumber); | doValuePrint (outputstream, specialValue, valueListNotANumber); | public void toXMLOutputStream (OutputStream outputstream, String indent) throws java.io.IOException { if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent); // indent node if desired // no need to have repeatable set to 'yes' would just waste space even if we used ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/57f32658b53e820a26154aac60c99ffe3026de0f/ValueListDelimitedList.java/clean/src/gov/nasa/gsfc/adc/xdf/ValueListDelimitedList.java |
writeOut(outputstream, valueListUnderflow); | doValuePrint (outputstream, specialValue, valueListUnderflow); | public void toXMLOutputStream (OutputStream outputstream, String indent) throws java.io.IOException { if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent); // indent node if desired // no need to have repeatable set to 'yes' would just waste space even if we used ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/57f32658b53e820a26154aac60c99ffe3026de0f/ValueListDelimitedList.java/clean/src/gov/nasa/gsfc/adc/xdf/ValueListDelimitedList.java |
writeOut(outputstream, valueListOverflow); } else { Log.errorln("Error: valueList doesnt have "+specialValue+" defined but value does. Ignoring value."); | doValuePrint (outputstream, specialValue, valueListOverflow); | public void toXMLOutputStream (OutputStream outputstream, String indent) throws java.io.IOException { if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent); // indent node if desired // no need to have repeatable set to 'yes' would just waste space even if we used ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/57f32658b53e820a26154aac60c99ffe3026de0f/ValueListDelimitedList.java/clean/src/gov/nasa/gsfc/adc/xdf/ValueListDelimitedList.java |
if (!sigId.equals(cert.getSigAlgOID())) | if (!sigId.toString().equals(cert.getSigAlgOID())) | public boolean match(Certificate certificate) { if (!(certificate instanceof X509Certificate)) return false; X509Certificate cert = (X509Certificate) certificate; if (this.cert != null) { try { byte[] e1 = this.cert.getEncoded(); byte[] e2 = cert.getEncoded();... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c6ebf1f74ce34c04205e65bfd96c25a18c5a0861/X509CertSelector.java/buggy/core/src/classpath/java/java/security/cert/X509CertSelector.java |
if (e.getPropertyName().equals(AbstractAction.ENABLED_PROPERTY)) | if (e.getPropertyName().equals("enabled")) | protected PropertyChangeListener createActionPropertyChangeListener(Action a) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { Action act = (Action) (e.getSource()); if (e.getPropertyName().equals(AbstractAction.ENABLED_PROPERTY)) setE... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
if (e.getPropertyName().equals(AbstractAction.ENABLED_PROPERTY)) | if (e.getPropertyName().equals("enabled")) | public void propertyChange(PropertyChangeEvent e) { Action act = (Action) (e.getSource()); if (e.getPropertyName().equals(AbstractAction.ENABLED_PROPERTY)) setEnabled(act.isEnabled()); else if (e.getPropertyName().equals(Action.NAME)) setText((String)(act.getValue(Action.NAME... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public void fireActionPerformed(ActionEvent e) | protected void fireActionPerformed(ActionEvent e) | public void fireActionPerformed(ActionEvent e) { e.setSource(this); ActionListener[] listeners = getActionListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].actionPerformed(e); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public void fireItemStateChanged(ItemEvent e) | protected void fireItemStateChanged(ItemEvent e) | public void fireItemStateChanged(ItemEvent e) { e.setSource(this); ItemListener[] listeners = getItemListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].itemStateChanged(e); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
public void fireStateChanged() | protected void fireStateChanged() | public void fireStateChanged() { ChangeListener[] listeners = getChangeListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].stateChanged(changeEvent); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
return "AbstractButton"; | StringBuffer sb = new StringBuffer(); sb.append(super.paramString()); sb.append(",defaultIcon="); if (getIcon() != null) sb.append(getIcon()); sb.append(",disabledIcon="); if (getDisabledIcon() != null) sb.append(getDisabledIcon()); sb.append(",disabledSelectedIcon="); if (getDisabledSelectedIcon() != null) sb.append(g... | protected String paramString() { return "AbstractButton"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/AbstractButton.java/clean/core/src/classpath/javax/javax/swing/AbstractButton.java |
} | } | public Rectangle getBounds(TreePath value0, Rectangle value1) { return null; // TODO } // getBounds() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java |
} | } | public boolean getExpandedState(TreePath value0) { return false; // TODO } // getExpandedState() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java |
} | } | public TreePath getPathClosestTo(int value0, int value1) { return null; // TODO } // getPathClosestTo() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java |
} | } | public TreePath getPathForRow(int row) { //TODO return null; } // getPathForRow() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java |
} | } | public int getRowCount() { return 0; // TODO } // getRowCount() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java |
} | } | public int getRowForPath(TreePath value0) { return 0; } // getRowForPath() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java |
} | } | public int getVisibleChildCount(TreePath value0) { return 0; // TODO } // getVisibleChildCount() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java |
} | } | public Enumeration getVisiblePathsFrom(TreePath value0) { return null; // TODO } // getVisiblePathsFrom() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java |
} | } | public void invalidatePathBounds(TreePath value0) { // TODO } // invalidatePathBounds() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java |
} | } | public void invalidateSizes() { // TODO } // invalidateSizes() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java |
} | } | public boolean isExpanded(TreePath value0) { return false; // TODO } // isExpanded() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java |
} | } | public void setExpandedState(TreePath value0, boolean value1) { // TODO } // setExpandedState() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java |
} | } | public void treeNodesChanged(TreeModelEvent value0) { // TODO } // treeNodesChanged() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java |
} | } | public void treeNodesInserted(TreeModelEvent value0) { // TODO } // treeNodesInserted() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java |
} | } | public void treeNodesRemoved(TreeModelEvent value0) { // TODO } // treeNodesRemoved() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java |
} | } | public void treeStructureChanged(TreeModelEvent value0) { // TODO } // treeStructureChanged() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/buggy/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java |
if (!signedOn) { signedOn = true; signOnSave = screen52.getScreenAsChars(); System.out.println("Signon saved"); } | public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicel... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/7b1c394f4b6ff580cadf047e50a5f3e073aec994/tnvt.java/buggy/tn5250j/src/org/tn5250j/tnvt.java | |
{ | { | public void insert(int offset, View view) { View[] array = { view }; replace(offset, 1, array); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java |
} | } | public void insert(int offset, View view) { View[] array = { view }; replace(offset, 1, array); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java |
{ | { | public boolean isVisible() { return true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java |
} | } | public boolean isVisible() { return true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java |
if (view.isStikeThrough()) | if (view.isStrikeThrough()) | public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { Color oldColor = g.getColor(); int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getPare... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
int breakLocation = painter.getBoundedPosition(this, p0, pos, len); | public View breakView(int axis, int p0, float pos, float len) { if (axis == Y_AXIS) return this; checkPainter(); GlyphPainter painter = getGlyphPainter(); int breakLocation = painter.getBoundedPosition(this, p0, pos, len); // Try to find a suitable line break. BreakIterator lineBreaker = Break... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java | |
getDocument().getText(getStartOffset(), getEndOffset(), txt); | int start = getStartOffset(); int length = getEndOffset() - start; getDocument().getText(start, length, txt); | public View breakView(int axis, int p0, float pos, float len) { if (axis == Y_AXIS) return this; checkPainter(); GlyphPainter painter = getGlyphPainter(); int breakLocation = painter.getBoundedPosition(this, p0, pos, len); // Try to find a suitable line break. BreakIterator lineBreaker = Break... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
lineBreaker.setText(txt); int goodBreakLocation = lineBreaker.previous(); if (goodBreakLocation != BreakIterator.DONE) breakLocation = goodBreakLocation; | int breakLocation = Utilities.getBreakLocation(txt, getContainer().getFontMetrics(getFont()), (int) pos, (int) (pos + len), getTabExpander(), p0); | public View breakView(int axis, int p0, float pos, float len) { if (axis == Y_AXIS) return this; checkPainter(); GlyphPainter painter = getGlyphPainter(); int breakLocation = painter.getBoundedPosition(this, p0, pos, len); // Try to find a suitable line break. BreakIterator lineBreaker = Break... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
getParent().preferenceChanged(this, true, true); | preferenceChanged(this, true, true); | public void changedUpdate(DocumentEvent e, Shape a, ViewFactory vf) { getParent().preferenceChanged(this, true, true); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
public float getPreferredSpan(int axis) { float span = 0; checkPainter(); GlyphPainter painter = getGlyphPainter(); if (axis == X_AXIS) { Element el = getElement(); TabExpander tabEx = null; View parent = getParent(); if (parent instanceof TabExpander) tabEx = (T... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java | ||
getGlyphPainter().paint(this, g, a, el.getStartOffset(), el.getEndOffset()); | getGlyphPainter().paint(this, g, a, getStartOffset(), getEndOffset()); | public void paint(Graphics g, Shape a) { Element el = getElement(); checkPainter(); getGlyphPainter().paint(this, g, a, el.getStartOffset(), el.getEndOffset()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
getParent().preferenceChanged(this, true, false); | preferenceChanged(this, true, false); | public void removeUpdate(DocumentEvent e, Shape a, ViewFactory vf) { getParent().preferenceChanged(this, true, false); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
public BasicGraphicsUtils() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicGraphicsUtils.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicGraphicsUtils.java | ||
public ComponentUI() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/ComponentUI.java/clean/core/src/classpath/javax/javax/swing/plaf/ComponentUI.java | ||
int max = (orientation == HORIZONTAL_SPLIT) ? getWidth() : getHeight(); | int max = ((orientation == HORIZONTAL_SPLIT) ? getWidth() : getHeight()) - getDividerSize(); | public void setDividerLocation(double proportionalLocation) { if (proportionalLocation > 1 || proportionalLocation < 0) throw new IllegalArgumentException ("proportion has to be between 0 and 1."); int max = (orientation == HORIZONTAL_SPLIT) ? getWidth() : getHeight(); setDividerLocation((int) (... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/JSplitPane.java/buggy/core/src/classpath/javax/javax/swing/JSplitPane.java |
editor = new JTextField(); | public MetalComboBoxEditor() { super(); editor = new JTextField(); editor.setBorder(new MetalComboBoxEditorBorder()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/MetalComboBoxEditor.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalComboBoxEditor.java | |
_interpreter.set("session",session); | _interpreter.set("_session",session); | public void executeScript(Session session, String script) throws InterpreterDriver.InterpreterException { try { session.setMacroRunning(true); _interpreter.set("session",session); _interpreter.exec(script); session.setMacroRunning(false); } catch (PyException ex... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/138d7f531fedca589f174b282c497f86f7e83899/JPythonInterpreterDriver.java/clean/tn5250j/src/org/tn5250j/scripting/JPythonInterpreterDriver.java |
_interpreter.set("session",s1); | _interpreter = new PythonInterpreter(); _interpreter.set("_session",s1); | 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/138d7f531fedca589f174b282c497f86f7e83899/JPythonInterpreterDriver.java/clean/tn5250j/src/org/tn5250j/scripting/JPythonInterpreterDriver.java |
_interpreter.set("session",s1); | _interpreter = new PythonInterpreter(); _interpreter.set("_session",s1); | public void run() { _interpreter.set("session",s1); _interpreter.execfile(s2); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/138d7f531fedca589f174b282c497f86f7e83899/JPythonInterpreterDriver.java/clean/tn5250j/src/org/tn5250j/scripting/JPythonInterpreterDriver.java |
System.out.println("getNewVariable(): " + variable); | public Variable getNewVariable() { count += 1; System.out.println("getNewVariable(): " + variable); Variable var = (Variable) variable.clone(); var.setSSAValue(count); stack.add(var); System.out.println("getNewVariable(): " + var); return var; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/568227fef1ae7ced51f104ef1af634c7a6188718/SSAStack.java/clean/core/src/core/org/jnode/vm/compiler/ir/SSAStack.java | |
System.out.println("getNewVariable(): " + var); | public Variable getNewVariable() { count += 1; System.out.println("getNewVariable(): " + variable); Variable var = (Variable) variable.clone(); var.setSSAValue(count); stack.add(var); System.out.println("getNewVariable(): " + var); return var; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/568227fef1ae7ced51f104ef1af634c7a6188718/SSAStack.java/clean/core/src/core/org/jnode/vm/compiler/ir/SSAStack.java | |
System.out.println("peek(): " + variable); | public Variable peek() { System.out.println("peek(): " + variable); int n = stack.size(); // TODO don't know if this right, but it avoids exceptions for certain // rewritePhiParams calls if (n <= 0) { return null; } Variable var = (Variable) stack.get(n - 1); System.out.println("peek(): " + var); return var... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/568227fef1ae7ced51f104ef1af634c7a6188718/SSAStack.java/clean/core/src/core/org/jnode/vm/compiler/ir/SSAStack.java | |
public Variable peek() { System.out.println("peek(): " + variable); int n = stack.size(); // TODO don't know if this right, but it avoids exceptions for certain // rewritePhiParams calls if (n <= 0) { return null; } Variable var = (Variable) stack.get(n - 1); System.out.println("peek(): " + var); return var... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/568227fef1ae7ced51f104ef1af634c7a6188718/SSAStack.java/clean/core/src/core/org/jnode/vm/compiler/ir/SSAStack.java | ||
return null; | if (variable instanceof MethodArgument) { return variable; } else { return null; } | public Variable peek() { System.out.println("peek(): " + variable); int n = stack.size(); // TODO don't know if this right, but it avoids exceptions for certain // rewritePhiParams calls if (n <= 0) { return null; } Variable var = (Variable) stack.get(n - 1); System.out.println("peek(): " + var); return var... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/568227fef1ae7ced51f104ef1af634c7a6188718/SSAStack.java/clean/core/src/core/org/jnode/vm/compiler/ir/SSAStack.java |
System.out.println("peek(): " + var); | public Variable peek() { System.out.println("peek(): " + variable); int n = stack.size(); // TODO don't know if this right, but it avoids exceptions for certain // rewritePhiParams calls if (n <= 0) { return null; } Variable var = (Variable) stack.get(n - 1); System.out.println("peek(): " + var); return var... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/568227fef1ae7ced51f104ef1af634c7a6188718/SSAStack.java/clean/core/src/core/org/jnode/vm/compiler/ir/SSAStack.java | |
System.out.println("pop(): " + var); | public Variable pop() { Variable var = (Variable) stack.remove(stack.size() - 1); System.out.println("pop(): " + var); return var; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/568227fef1ae7ced51f104ef1af634c7a6188718/SSAStack.java/clean/core/src/core/org/jnode/vm/compiler/ir/SSAStack.java | |
SwingUtilities.calculateInnerArea(b, vr); | if (b.isBorderPainted()) SwingUtilities.calculateInnerArea(b, vr); else vr = SwingUtilities.getLocalBounds(b); | public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); SwingUtilities.calculateInnerArea(b, vr); String text = SwingUtilities... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicButtonUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicButtonUI.java |
paintFocus(g, b, vr, tr, ir); | paintFocus(g, b, vr, tr, ir); | public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); SwingUtilities.calculateInnerArea(b, vr); String text = SwingUtilities... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicButtonUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicButtonUI.java |
if (b.getFont() instanceof UIResource) b.setFont(null); | protected void uninstallDefaults(AbstractButton b) { b.setForeground(null); b.setBackground(null); b.setBorder(null); b.setIconTextGap(defaultTextIconGap); b.setMargin(null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicButtonUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicButtonUI.java | |
paintHighlight(g, r1); | r0.width = r1.x + r1.width - 1; paintHighlight(g, r0); | public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/DefaultHighlighter.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java |
textComponent.getUI().damageRange(textComponent, p0, p1); | public Object addHighlight(int p0, int p1, Highlighter.HighlightPainter painter) throws BadLocationException { checkPositions(p0, p1); HighlightEntry entry = new HighlightEntry(p0, p1, painter); highlights.add(entry); return entry; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/DefaultHighlighter.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java | |
public void changeHighlight(Object tag, int p0, int p1) | public void changeHighlight(Object tag, int n0, int n1) | public void changeHighlight(Object tag, int p0, int p1) throws BadLocationException { checkPositions(p0, p1); HighlightEntry entry = (HighlightEntry) tag; entry.p0 = p0; entry.p1 = p1; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/DefaultHighlighter.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java |
checkPositions(p0, p1); | int o0, o1; checkPositions(n0, n1); | public void changeHighlight(Object tag, int p0, int p1) throws BadLocationException { checkPositions(p0, p1); HighlightEntry entry = (HighlightEntry) tag; entry.p0 = p0; entry.p1 = p1; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/DefaultHighlighter.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java |
entry.p0 = p0; entry.p1 = p1; | o0 = entry.p0; o1 = entry.p1; if (o0 == n0 && o1 == n1) return; entry.p0 = n0; entry.p1 = n1; TextUI ui = textComponent.getUI(); if (n0 == n1) ui.damageRange(textComponent, o0, o1); else if ((o1 > n0 && o1 <= n1) || (n1 > o0 && n1 <= o1)) { int fds, sds; int fde, sde; if(o0 < n0) { fds = o0; fde = n0; } el... | public void changeHighlight(Object tag, int p0, int p1) throws BadLocationException { checkPositions(p0, p1); HighlightEntry entry = (HighlightEntry) tag; entry.p0 = p0; entry.p1 = p1; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/DefaultHighlighter.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java |
return null; | return (Highlighter.Highlight[]) highlights.toArray(new Highlighter.Highlight[highlights.size()]); | public Highlighter.Highlight[] getHighlights() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/DefaultHighlighter.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java |
if (highlights.size() == 0) | if (size == 0) | public void paint(Graphics g) { // Check if there are any highlights. if (highlights.size() == 0) return; Shape bounds = textComponent.getBounds(); for (int index = 0; index < highlights.size(); ++index) { HighlightEntry entry = (HighlightEntry) highlights.get(index); entry.painter.pain... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/DefaultHighlighter.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.