rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
public SeparatorUI() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/SeparatorUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/SeparatorUI.java | ||
new RegisterGroupUsage(new RegisterEntry(X86Register.ESI, JvmType.INT), new RegisterEntry(X86Register.ESI, JvmType.REFERENCE), new RegisterEntry( X86Register.ESI, JvmType.FLOAT), false) }; | }; | protected RegisterGroupUsage[] initialize() { // The order of this array determines the cost of using the // register. // The cost of a register is lower when its index in this // array is higher. return new RegisterGroupUsage[] { new Reg... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6ad6198b74c08d19e793bf52867682597f899f43/X86RegisterPool.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86RegisterPool.java |
public X86Register request(Item owner, int jvmType, boolean supportBits8) { | public X86Register request(Item owner, int jvmType, boolean supportBits8) { | public X86Register request(Item owner, int jvmType, boolean supportBits8) { final int cnt = regs.length; for (int i = 0; i < cnt; i++) { final RegisterEntry re = regs[i]; if (re.jvmType == jvmType) { if (!supportBits8 || re.re... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6ad6198b74c08d19e793bf52867682597f899f43/X86RegisterPool.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86RegisterPool.java |
public X86RegisterPool() { | public X86RegisterPool(boolean lastFirst, int minimumRequestIndex) { this.lastFirst = lastFirst; this.minimumRequestIndex = minimumRequestIndex; | public X86RegisterPool() { this.registers = initialize(); this.regCount = registers.length; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6ad6198b74c08d19e793bf52867682597f899f43/X86RegisterPool.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86RegisterPool.java |
this.lastRequestIndex = regCount; | public X86RegisterPool() { this.registers = initialize(); this.regCount = registers.length; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6ad6198b74c08d19e793bf52867682597f899f43/X86RegisterPool.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86RegisterPool.java | |
this.lastRequestIndex = regCount; | public final void reset(X86Assembler os) { boolean inuse = false; for (int i = regCount - 1; i >= 0; i--) { if (!registers[i].isFree()) { os.log("Warning: register in use" + registers[i].getUsedRegister()); inuse = true; } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6ad6198b74c08d19e793bf52867682597f899f43/X86RegisterPool.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86RegisterPool.java | |
if (thumbRect.contains(e.getPoint())) thumbRollover = true; else thumbRollover = false; | public void mouseMoved(MouseEvent e) { // Not interested in where the mouse // is unless it is being dragged. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | |
return (value > scrollbar.getValue()); | return value > scrollbar.getValue(); | boolean shouldScroll(int direction) { int value; if (scrollbar.getOrientation() == HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (thumbRect.contains(currentMouseX, currentMouseY)) return false; if (direction == POSITI... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
return (value < scrollbar.getValue()); | return value < scrollbar.getValue(); | boolean shouldScroll(int direction) { int value; if (scrollbar.getOrientation() == HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (thumbRect.contains(currentMouseX, currentMouseY)) return false; if (direction == POSITI... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
case (JScrollBar.HORIZONTAL): | case JScrollBar.HORIZONTAL: | protected void installComponents() { int orientation = scrollbar.getOrientation(); switch (orientation) { case (JScrollBar.HORIZONTAL): incrButton = createIncreaseButton(EAST); decrButton = createDecreaseButton(WEST); break; default: incrButton = createIncreaseButton(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
else scrollbar.setValue(scrollbar.getValue() - scrollbar.getBlockIncrement(direction)); | protected void scrollByBlock(int direction) { scrollbar.setValue(scrollbar.getValue() + scrollbar.getBlockIncrement(direction)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | |
else scrollbar.setValue(scrollbar.getValue() - scrollbar.getUnitIncrement(direction)); | protected void scrollByUnit(int direction) { scrollbar.setValue(scrollbar.getValue() + scrollbar.getUnitIncrement(direction)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | |
return ((max - min) / 2); | return (max - min) / 2; | int valueForXPosition(int xPos) { int min = scrollbar.getMinimum(); int max = scrollbar.getMaximum(); int len = trackRect.width; int value; // If the length is 0, you shouldn't be able to even see where the slider is. // This really shouldn't ever happen, but just in case, we'll return the middle. ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
value = ((xPos - trackRect.x) * (max - min) / len + min); | value = (xPos - trackRect.x) * (max - min) / len + min; | int valueForXPosition(int xPos) { int min = scrollbar.getMinimum(); int max = scrollbar.getMaximum(); int len = trackRect.width; int value; // If the length is 0, you shouldn't be able to even see where the slider is. // This really shouldn't ever happen, but just in case, we'll return the middle. ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
return ((max - min) / 2); | return (max - min) / 2; | int valueForYPosition(int yPos) { int min = scrollbar.getMinimum(); int max = scrollbar.getMaximum(); int len = trackRect.height; int value; // If the length is 0, you shouldn't be able to even see where the thumb is. // This really shouldn't ever happen, but just in case, we'll return the middle. ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
value = ((yPos - trackRect.y) * (max - min) / len + min); | value = (yPos - trackRect.y) * (max - min) / len + min; | int valueForYPosition(int yPos) { int min = scrollbar.getMinimum(); int max = scrollbar.getMaximum(); int len = trackRect.height; int value; // If the length is 0, you shouldn't be able to even see where the thumb is. // This really shouldn't ever happen, but just in case, we'll return the middle. ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
scrollListener.setDirection(POSITIVE_SCROLL); else scrollListener.setDirection(NEGATIVE_SCROLL); | scrollListener.setDirection(POSITIVE_SCROLL); else if (e.getSource() == decrButton) scrollListener.setDirection(NEGATIVE_SCROLL); scrollTimer.setDelay(100); | public void mousePressed(MouseEvent e) { scrollTimer.stop(); scrollListener.setScrollByBlock(false); if (e.getSource() == incrButton) scrollListener.setDirection(POSITIVE_SCROLL); else scrollListener.setDirection(NEGATIVE_SCROLL); scrollTimer.start(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
scrollTimer.setDelay(300); if (e.getSource() == incrButton) scrollByUnit(POSITIVE_SCROLL); else if (e.getSource() == decrButton) scrollByUnit(NEGATIVE_SCROLL); | public void mouseReleased(MouseEvent e) { scrollTimer.stop(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | |
incrButton.addMouseListener(buttonListener); decrButton.addMouseListener(buttonListener); calculatePreferredSize(); } | incrButton.addMouseListener(buttonListener); decrButton.addMouseListener(buttonListener); calculatePreferredSize(); } | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("o... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
public void actionPerformed(ActionEvent e) { if (block) { // Only need to check it if it's block scrolling // We only block scroll if the click occurs // in the track. if (!trackListener.shouldScroll(direction)) { trackHighlight = NO_HIGHLIGHT; scrollbar.repaint(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | ||
{ trackHighlight = NO_HIGHLIGHT; scrollbar.repaint(); return; } scrollByBlock(direction); | { trackHighlight = NO_HIGHLIGHT; scrollbar.repaint(); return; } scrollByBlock(direction); | public void actionPerformed(ActionEvent e) { if (block) { // Only need to check it if it's block scrolling // We only block scroll if the click occurs // in the track. if (!trackListener.shouldScroll(direction)) { trackHighlight = NO_HIGHLIGHT; scrollbar.repaint(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
scrollByUnit(direction); | scrollByUnit(direction); | public void actionPerformed(ActionEvent e) { if (block) { // Only need to check it if it's block scrolling // We only block scroll if the click occurs // in the track. if (!trackListener.shouldScroll(direction)) { trackHighlight = NO_HIGHLIGHT; scrollbar.repaint(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
{ int value; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) value = valueForXPosition(currentMouseX) - offset; else value = valueForYPosition(currentMouseY) - offset; scrollbar.setValue(value); } | { int value; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) value = valueForXPosition(currentMouseX) - offset; else value = valueForYPosition(currentMouseY) - offset; scrollbar.setValue(value); } | public void mouseDragged(MouseEvent e) { currentMouseX = e.getX(); currentMouseY = e.getY(); if (scrollbar.getValueIsAdjusting()) { int value; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) value = valueForXPosition(currentMouseX) - offset; else value = valueFo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
if (value == scrollbar.getValue()) return; | public void mousePressed(MouseEvent e) { currentMouseX = e.getX(); currentMouseY = e.getY(); int value; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (value == scrollbar.getVal... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | |
offset = value - scrollbar.getValue(); } scrollbar.repaint(); | offset = value - scrollbar.getValue(); } scrollbar.repaint(); | public void mousePressed(MouseEvent e) { currentMouseX = e.getX(); currentMouseY = e.getY(); int value; if (scrollbar.getOrientation() == SwingConstants.HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (value == scrollbar.getVal... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
scrollTimer.stop(); if (scrollbar.getValueIsAdjusting()) scrollbar.setValueIsAdjusting(false); | scrollListener.setScrollByBlock(false); scrollbar.setValueIsAdjusting(true); | public void mouseReleased(MouseEvent e) { trackHighlight = NO_HIGHLIGHT; scrollTimer.stop(); if (scrollbar.getValueIsAdjusting()) scrollbar.setValueIsAdjusting(false); scrollbar.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
value = valueForXPosition(currentMouseX); | value = valueForXPosition(currentMouseX); | public boolean shouldScroll(int direction) { int value; if (scrollbar.getOrientation() == HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (direction == POSITIVE_SCROLL) return (value > scrollbar.getValue()); els... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
value = valueForYPosition(currentMouseY); | value = valueForYPosition(currentMouseY); | public boolean shouldScroll(int direction) { int value; if (scrollbar.getOrientation() == HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (direction == POSITIVE_SCROLL) return (value > scrollbar.getValue()); els... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
return (value > scrollbar.getValue()); | return (value > scrollbar.getValue()); | public boolean shouldScroll(int direction) { int value; if (scrollbar.getOrientation() == HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (direction == POSITIVE_SCROLL) return (value > scrollbar.getValue()); els... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
return (value < scrollbar.getValue()); | return (value < scrollbar.getValue()); | public boolean shouldScroll(int direction) { int value; if (scrollbar.getOrientation() == HORIZONTAL) value = valueForXPosition(currentMouseX); else value = valueForYPosition(currentMouseY); if (direction == POSITIVE_SCROLL) return (value > scrollbar.getValue()); els... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
protected void configureScrollBarColors() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); trackColor = defaults.getColor("ScrollBar.track"); trackHighlightColor = defaults.getColor("ScrollBar.trackHighlight"); thumbColor = defaults.getColor("ScrollBar.thumb"); thumbHighlightColor = defau... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | ||
{ thumbRect.x = trackRect.x; thumbRect.y = trackRect.y; if (scrollbar.getOrientation() == HORIZONTAL) | protected Rectangle getThumbBounds() { int max = scrollbar.getMaximum(); int min = scrollbar.getMinimum(); int value = scrollbar.getValue(); int extent = scrollbar.getVisibleAmount(); // System.err.println(this + ".getThumbBounds()"); if (max == min) { thumbRect.x = trackRect.x; thumbR... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | |
thumbRect.width = getMinimumThumbSize().width; thumbRect.height = trackRect.height; | thumbRect.x = trackRect.x; thumbRect.y = trackRect.y; if (scrollbar.getOrientation() == HORIZONTAL) { thumbRect.width = getMinimumThumbSize().width; thumbRect.height = trackRect.height; } else { thumbRect.width = trackRect.width; thumbRect.height = getMinimumThumbSize().height; } return thumbRect; | protected Rectangle getThumbBounds() { int max = scrollbar.getMaximum(); int min = scrollbar.getMinimum(); int value = scrollbar.getValue(); int extent = scrollbar.getVisibleAmount(); // System.err.println(this + ".getThumbBounds()"); if (max == min) { thumbRect.x = trackRect.x; thumbR... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
else { thumbRect.width = trackRect.width; thumbRect.height = getMinimumThumbSize().height; } return thumbRect; } | protected Rectangle getThumbBounds() { int max = scrollbar.getMaximum(); int min = scrollbar.getMinimum(); int value = scrollbar.getValue(); int extent = scrollbar.getVisibleAmount(); // System.err.println(this + ".getThumbBounds()"); if (max == min) { thumbRect.x = trackRect.x; thumbR... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | |
scrollTimer = new Timer(50, null); scrollTimer.setRepeats(true); | scrollTimer = new Timer(300, null); | public void installUI(JComponent c) { super.installUI(c); if (c instanceof JScrollBar) { scrollbar = (JScrollBar) c; trackRect = new Rectangle(); thumbRect = new Rectangle(); scrollTimer = new Timer(50, null); scrollTimer.setRepeats(true); installComponents(); installDefaults(); configureScrollBarColors()... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
g.fillRect(trackRect.x, trackRect.y, trackRect.width, | g.fillRect(trackRect.x, trackRect.y, trackRect.width, | protected void paintDecreaseHighlight(Graphics g) { Color saved = g.getColor(); g.setColor(trackHighlightColor); if (scrollbar.getOrientation() == HORIZONTAL) g.fillRect(trackRect.x, trackRect.y, thumbRect.x - trackRect.x, trackRect.height); else g.fillRect(trackRect.x, trackRec... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
else | else | protected void paintIncreaseHighlight(Graphics g) { Color saved = g.getColor(); g.setColor(trackHighlightColor); if (scrollbar.getOrientation() == HORIZONTAL) g.fillRect(thumbRect.x + thumbRect.width, trackRect.y, trackRect.x + trackRect.width - thumbRect.x - thumbRect.width, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
protected void uninstallListeners() { scrollTimer.removeActionListener(scrollListener); scrollbar.getModel().removeChangeListener(modelListener); scrollbar.removePropertyChangeListener(propertyChangeListener); decrButton.removeMouseListener(buttonListener); incrButton.removeMouseListener(butto... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | ||
protected void uninstallListeners() { scrollTimer.removeActionListener(scrollListener); scrollbar.getModel().removeChangeListener(modelListener); scrollbar.removePropertyChangeListener(propertyChangeListener); decrButton.removeMouseListener(buttonListener); incrButton.removeMouseListener(butto... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | ||
protected void uninstallListeners() { scrollTimer.removeActionListener(scrollListener); scrollbar.getModel().removeChangeListener(modelListener); scrollbar.removePropertyChangeListener(propertyChangeListener); decrButton.removeMouseListener(buttonListener); incrButton.removeMouseListener(butto... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | ||
protected void uninstallListeners() { scrollTimer.removeActionListener(scrollListener); scrollbar.getModel().removeChangeListener(modelListener); scrollbar.removePropertyChangeListener(propertyChangeListener); decrButton.removeMouseListener(buttonListener); incrButton.removeMouseListener(butto... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | ||
public void uninstallUI(JComponent c) { uninstallDefaults(); uninstallListeners(); uninstallComponents(); scrollTimer = null; thumbRect = null; trackRect = null; trackColor = null; trackHighlightColor = null; thumbColor = null; thumbHighlightColor = null; thumbDarkShadowC... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | ||
public void uninstallUI(JComponent c) { uninstallDefaults(); uninstallListeners(); uninstallComponents(); scrollTimer = null; thumbRect = null; trackRect = null; trackColor = null; trackHighlightColor = null; thumbColor = null; thumbHighlightColor = null; thumbDarkShadowC... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | ||
public void uninstallUI(JComponent c) { uninstallDefaults(); uninstallListeners(); uninstallComponents(); scrollTimer = null; thumbRect = null; trackRect = null; trackColor = null; trackHighlightColor = null; thumbColor = null; thumbHighlightColor = null; thumbDarkShadowC... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | ||
public void uninstallUI(JComponent c) { uninstallDefaults(); uninstallListeners(); uninstallComponents(); scrollTimer = null; thumbRect = null; trackRect = null; trackColor = null; trackHighlightColor = null; thumbColor = null; thumbHighlightColor = null; thumbDarkShadowC... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicScrollBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java | ||
public final void printMe() { Thread printerThread = new PrinterThread(screen,font,numCols,numRows,colorBg); printerThread.start();// //--- Create a printerJob object// PrinterJob printJob = PrinterJob.getPrinterJob ();// printJob.setJobName("tn5250j");//// //--- Set the printable class... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/b424408b7c5f668455972e5e401cbeda3a3ff25a/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | ||
private final void resizeScreenArea(int width, int height) { Font k = null; LineMetrics l; FontRenderContext f = null; k = GUIGraphicsUtils.getDerivedFont(font,width,height,numRows,numCols,sfh,sfw,ps132); f = new FontRenderContext(k.getTransform(),true,true); l = k.getLineMetrics("Wy",f... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/b424408b7c5f668455972e5e401cbeda3a3ff25a/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | ||
private final void resizeScreenArea(int width, int height) { Font k = null; LineMetrics l; FontRenderContext f = null; k = GUIGraphicsUtils.getDerivedFont(font,width,height,numRows,numCols,sfh,sfw,ps132); f = new FontRenderContext(k.getTransform(),true,true); l = k.getLineMetrics("Wy",f... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/b424408b7c5f668455972e5e401cbeda3a3ff25a/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java | ||
updateImage(dirty); | updateImage(r); | public void updateDirty() { // update the image updateImage(dirty); // update dirty to show that we have already painted that region of the // screen so do not do it again. dirty.setBounds(dirty.x,dirty.height,dirty.width,(int)(tArea.getHeight() - dirty.height)); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/b424408b7c5f668455972e5e401cbeda3a3ff25a/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java |
Element el = view.getElement(); | public float getSpan(GlyphView view, int p0, int p1, TabExpander te, float x) { Element el = view.getElement(); Font font = view.getFont(); FontMetrics fm = Toolkit.getDefaultToolkit().getFontMetrics(font); Segment txt = view.getText(p0, p1); int span = Utilities.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java | |
int width = fm.charsWidth(txt.array, txt.offset, txt.count); | Rectangle bounds = a instanceof Rectangle ? (Rectangle) a : a.getBounds(); TabExpander expander = view.getTabExpander(); int width = Utilities.getTabbedTextWidth(txt, fm, bounds.x, expander, view.getStartOffset()); | public Shape modelToView(GlyphView view, int pos, Position.Bias b, Shape a) throws BadLocationException { Element el = view.getElement(); Font font = view.getFont(); FontMetrics fm = view.getContainer().getFontMetrics(font); Segment txt = view.getText(el.getSt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
Rectangle bounds = a.getBounds(); | public Shape modelToView(GlyphView view, int pos, Position.Bias b, Shape a) throws BadLocationException { Element el = view.getElement(); Font font = view.getFont(); FontMetrics fm = view.getContainer().getFontMetrics(font); Segment txt = view.getText(el.getSt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java | |
bounds.x + width, height); | 0, height); | public Shape modelToView(GlyphView view, int pos, Position.Bias b, Shape a) throws BadLocationException { Element el = view.getElement(); Font font = view.getFont(); FontMetrics fm = view.getContainer().getFontMetrics(font); Segment txt = view.getText(el.getSt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
if (view.isSuperscript()) Utilities.drawTabbedText(txt, bounds.x, bounds.y + ascent - height / 2, g, tabEx, txt.offset); else if (view.isSubscript()) Utilities.drawTabbedText(txt, bounds.x, bounds.y + ascent + height / 2, g, tabEx, txt.offset); else | 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/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java | |
g.drawLine(bounds.x, bounds.y + strikeHeight, bounds.height + width, | g.drawLine(bounds.x, bounds.y + strikeHeight, bounds.x + width, | 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/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
g.drawLine(bounds.x, bounds.y + lineHeight, bounds.height + width, | g.drawLine(bounds.x, bounds.y + lineHeight, bounds.x + width, | 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/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
GlyphPainter painter = getGlyphPainter(); | public View breakView(int axis, int p0, float pos, float len) { if (axis == Y_AXIS) return this; checkPainter(); GlyphPainter painter = getGlyphPainter(); // Try to find a suitable line break. BreakIterator lineBreaker = BreakIterator.getLineInstance(); Segment txt = new Segment(); try ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java | |
BreakIterator lineBreaker = BreakIterator.getLineInstance(); | public View breakView(int axis, int p0, float pos, float len) { if (axis == Y_AXIS) return this; checkPainter(); GlyphPainter painter = getGlyphPainter(); // Try to find a suitable line break. BreakIterator lineBreaker = BreakIterator.getLineInstance(); Segment txt = new Segment(); try ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java | |
checkPainter(); | public float getAlignment(int axis) { float align; if (axis == Y_AXIS) { checkPainter(); GlyphPainter painter = getGlyphPainter(); float height = painter.getHeight(this); float descent = painter.getDescent(this); align = (height - descent) / height; } else ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java | |
align = (height - descent) / height; | float ascent = painter.getAscent(this); if (isSuperscript()) align = 1.0F; else if (isSubscript()) align = height > 0 ? (height - (descent + (ascent / 2))) / height : 0; else align = height > 0 ? (height - descent) / height : 0; | public float getAlignment(int axis) { float align; if (axis == Y_AXIS) { checkPainter(); GlyphPainter painter = getGlyphPainter(); float height = painter.getHeight(this); float descent = painter.getDescent(this); align = (height - descent) / height; } else ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
Element el = getElement(); AttributeSet atts = el.getAttributes(); String family = StyleConstants.getFontFamily(atts); int size = StyleConstants.getFontSize(atts); int style = Font.PLAIN; if (StyleConstants.isBold(atts)) style |= Font.BOLD; if (StyleConstants.isItalic(atts)) style |= Font.ITALIC; Font font = new Font(f... | Document doc = getDocument(); Font font = null; if (doc instanceof StyledDocument) { StyledDocument styledDoc = (StyledDocument) doc; font = styledDoc.getFont(getAttributes()); } else { Container c = getContainer(); if (c != null) font = c.getFont(); } | public Font getFont() { Element el = getElement(); AttributeSet atts = el.getAttributes(); String family = StyleConstants.getFontFamily(atts); int size = StyleConstants.getFontSize(atts); int style = Font.PLAIN; if (StyleConstants.isBold(atts)) style |= Font.BOLD; if (StyleConstants.isIta... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
if (axis == X_AXIS) | switch (axis) | 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/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
Element el = getElement(); | case X_AXIS: | 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/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
else span = painter.getHeight(this); | 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/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java | |
Element el = getElement(); | public void paint(Graphics g, Shape a) { Element el = getElement(); checkPainter(); getGlyphPainter().paint(this, g, a, getStartOffset(), getEndOffset()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java | |
getGlyphPainter().paint(this, g, a, getStartOffset(), getEndOffset()); | int p0 = getStartOffset(); int p1 = getEndOffset(); Container c = getContainer(); if (c instanceof JTextComponent) { JTextComponent tc = (JTextComponent) c; Highlighter h = tc.getHighlighter(); if (h instanceof LayeredHighlighter) { LayeredHighlighter lh = (LayeredHighlighter) h; lh.paintLayeredHighlights(g, p0, p1, ... | public void paint(Graphics g, Shape a) { Element el = getElement(); checkPainter(); getGlyphPainter().paint(this, g, a, getStartOffset(), getEndOffset()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/GlyphView.java/buggy/core/src/classpath/javax/javax/swing/text/GlyphView.java |
{ return 12; } | { return 13; } | public int getIconHeight() { return 12; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicIconFactory.java |
{ return 12; } | { return 13; } | public int getIconWidth() { return 12; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicIconFactory.java |
{ g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3)); g.setColor(saved); g.translate(-x, -y); } | { Color saved = g.getColor(); g.setColor(Color.BLACK); g.drawLine(3 + x, 5 + y, 3 + x, 9 + y); g.drawLine(4 + x, 5 + y, 4 + x, 9 + y); g.drawLine(5 + x, 7 + y, 9 + x, 3 + y); g.drawLine(5 + x, 8 + y, 9 + x, 4 + y); g.setColor(saved); } | public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3)); g.setColor(saved); g.transla... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicIconFactory.java |
protected final void implAccept(Socket socket) throws IOException { if (isClosed()) throw new SocketException("ServerSocket is closed"); // The Sun spec says that if we have an associated channel and // it is in non-blocking mode, we throw an IllegalBlockingModeException. // However, in our implemen... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/ServerSocket.java/buggy/core/src/classpath/java/java/net/ServerSocket.java | ||
BufferedReader br = new BufferedReader(new InputStreamReader(in, "8859_1")); | BufferedReader br = new BufferedReader(new InputStreamReader(in, "UTF-8")); | public void read(InputStream in) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(in, "8859_1")); read_main_section(getMainAttributes(), br); read_individual_sections(getEntries(), br); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(out, "8859_1"))); write_main_section(getMainAttributes(), pw); pw.println(); write_individual_sections(getEntries(), pw); if (pw.checkError()) { throw new JarException("Error while writing manifest"); } | BufferedOutputStream bos = out instanceof BufferedOutputStream ? (BufferedOutputStream) out : new BufferedOutputStream(out, 4096); write_main_section(getMainAttributes(), bos); bos.write(CRLF); write_individual_sections(getEntries(), bos); bos.flush(); | public void write(OutputStream out) throws IOException { PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(out, "8859_1"))); write_main_section(getMainAttributes(), pw); pw.println(); write_individual_sections(getEntries(), pw); if (pw.checkError()) { throw new Ja... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
private static void write_attribute_entry(Map.Entry entry, PrintWriter pw) throws JarException | private static void write_attribute_entry(Map.Entry entry, OutputStream out) throws IOException | private static void write_attribute_entry(Map.Entry entry, PrintWriter pw) throws JarException { String name = entry.getKey().toString(); String value = entry.getValue().toString(); if (name.equalsIgnoreCase("Name")) { throw new JarException("Attributes cannot be called 'Name'"); } if (name.start... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
write_header(name, value, pw); | write_header(name, value, out); | private static void write_attribute_entry(Map.Entry entry, PrintWriter pw) throws JarException { String name = entry.getKey().toString(); String value = entry.getValue().toString(); if (name.equalsIgnoreCase("Name")) { throw new JarException("Attributes cannot be called 'Name'"); } if (name.start... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
private static void write_entry_attributes(Attributes attr, PrintWriter pw) throws JarException | private static void write_entry_attributes(Attributes attr, OutputStream out) throws IOException | private static void write_entry_attributes(Attributes attr, PrintWriter pw) throws JarException { Iterator it = attr.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); write_attribute_entry(entry, pw); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
write_attribute_entry(entry, pw); | write_attribute_entry(entry, out); | private static void write_entry_attributes(Attributes attr, PrintWriter pw) throws JarException { Iterator it = attr.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); write_attribute_entry(entry, pw); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
private static void write_header(String name, String value, PrintWriter pw) { pw.print(name + ": "); | private static void write_header(String name, String value, OutputStream out) throws IOException { String target = name + ": "; byte[] b = target.getBytes("UTF-8"); if (b.length > 72) throw new IOException("Attribute's name already longer than 70 bytes"); | private static void write_header(String name, String value, PrintWriter pw) { pw.print(name + ": "); int last = 68 - name.length(); if (last > value.length()) { pw.println(value); } else { pw.println(value.substring(0, last)); } while (last < value.length()) { pw.print(" "); i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
int last = 68 - name.length(); if (last > value.length()) | if (b.length == 72) | private static void write_header(String name, String value, PrintWriter pw) { pw.print(name + ": "); int last = 68 - name.length(); if (last > value.length()) { pw.println(value); } else { pw.println(value.substring(0, last)); } while (last < value.length()) { pw.print(" "); i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
pw.println(value); | out.write(b); out.write(CRLF); target = " " + value; | private static void write_header(String name, String value, PrintWriter pw) { pw.print(name + ": "); int last = 68 - name.length(); if (last > value.length()) { pw.println(value); } else { pw.println(value.substring(0, last)); } while (last < value.length()) { pw.print(" "); i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
pw.println(value.substring(0, last)); | b = target.getBytes("UTF-8"); if (b.length < 73) { out.write(b); break; } n = 72; while (true) { b = target.substring(0, n).getBytes("UTF-8"); if (b.length < 73) break; n--; if (n < 1) throw new IOException("Header is unbreakable and longer than 72 bytes"); } out.write(b); out.write(CRLF); target = " " + target.sub... | private static void write_header(String name, String value, PrintWriter pw) { pw.print(name + ": "); int last = 68 - name.length(); if (last > value.length()) { pw.println(value); } else { pw.println(value.substring(0, last)); } while (last < value.length()) { pw.print(" "); i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
while (last < value.length()) { pw.print(" "); int end = (last + 69); if (end > value.length()) { pw.println(value.substring(last)); } else { pw.println(value.substring(last, end)); } last = end; } | out.write(CRLF); | private static void write_header(String name, String value, PrintWriter pw) { pw.print(name + ": "); int last = 68 - name.length(); if (last > value.length()) { pw.println(value); } else { pw.println(value.substring(0, last)); } while (last < value.length()) { pw.print(" "); i... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
private static void write_individual_sections(Map entries, PrintWriter pw) throws JarException | private static void write_individual_sections(Map entries, OutputStream out) throws IOException | private static void write_individual_sections(Map entries, PrintWriter pw) throws JarException { Iterator it = entries.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); write_header("Name", entry.getKey().toString(), pw); write_entry_attributes((Attributes) entr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
write_header("Name", entry.getKey().toString(), pw); write_entry_attributes((Attributes) entry.getValue(), pw); pw.println(); | write_header("Name", entry.getKey().toString(), out); write_entry_attributes((Attributes) entry.getValue(), out); out.write(CRLF); | private static void write_individual_sections(Map entries, PrintWriter pw) throws JarException { Iterator it = entries.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); write_header("Name", entry.getKey().toString(), pw); write_entry_attributes((Attributes) entr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
private static void write_main_attributes(Attributes attr, PrintWriter pw) throws JarException | private static void write_main_attributes(Attributes attr, OutputStream out) throws IOException | private static void write_main_attributes(Attributes attr, PrintWriter pw) throws JarException { Iterator it = attr.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); // Don't print the manifest version again if (!Attributes.Name.MANIFEST_VERSION.equals(entry.getK... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
{ write_attribute_entry(entry, pw); } | write_attribute_entry(entry, out); | private static void write_main_attributes(Attributes attr, PrintWriter pw) throws JarException { Iterator it = attr.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); // Don't print the manifest version again if (!Attributes.Name.MANIFEST_VERSION.equals(entry.getK... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
private static void write_main_section(Attributes attr, PrintWriter pw) throws JarException | private static void write_main_section(Attributes attr, OutputStream out) throws IOException | private static void write_main_section(Attributes attr, PrintWriter pw) throws JarException { write_version_info(attr, pw); write_main_attributes(attr, pw); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
write_version_info(attr, pw); write_main_attributes(attr, pw); | write_version_info(attr, out); write_main_attributes(attr, out); | private static void write_main_section(Attributes attr, PrintWriter pw) throws JarException { write_version_info(attr, pw); write_main_attributes(attr, pw); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
private static void write_version_info(Attributes attr, PrintWriter pw) | private static void write_version_info(Attributes attr, OutputStream out) throws IOException | private static void write_version_info(Attributes attr, PrintWriter pw) { // First check if there is already a version attribute set String version = attr.getValue(Attributes.Name.MANIFEST_VERSION); if (version == null) { version = "1.0"; } write_header(Attributes.Name.MANIFEST_VERSION.toString(), vers... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
write_header(Attributes.Name.MANIFEST_VERSION.toString(), version, pw); | write_header(Attributes.Name.MANIFEST_VERSION.toString(), version, out); | private static void write_version_info(Attributes attr, PrintWriter pw) { // First check if there is already a version attribute set String version = attr.getValue(Attributes.Name.MANIFEST_VERSION); if (version == null) { version = "1.0"; } write_header(Attributes.Name.MANIFEST_VERSION.toString(), vers... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eea27f084742358ddb097f7118c05cd257029453/Manifest.java/clean/core/src/classpath/java/java/util/jar/Manifest.java |
public void actionPerformed(ActionEvent e) { Object value = new Integer(JOptionPane.CLOSED_OPTION); Object[] options = optionPane.getOptions(); if (options != null) value = new Integer(buttonIndex); else { String text = ((JButton) e.getSource()).getText(); if (text.equals(OK_STRING... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicOptionPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicOptionPaneUI.java | ||
public void paintIcon(Component c, Graphics g, int x, int y) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicOptionPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicOptionPaneUI.java | ||
public BasicOptionPaneUI() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicOptionPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicOptionPaneUI.java | ||
bad.minor = Minor.Any; | public static UnknownEncoding extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (UnknownEncoding) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("UnknownEncoding expected"); bad... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/UnknownEncodingHelper.java/clean/core/src/classpath/org/org/omg/IOP/CodecFactoryPackage/UnknownEncodingHelper.java | |
if (this.next != null) { throw new SecurityException("Cannot set next twice"); } | if (this.next != null) { throw new SecurityException( "Cannot set next twice"); } | final void setNext(VmCompiledCode next) { if (this.next != null) { throw new SecurityException("Cannot set next twice"); } this.next = next; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/VmCompiledCode.java/buggy/core/src/core/org/jnode/vm/classmgr/VmCompiledCode.java |
return nativeCode; } | return nativeCode; } | final Address getNativeCode() { return nativeCode; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/VmCompiledCode.java/buggy/core/src/core/org/jnode/vm/classmgr/VmCompiledCode.java |
public final boolean contains(Class cls) { return contains(cls.getName()); | public final boolean contains(String className) { if (exceptions != null) { final int length = exceptions.length; for (int i = 0; i < length; i++) { final String name = exceptions[i].getClassName(); if (name.equals(className)) { return true; } } } return false; | public final boolean contains(Class cls) { return contains(cls.getName()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/VmExceptions.java/buggy/core/src/core/org/jnode/vm/classmgr/VmExceptions.java |
if (c.magic == magic) { return c; } | if (c.magic == magic) { return c; } | final VmCompiledCode lookup(int magic) { VmCompiledCode c = this; while (c != null) { if (c.magic == magic) { return c; } c = c.next; } return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/VmCompiledCode.java/buggy/core/src/core/org/jnode/vm/classmgr/VmCompiledCode.java |
public PointerEvent(int buttons, int x, int y, boolean absolute) { this(buttons, x, y, 0, absolute); | public PointerEvent(int buttons, int x, int y, int z, boolean absolute) { this.buttons = buttons; this.x = x; this.y = y; this.z = z; this.absolute = absolute; | public PointerEvent(int buttons, int x, int y, boolean absolute) { this(buttons, x, y, 0, absolute); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/PointerEvent.java/clean/core/src/driver/org/jnode/driver/input/PointerEvent.java |
public void parse(Reader reader, HTMLEditorKit.ParserCallback a_callback, | public void parse(Reader reader, HTMLEditorKit.ParserCallback aCallback, | public void parse(Reader reader, HTMLEditorKit.ParserCallback a_callback, boolean ignoreCharSet ) throws IOException { callBack = a_callback; gnu.parse(reader); callBack.handleEndOfLineString(gnu.getEndOfLineSequence()); try { callBack.flush();... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/DocumentParser.java/buggy/core/src/classpath/javax/javax/swing/text/html/parser/DocumentParser.java |
callBack = a_callback; | callBack = aCallback; | public void parse(Reader reader, HTMLEditorKit.ParserCallback a_callback, boolean ignoreCharSet ) throws IOException { callBack = a_callback; gnu.parse(reader); callBack.handleEndOfLineString(gnu.getEndOfLineSequence()); try { callBack.flush();... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/DocumentParser.java/buggy/core/src/classpath/javax/javax/swing/text/html/parser/DocumentParser.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.