rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
}
}
next(){ return(ci.next());}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1a6944e2b647ccd9f0a45036fbe2dcd289ca1699/AttributedStringIterator.java/clean/core/src/classpath/java/java/text/AttributedStringIterator.java
previous() {
public char previous() {
previous(){ return(ci.previous());}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1a6944e2b647ccd9f0a45036fbe2dcd289ca1699/AttributedStringIterator.java/clean/core/src/classpath/java/java/text/AttributedStringIterator.java
}
}
previous(){ return(ci.previous());}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1a6944e2b647ccd9f0a45036fbe2dcd289ca1699/AttributedStringIterator.java/clean/core/src/classpath/java/java/text/AttributedStringIterator.java
setIndex(int index) {
public char setIndex(int index) {
setIndex(int index){ return(ci.setIndex(index));}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1a6944e2b647ccd9f0a45036fbe2dcd289ca1699/AttributedStringIterator.java/clean/core/src/classpath/java/java/text/AttributedStringIterator.java
}
}
setIndex(int index){ return(ci.setIndex(index));}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1a6944e2b647ccd9f0a45036fbe2dcd289ca1699/AttributedStringIterator.java/clean/core/src/classpath/java/java/text/AttributedStringIterator.java
super ("ISO-8859-1", new String[]{"ISO-LATIN-1"});
/* Canonical charset name chosen according to: * http: */ super ("ISO-8859-1", new String[] { /* These names are provided by * http: */ "iso-ir-100", "ISO_8859-1", "latin1", "l1", "IBM819", "CP819", "csISOLatin1", "8859_1", /* These names are provided by * http: */ "ISO8859_1", "ISO_8859_1", "ibm-819", "ISO_8859-1:1987...
ISO_8859_1 () { super ("ISO-8859-1", new String[]{"ISO-LATIN-1"}); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d7e10284742ade2934a1d2f7548145b029098f79/ISO_8859_1.java/buggy/core/src/classpath/gnu/gnu/java/nio/charset/ISO_8859_1.java
final int stackSize = thread.getStackSize(); final Object stack = helper.getStack(thread); if (stack != null) { for (int i = 0; i < stackSize; i += slotSize) { final Address child = helper.getAddress(stack, i); if (child != null) { if (heapManager.isObject(child)) { processChild(child); } } } }
thread.visit(processChildVisitor, heapManager, helper);
private void markThreadStack(VmThread thread) { // For now do it stupid, but safe, just scan the whole stack. final int stackSize = thread.getStackSize(); final Object stack = helper.getStack(thread); if (stack != null) { for (int i = 0; i < stackSize; i += slotSize) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/620982ea12ff309cd2b063ad7fd9d629effd931b/GCMarkVisitor.java/buggy/core/src/core/org/jnode/vm/memmgr/def/GCMarkVisitor.java
private void processChild(Object child) {
final void processChild(Object child) {
private void processChild(Object child) { final int gcColor = helper.getObjectColor(child); if (gcColor <= GC_WHITE) { // Yellow or White helper.atomicChangeObjectColor(child, gcColor, GC_GREY); try { // TEST for a valid vmclass. helper.ge...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/620982ea12ff309cd2b063ad7fd9d629effd931b/GCMarkVisitor.java/buggy/core/src/core/org/jnode/vm/memmgr/def/GCMarkVisitor.java
t.minor = Minor.Header;
public void send(IOR ior) { try { Socket socket = new Socket(ior.Internet.host, ior.Internet.port); OutputStream socketOutput = socket.getOutputStream(); write(socketOutput); socketOutput.close(); socket.close(); } catch (IOException ex) { MARSHAL t = ne...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/ErrorMessage.java/buggy/core/src/classpath/gnu/gnu/CORBA/GIOP/ErrorMessage.java
public InputVerifier() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/InputVerifier.java/buggy/core/src/classpath/javax/javax/swing/InputVerifier.java
public void setAsynchronousLoadPriority(int p) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
ActionEvent event = new ActionEvent(this, 0, actionCommand);
String command = actionCommand != null ? actionCommand : getText(); ActionEvent event = new ActionEvent(this, 0, command);
public void postActionEvent() { ActionEvent event = new ActionEvent(this, 0, actionCommand); 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/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JTextField.java/buggy/core/src/classpath/javax/javax/swing/JTextField.java
this.actionCommand = command;
actionCommand = command;
public void setActionCommand(String command) { this.actionCommand = command; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JTextField.java/buggy/core/src/classpath/javax/javax/swing/JTextField.java
public FileView() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/FileView.java/buggy/core/src/classpath/javax/javax/swing/filechooser/FileView.java
public int checkImage(Image img, int width, int height, ImageObserver o) {
public final int checkImage(Image img, int width, int height, ImageObserver o) {
public int checkImage(Image img, int width, int height, ImageObserver o) { return toolkit.checkImage(img, width, height, o); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
public void coalescePaintEvent(PaintEvent e) {
public final void coalescePaintEvent(PaintEvent e) {
public void coalescePaintEvent(PaintEvent e) { //System.err.println( "coalescePaintEvent: " + e ); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
public void createBuffers(int x, BufferCapabilities bufferCapabilities) {
public final void createBuffers(int x, BufferCapabilities bufferCapabilities) {
public void createBuffers(int x, BufferCapabilities bufferCapabilities) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
public void destroyBuffers() {
public final void destroyBuffers() {
public void destroyBuffers() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
public void disable() {
public final void disable() {
public void disable() { setEnabled(false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
public void dispose() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
void fireComponentEvent(final int oldWidth, int width, final int oldHeight, int height) {
final void fireComponentEvent(final int oldWidth, int width, final int oldHeight, int height) {
void fireComponentEvent(final int oldWidth, int width, final int oldHeight, int height) { if ((oldWidth != width) || (oldHeight != height)) { fireComponentEvent(ComponentEvent.COMPONENT_RESIZED); } else { fireComponentEvent(ComponentEvent.COMPONENT_MOVED); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
public FontMetrics getFontMetrics(Font font) {
public final FontMetrics getFontMetrics(Font font) {
public FontMetrics getFontMetrics(Font font) { return toolkit.getFontMetrics(font); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
final Component parent = ((Component)component).getParent();
final Component parent = component.getParent();
public Graphics getGraphics() { //log.debug("getGraphics"); final Component parent = ((Component)component).getParent(); if (parent != null) { final int x = jComponent.getX(); final int y = jComponent.getY(); final int width = jComponent.getWidth(); final int height...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
public GraphicsConfiguration getGraphicsConfiguration() {
public final GraphicsConfiguration getGraphicsConfiguration() {
public GraphicsConfiguration getGraphicsConfiguration() { return toolkit.getGraphicsConfiguration(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
return computeLocationOnScreen(((Component)component));
return computeLocationOnScreen(component);
public Point getLocationOnScreen() { return computeLocationOnScreen(((Component)component)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
public final void handleEvent(AWTEvent event) { final int id = event.getID(); switch (id) { case PaintEvent.PAINT: case PaintEvent.UPDATE: { processPaintEvent((PaintEvent)event); } break; default: { ((ISwingPeer<awtT>)jComponen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
public boolean isFocusTraversable() {
public final boolean isFocusTraversable() {
public boolean isFocusTraversable() { return jComponent.isFocusTraversable(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
public boolean isFocusable() {
public final boolean isFocusable() {
public boolean isFocusable() { return jComponent.isFocusable(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
public final void paint(Graphics g) { jComponent.paint(g);// postPaintEvent(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
protected final void postPaintEvent(){ if(component != null) { eventQueue.postEvent(new PaintEvent(component, PaintEvent.PAINT, component.getBounds()));
protected final void postPaintEvent() { if (component != null) { eventQueue.postEvent(new PaintEvent(component, PaintEvent.PAINT, component.getBounds()));
protected final void postPaintEvent(){ if(component != null) { eventQueue.postEvent(new PaintEvent(component, PaintEvent.PAINT, component.getBounds())); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
public boolean prepareImage(Image img, int width, int height, ImageObserver o) {
public final boolean prepareImage(Image img, int width, int height, ImageObserver o) {
public boolean prepareImage(Image img, int width, int height, ImageObserver o) { return toolkit.prepareImage(img, width, height, o); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c772b17b7fb843d3870d0fbcde37f457a2948dbf/SwingComponentPeer.java/buggy/gui/src/awt/org/jnode/awt/swingpeers/SwingComponentPeer.java
SizeRequirements.calculateAlignedPositions(targetSpan, null, childReqs,
SizeRequirements total = baselineRequirements(axis, null); SizeRequirements.calculateAlignedPositions(targetSpan, total, childReqs,
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { SizeRequirements[] childReqs = getChildRequirements(axis); // Calculate the spans and offsets using the SizeRequirements uility // methods. SizeRequirements.calculateAlignedPositions(tar...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/804045622bd8dd509311bab751f88cfa2f79345a/BoxView.java/buggy/core/src/classpath/javax/javax/swing/text/BoxView.java
MyFileChooser pcFileChooser = new MyFileChooser(workingDir);
TN5250jFileChooser pcFileChooser = new TN5250jFileChooser(workingDir);
private void getPCFile() { String workingDir = System.getProperty("user.dir"); MyFileChooser pcFileChooser = new MyFileChooser(workingDir); int ret = pcFileChooser.showSaveDialog(new JFrame()); // check to see if something was actually chosen if (ret == JFileChooser.APPROVE_OPTION) { ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9504a4d985db40cb3b0df15a17d3cfce56536b87/SendScreenToFile.java/clean/tn5250j/src/org/tn5250j/tools/SendScreenToFile.java
out.write(sc.getBytes());
for (int x = 0; x < sc.length(); x++) out.write(sc.charAt(x));
private void writeToFile(String sc,File file) { FileOutputStream out = null; try { out = new FileOutputStream(file); out.write(sc.getBytes()); out.flush(); out.close(); } catch (FileNotFoundException fnfe) {System.out.println("fnfe: " + fnfe.getMessage());} ca...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/9504a4d985db40cb3b0df15a17d3cfce56536b87/SendScreenToFile.java/clean/tn5250j/src/org/tn5250j/tools/SendScreenToFile.java
public void addCellEditorListener (CellEditorListener listener)
public void addCellEditorListener(CellEditorListener listener)
public void addCellEditorListener (CellEditorListener listener) { listenerList.add (CellEditorListener.class, listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/AbstractCellEditor.java/clean/core/src/classpath/javax/javax/swing/AbstractCellEditor.java
listenerList.add (CellEditorListener.class, listener);
listenerList.add(CellEditorListener.class, listener);
public void addCellEditorListener (CellEditorListener listener) { listenerList.add (CellEditorListener.class, listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/AbstractCellEditor.java/clean/core/src/classpath/javax/javax/swing/AbstractCellEditor.java
return (CellEditorListener[]) listenerList.getListeners (CellEditorListener.class);
return (CellEditorListener[]) listenerList.getListeners( CellEditorListener.class);
public CellEditorListener[] getCellEditorListeners() { return (CellEditorListener[]) listenerList.getListeners (CellEditorListener.class); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/AbstractCellEditor.java/clean/core/src/classpath/javax/javax/swing/AbstractCellEditor.java
public void removeCellEditorListener (CellEditorListener listener)
public void removeCellEditorListener(CellEditorListener listener)
public void removeCellEditorListener (CellEditorListener listener) { listenerList.remove (CellEditorListener.class, listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/AbstractCellEditor.java/clean/core/src/classpath/javax/javax/swing/AbstractCellEditor.java
listenerList.remove (CellEditorListener.class, listener);
listenerList.remove(CellEditorListener.class, listener);
public void removeCellEditorListener (CellEditorListener listener) { listenerList.remove (CellEditorListener.class, listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/AbstractCellEditor.java/clean/core/src/classpath/javax/javax/swing/AbstractCellEditor.java
init(new SimpleDateFormat());
DateEditorFormatter nef = new DateEditorFormatter(); nef.setMinimum(getModel().getStart()); nef.setMaximum(getModel().getEnd()); ftf.setFormatterFactory(new DefaultFormatterFactory(nef));
public DateEditor(JSpinner spinner) { super(spinner); init(new SimpleDateFormat()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49ad2f4c3e74f0a8e99b839c938a312898850fa0/JSpinner.java/clean/core/src/classpath/javax/javax/swing/JSpinner.java
return dateFormat;
DateFormatter formatter = (DateFormatter) ftf.getFormatter(); return (SimpleDateFormat) formatter.getFormat();
public SimpleDateFormat getFormat() { return dateFormat; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49ad2f4c3e74f0a8e99b839c938a312898850fa0/JSpinner.java/clean/core/src/classpath/javax/javax/swing/JSpinner.java
ftf.addPropertyChangeListener(this);
public DefaultEditor(JSpinner spinner) { super(); setLayout(this); this.spinner = spinner; ftf = new JFormattedTextField(); add(ftf); ftf.setValue(spinner.getValue()); spinner.addChangeListener(this); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49ad2f4c3e74f0a8e99b839c938a312898850fa0/JSpinner.java/clean/core/src/classpath/javax/javax/swing/JSpinner.java
if (event.getSource() == ftf) { if (event.getPropertyName().equals("value")) spinner.getModel().setValue(event.getNewValue()); }
public void propertyChange(PropertyChangeEvent event) { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49ad2f4c3e74f0a8e99b839c938a312898850fa0/JSpinner.java/clean/core/src/classpath/javax/javax/swing/JSpinner.java
ftf.setValue(spinner.getValue());
public void stateChanged(ChangeEvent event) { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49ad2f4c3e74f0a8e99b839c938a312898850fa0/JSpinner.java/clean/core/src/classpath/javax/javax/swing/JSpinner.java
NumberEditorFormatter nef = new NumberEditorFormatter(); nef.setMinimum(getModel().getMinimum()); nef.setMaximum(getModel().getMaximum()); ftf.setFormatterFactory(new DefaultFormatterFactory(nef));
public NumberEditor(JSpinner spinner) { super(spinner); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49ad2f4c3e74f0a8e99b839c938a312898850fa0/JSpinner.java/clean/core/src/classpath/javax/javax/swing/JSpinner.java
return null;
NumberFormatter formatter = (NumberFormatter) ftf.getFormatter(); return (DecimalFormat) formatter.getFormat();
public DecimalFormat getFormat() { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49ad2f4c3e74f0a8e99b839c938a312898850fa0/JSpinner.java/clean/core/src/classpath/javax/javax/swing/JSpinner.java
else if (model instanceof SpinnerListModel) return new ListEditor(this);
protected JComponent createEditor(SpinnerModel model) { if (model instanceof SpinnerDateModel) return new DateEditor(this); else if (model instanceof SpinnerNumberModel) return new NumberEditor(this); else return new DefaultEditor(this); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49ad2f4c3e74f0a8e99b839c938a312898850fa0/JSpinner.java/clean/core/src/classpath/javax/javax/swing/JSpinner.java
if (this.editor instanceof DefaultEditor) ((DefaultEditor) editor).dismiss(this); else if (this.editor instanceof ChangeListener) removeChangeListener((ChangeListener) this.editor); if (editor instanceof ChangeListener) addChangeListener((ChangeListener) editor);
JComponent oldEditor = this.editor; if (oldEditor instanceof DefaultEditor) ((DefaultEditor) oldEditor).dismiss(this); else if (oldEditor instanceof ChangeListener) removeChangeListener((ChangeListener) oldEditor);
public void setEditor(JComponent editor) { if (editor == null) throw new IllegalArgumentException("editor may not be null"); if (this.editor instanceof DefaultEditor) ((DefaultEditor) editor).dismiss(this); else if (this.editor instanceof ChangeListener) removeChangeListener((ChangeListener) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49ad2f4c3e74f0a8e99b839c938a312898850fa0/JSpinner.java/clean/core/src/classpath/javax/javax/swing/JSpinner.java
firePropertyChange("editor", oldEditor, editor);
public void setEditor(JComponent editor) { if (editor == null) throw new IllegalArgumentException("editor may not be null"); if (this.editor instanceof DefaultEditor) ((DefaultEditor) editor).dismiss(this); else if (this.editor instanceof ChangeListener) removeChangeListener((ChangeListener) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49ad2f4c3e74f0a8e99b839c938a312898850fa0/JSpinner.java/clean/core/src/classpath/javax/javax/swing/JSpinner.java
if (editor == null)
public void setModel(SpinnerModel newModel) { if (newModel == null) throw new IllegalArgumentException(); if (model == newModel) return; SpinnerModel oldModel = model; model = newModel; firePropertyChange("model", oldModel, newModel); if (editor == null) setEditor(createEditor(mo...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49ad2f4c3e74f0a8e99b839c938a312898850fa0/JSpinner.java/clean/core/src/classpath/javax/javax/swing/JSpinner.java
public synchronized void draw(Shape shape, AffineTransform tx, Color color, int mode) {
public synchronized void draw(Shape shape, Shape clip, AffineTransform tx, Color color, int mode) {
public synchronized void draw(Shape shape, AffineTransform tx, Color color, int mode) { vgaIO.setGRAF(0, convertColor(color)); vgaIO.setGRAF(3, (mode == PAINT_MODE) ? LOGOP_NONE : LOGOP_XOR); draw(shape, tx, 0, mode); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4557d0702a8d0890ae78e109ce9a6ba79d7a5beb/VGASurface.java/buggy/gui/src/driver/org/jnode/driver/video/vga/VGASurface.java
draw(shape, tx, 0, mode);
draw(shape, clip, tx, 0, mode);
public synchronized void draw(Shape shape, AffineTransform tx, Color color, int mode) { vgaIO.setGRAF(0, convertColor(color)); vgaIO.setGRAF(3, (mode == PAINT_MODE) ? LOGOP_NONE : LOGOP_XOR); draw(shape, tx, 0, mode); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4557d0702a8d0890ae78e109ce9a6ba79d7a5beb/VGASurface.java/buggy/gui/src/driver/org/jnode/driver/video/vga/VGASurface.java
private void doExpandParents(TreePath path, boolean state) { TreePath parent = path.getParentPath(); if (isExpanded(parent)) { nodeStates.put(path, state ? EXPANDED : COLLAPSED); return; } if (parent != null) doExpandParents(parent, false); nodeStates.put(path, state ? EXPANDED : COLLAP...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java
try { if (parent != null) checkExpandParents(parent); } catch (ExpandVetoException e) { return; }
protected void setExpandedState(TreePath path, boolean state) { if (path == null) return; TreePath parent = path.getParentPath(); try { if (parent != null) checkExpandParents(parent); } catch (ExpandVetoException e) { // Expansion vetoed. return; } doExpandParents(path, st...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java
if (treeModelListener == null) treeModelListener = createTreeModelListener(); model.addTreeModelListener(treeModelListener);
public void setModel(TreeModel model) { if (treeModel == model) return; TreeModel oldValue = treeModel; treeModel = model; firePropertyChange(TREE_MODEL_PROPERTY, oldValue, model); // add treeModelListener to the new model if (treeModelListener == null) treeModelListener = createTreeModel...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7b0a77266671350e38451a50ce054282a5860ef/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java
return maxSize;
return new Dimension(Short.MAX_VALUE, Short.MAX_VALUE);
public Dimension getMaximumSize(JComponent c) { return maxSize; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/804045622bd8dd509311bab751f88cfa2f79345a/BasicSeparatorUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSeparatorUI.java
return minSize;
return new Dimension(0, 0);
public Dimension getMinimumSize(JComponent c) { return minSize; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/804045622bd8dd509311bab751f88cfa2f79345a/BasicSeparatorUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSeparatorUI.java
Dimension pref = verticalPrefSize;
Dimension pref = new Dimension(2, 0);
public Dimension getPreferredSize(JComponent c) { Dimension pref = verticalPrefSize; if (c instanceof JSeparator) { JSeparator s = (JSeparator) c; if (s.getOrientation() == JSeparator.HORIZONTAL) pref = horizontalPrefSize; } return pref; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/804045622bd8dd509311bab751f88cfa2f79345a/BasicSeparatorUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSeparatorUI.java
pref = horizontalPrefSize;
pref = new Dimension(0, 2);
public Dimension getPreferredSize(JComponent c) { Dimension pref = verticalPrefSize; if (c instanceof JSeparator) { JSeparator s = (JSeparator) c; if (s.getOrientation() == JSeparator.HORIZONTAL) pref = horizontalPrefSize; } return pref; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/804045622bd8dd509311bab751f88cfa2f79345a/BasicSeparatorUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSeparatorUI.java
try { FileInputStream in = new FileInputStream(settingsDirectory() + getConfigurationResource()); sesProps.load(in); if (sesProps.size() == 0) loadDefaults(); } catch (IOException ioe) { System.out.println("Information Message: Properties file is being " + "created for first time use: File name " + getConfigurationRes...
if (configurationResource == null || configurationResource == "") { configurationResource = "TN5250JDefaults.props"; usingDefaults = true;
private void loadConfigurationResource() { sesProps = new Properties(); try { FileInputStream in = new FileInputStream(settingsDirectory() + getConfigurationResource()); sesProps.load(in); if (sesProps.size() == 0) loadDefaults(); } catch (IOException ioe) { ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/3b0f2905df6e6dbedfa3754cb9004ac782e17434/SessionConfig.java/buggy/tn5250j/src/org/tn5250j/SessionConfig.java
catch (SecurityException se) { System.out.println(se.getMessage());
else { try { FileInputStream in = new FileInputStream(settingsDirectory() + getConfigurationResource()); sesProps.load(in); if (sesProps.size() == 0) loadDefaults(); } catch (IOException ioe) { System.out.println("Information Message: Properties file is being " + "created for first time use: File name " + getConfigura...
private void loadConfigurationResource() { sesProps = new Properties(); try { FileInputStream in = new FileInputStream(settingsDirectory() + getConfigurationResource()); sesProps.load(in); if (sesProps.size() == 0) loadDefaults(); } catch (IOException ioe) { ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/3b0f2905df6e6dbedfa3754cb9004ac782e17434/SessionConfig.java/buggy/tn5250j/src/org/tn5250j/SessionConfig.java
private void loadConfigurationResource() { sesProps = new Properties(); try { FileInputStream in = new FileInputStream(settingsDirectory() + getConfigurationResource()); sesProps.load(in); if (sesProps.size() == 0) loadDefaults(); } catch (IOException ioe) { ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/3b0f2905df6e6dbedfa3754cb9004ac782e17434/SessionConfig.java/buggy/tn5250j/src/org/tn5250j/SessionConfig.java
return System.getProperty("emulator.settingsDirectory") +
return System.getProperty("emulator.settingsDirectory") +
private String settingsDirectory() { if (System.getProperties().containsKey("emulator.settingsDirectory")) { return System.getProperty("emulator.settingsDirectory") + File.separator; } else { return System.getProperty("user.home") + File.separator + ".tn525...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/3b0f2905df6e6dbedfa3754cb9004ac782e17434/SessionConfig.java/buggy/tn5250j/src/org/tn5250j/SessionConfig.java
String moreIndent = indent + sPrettyXDFOutputIndentation;
String moreIndent = indent + Specification.getInstance().getPrettyXDFOutputIndentation();
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { //open the code writeOut(outputstream, "<" + classXDFNodeName); writeOut(outputstream, " count=\"" + getCount() + "\""); writeOut(outputstream, ">"); //write out nodes in formatCommandList synchronized (formatComm...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/RepeatFormattedIOCmd.java/clean/src/gov/nasa/gsfc/adc/xdf/RepeatFormattedIOCmd.java
if (sPrettyXDFOutput) {
if (Specification.getInstance().isPrettyXDFOutput()) {
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { //open the code writeOut(outputstream, "<" + classXDFNodeName); writeOut(outputstream, " count=\"" + getCount() + "\""); writeOut(outputstream, ">"); //write out nodes in formatCommandList synchronized (formatComm...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/RepeatFormattedIOCmd.java/clean/src/gov/nasa/gsfc/adc/xdf/RepeatFormattedIOCmd.java
if (sPrettyXDFOutput) {
if (Specification.getInstance().isPrettyXDFOutput()) {
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { //open the code writeOut(outputstream, "<" + classXDFNodeName); writeOut(outputstream, " count=\"" + getCount() + "\""); writeOut(outputstream, ">"); //write out nodes in formatCommandList synchronized (formatComm...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/RepeatFormattedIOCmd.java/clean/src/gov/nasa/gsfc/adc/xdf/RepeatFormattedIOCmd.java
splash.setVisible(false);
private String getConnectSession () { Connect sc = new Connect(frame1,LangTool.getString("ss.title"),sessions); // load the new session information from the session property file loadSessions(); return sc.getConnectKey(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/ce2a80b1b7e86859c8fe9ff64e4a580beaf972a9/My5250.java/buggy/tn5250j/src/org/tn5250j/My5250.java
m.splash.setVisible(false);
static public void main(String[] args) { if (isSpecified("-MDI",args)) { useMDIFrames = true; } if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap de...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/ce2a80b1b7e86859c8fe9ff64e4a580beaf972a9/My5250.java/buggy/tn5250j/src/org/tn5250j/My5250.java
splash.setVisible(false);
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/ce2a80b1b7e86859c8fe9ff64e4a580beaf972a9/My5250.java/buggy/tn5250j/src/org/tn5250j/My5250.java
splash.setVisible(false);
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/ce2a80b1b7e86859c8fe9ff64e4a580beaf972a9/My5250.java/buggy/tn5250j/src/org/tn5250j/My5250.java
throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE);
throw new BAD_OPERATION(Minor.Method, CompletionStatus.COMPLETED_MAYBE);
public OutputStream _invoke(String method, InputStream in, ResponseHandler rh) { OutputStream out = null; Integer call_method = (Integer) _NamingContextImplBase.methods.get(method); if (call_method == null) throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE); switch (call_method.intValue())...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/NamingContextPOA.java/buggy/core/src/classpath/org/org/omg/CosNaming/NamingContextPOA.java
public synchronized void registerFileSystem(FileSystem fs) { filesystems.put(fs.getDevice(), fs);
public void registerFileSystem(FileSystem fs) { final Device device = fs.getDevice(); synchronized (this) { filesystems.put(device, fs); }
public synchronized void registerFileSystem(FileSystem fs) { filesystems.put(fs.getDevice(), fs); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/db375ff26e46c7f1767dc5d096c5f8866c265859/FileSystemManager.java/buggy/fs/src/fs/org/jnode/fs/service/def/FileSystemManager.java
public synchronized FileSystem unregisterFileSystem(Device device) { return filesystems.remove(device); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/db375ff26e46c7f1767dc5d096c5f8866c265859/FileSystemManager.java/buggy/fs/src/fs/org/jnode/fs/service/def/FileSystemManager.java
return "JMenuBar";
StringBuffer sb = new StringBuffer(); sb.append(super.paramString()); sb.append(",margin="); if (getMargin() != null) sb.append(getMargin()); sb.append(",paintBorder=").append(isBorderPainted()); return sb.toString();
protected String paramString() { return "JMenuBar"; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JMenuBar.java/buggy/core/src/classpath/javax/javax/swing/JMenuBar.java
if (b != old) { firePropertyChange(BORDER_PAINTED_CHANGED_PROPERTY, old, b);
firePropertyChange("borderPainted", old, b);
public void setBorderPainted(boolean b) { boolean old = borderPainted; borderPainted = b; if (b != old) { firePropertyChange(BORDER_PAINTED_CHANGED_PROPERTY, old, b); revalidate(); repaint(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JMenuBar.java/buggy/core/src/classpath/javax/javax/swing/JMenuBar.java
if (m.equals(this.margin))
if (m != margin)
public void setMargin(Insets m) { if (m.equals(this.margin)) { Insets oldMargin = this.margin; this.margin = m; firePropertyChange(MARGIN_CHANGED_PROPERTY, oldMargin, margin); } this.margin = m; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JMenuBar.java/buggy/core/src/classpath/javax/javax/swing/JMenuBar.java
Insets oldMargin = this.margin; this.margin = m; firePropertyChange(MARGIN_CHANGED_PROPERTY, oldMargin, margin);
Insets oldMargin = margin; margin = m; firePropertyChange("margin", oldMargin, margin);
public void setMargin(Insets m) { if (m.equals(this.margin)) { Insets oldMargin = this.margin; this.margin = m; firePropertyChange(MARGIN_CHANGED_PROPERTY, oldMargin, margin); } this.margin = m; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JMenuBar.java/buggy/core/src/classpath/javax/javax/swing/JMenuBar.java
this.margin = m;
public void setMargin(Insets m) { if (m.equals(this.margin)) { Insets oldMargin = this.margin; this.margin = m; firePropertyChange(MARGIN_CHANGED_PROPERTY, oldMargin, margin); } this.margin = m; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JMenuBar.java/buggy/core/src/classpath/javax/javax/swing/JMenuBar.java
selectionModel = model;
public void setSelectionModel(SingleSelectionModel model) { selectionModel = model; if (selectionModel != model) { SingleSelectionModel oldModel = selectionModel; selectionModel = model; firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, this.selectionModel); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JMenuBar.java/buggy/core/src/classpath/javax/javax/swing/JMenuBar.java
public void setSelectionModel(SingleSelectionModel model) { selectionModel = model; if (selectionModel != model) { SingleSelectionModel oldModel = selectionModel; selectionModel = model; firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, this.selectionModel); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JMenuBar.java/buggy/core/src/classpath/javax/javax/swing/JMenuBar.java
firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, this.selectionModel);
firePropertyChange("model", oldModel, selectionModel);
public void setSelectionModel(SingleSelectionModel model) { selectionModel = model; if (selectionModel != model) { SingleSelectionModel oldModel = selectionModel; selectionModel = model; firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, this.selectionModel); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JMenuBar.java/buggy/core/src/classpath/javax/javax/swing/JMenuBar.java
ArcIterator(Arc2D a, AffineTransform xform)
public ArcIterator(Arc2D a, AffineTransform xform)
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180);
double start = a.getAngleStart() * (Math.PI / 180); double extent = a.getAngleExtent() * (Math.PI / 180); if (extent < 0) { extent = -extent; start = 2 * Math.PI - extent + start; } this.start = start; this.extent = extent;
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
double e = extent < 0 ? -extent : extent;
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
else if (e == 0)
else if (extent == 0)
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
else if (e <= Math.PI / 2.0)
else if (extent <= Math.PI / 2.0)
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
else if (e <= Math.PI)
else if (extent <= Math.PI)
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
else if (e <= 3.0 * (Math.PI / 2.0))
else if (extent <= 3.0 * (Math.PI / 2.0))
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
int code = currentSegment (double_coords);
int code = currentSegment(double_coords);
public int currentSegment(float[] coords) { double[] double_coords = new double[6]; int code = currentSegment (double_coords); for (int i = 0; i < 6; ++i) coords[i] = (float) double_coords[i]; return code; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
public void setArc(double x, double y, double w, double h, double start, double extent, int type)
public void setArc(double x, double y, double w, double h, double start, double extent, int type)
public void setArc(double x, double y, double w, double h, double start, double extent, int type) { this.x = x; this.y = y; width = w; height = h; this.start = start; this.extent = extent; setArcType(type); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
public void setArc(double x, double y, double w, double h, double start, double extent, int type)
public void setArc(double x, double y, double w, double h, double start, double extent, int type)
public void setArc(double x, double y, double w, double h, double start, double extent, int type) { this.x = (float) x; this.y = (float) y; width = (float) w; height = (float) h; this.start = (float) start; this.extent = (float) extent; setArcType(type); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
if (w <= 0 || h <= 0)
double extent = getAngleExtent(); if (w <= 0 || h <= 0 || extent == 0) return false; double mx = getX() + w / 2; double my = getY() + h / 2; double dx = (x - mx) * 2 / w; double dy = (y - my) * 2 / h; if ((dx * dx + dy * dy) >= 1.0) return false; double angle = Math.toDegrees(Math.atan2(-dy, dx)); if (getArcType() !=...
public boolean contains(double x, double y) { double w = getWidth(); double h = getHeight(); if (w <= 0 || h <= 0) return false; // XXX Finish implementing. throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
throw new Error("not implemented");
return sgn < 0; }
public boolean contains(double x, double y) { double w = getWidth(); double h = getHeight(); if (w <= 0 || h <= 0) return false; // XXX Finish implementing. throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
double end = start + getAngleExtent();
double extent = getAngleExtent(); double end = start + extent; if (extent >= 360 || extent <= -360) return true; if (extent < 0) { end = start; start += extent; }
public boolean containsAngle(double a) { double start = getAngleStart(); double end = start + getAngleExtent(); start %= 360; if (start < 0) start += 360; end %= 360; if (end < 0) end += 360; a %= 360; if (a < 0) a += 360; return a >= start && a <= end; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
if (start < 0)
while (start < 0)
public boolean containsAngle(double a) { double start = getAngleStart(); double end = start + getAngleExtent(); start %= 360; if (start < 0) start += 360; end %= 360; if (end < 0) end += 360; a %= 360; if (a < 0) a += 360; return a >= start && a <= end; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
if (end < 0)
while (end < start)
public boolean containsAngle(double a) { double start = getAngleStart(); double end = start + getAngleExtent(); start %= 360; if (start < 0) start += 360; end %= 360; if (end < 0) end += 360; a %= 360; if (a < 0) a += 360; return a >= start && a <= end; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
if (a < 0)
while (a < start)
public boolean containsAngle(double a) { double start = getAngleStart(); double end = start + getAngleExtent(); start %= 360; if (start < 0) start += 360; end %= 360; if (end < 0) end += 360; a %= 360; if (a < 0) a += 360; return a >= start && a <= end; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
double mw = getWidth(); double mh = getHeight(); if (mw <= 0 || mh <= 0 || w <= 0 || h <= 0)
double extent = getAngleExtent(); if (extent == 0) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Rectangle2D rect = new Rectangle2D.Double(x, y, w, h); double a = getWidth() / 2.0; double b = getHeight() / 2.0; double mx = getX() + a; double my ...
public boolean intersects(double x, double y, double w, double h) { double mw = getWidth(); double mh = getHeight(); if (mw <= 0 || mh <= 0 || w <= 0 || h <= 0) return false; // XXX Finish implementing. throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
throw new Error("not implemented");
public boolean intersects(double x, double y, double w, double h) { double mw = getWidth(); double mh = getHeight(); if (mw <= 0 || mh <= 0 || w <= 0 || h <= 0) return false; // XXX Finish implementing. throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java
protected abstract Rectangle2D makeBounds(double x, double y, double w, double h);
protected abstract Rectangle2D makeBounds(double x, double y, double w, double h);
protected abstract Rectangle2D makeBounds(double x, double y, double w, double h);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/560cf787ab92cba97cf57ce7b258e72947e5efbc/Arc2D.java/clean/core/src/classpath/java/java/awt/geom/Arc2D.java