rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
protected EmptySelectionModel() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java
protected TreeModelHandler() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java
protected TreeSelectionRedirector() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java
public void collapsePath(TreePath path) { try { fireTreeWillCollapse(path); } catch (ExpandVetoException ev) { } setExpandedState(path, false); fireTreeCollapsed(path); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java
public void expandPath(TreePath path) { // Don't expand if last path component is a leaf node. if ((path == null) || (treeModel.isLeaf(path.getLastPathComponent()))) return; try { fireTreeWillExpand(path); } catch (ExpandVetoException ev) { } setExpandedState(path, true...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java
if (rect == null) return;
public void scrollPathToVisible(TreePath path) { if (path == null) return; Rectangle rect = getPathBounds(path); if (rect == null) return; scrollRectToVisible(rect); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java
setSelectionPath(temp);
public void scrollPathToVisible(TreePath path) { if (path == null) return; Rectangle rect = getPathBounds(path); if (rect == null) return; scrollRectToVisible(rect); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java
revalidate(); repaint();
public void updateUI() { setUI((TreeUI) UIManager.getUI(this)); revalidate(); repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java
if (text == null) { return;
if (isStatusErrorCode() && !resetRequired) { resetError(); if (!cursorActive) setCursorOn();
public void sendKeys(String text) { if (text == null) { return; } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { simulateMnemonic(getMnemonicValue(text)); } else { if (isStatu...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/69e4ad8b79244d7a9ead6ae9be5f21d5cf302742/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
if (isStatusErrorCode() && !Character.isISOControl(c) && !keyProcessed) { return false; }
protected boolean simulateKeyStroke(char c){ if (isStatusErrorCode() && !Character.isISOControl(c) && !keyProcessed) { return false; } boolean updateField = false; boolean numericError = false; boolean updatePos = false; boolean autoEnter = false; if (!Character.isISOContro...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/69e4ad8b79244d7a9ead6ae9be5f21d5cf302742/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
restoreErrorLine(); setStatus(STATUS_ERROR_CODE,STATUS_VALUE_OFF,"");
resetError();
protected boolean simulateMnemonic(int mnem){ boolean simulated = false; switch (mnem) { case AID_CLEAR : case AID_ENTER : case AID_PF1 : case AID_PF2 : case AID_PF3 : case AID_PF4 : case AID_PF5 : case AID_PF6 : case AID_PF7 : ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/69e4ad8b79244d7a9ead6ae9be5f21d5cf302742/Screen5250.java/buggy/tn5250j/src/org/tn5250j/Screen5250.java
NIODatagramSocket socket = (NIODatagramSocket) ((DatagramChannelImpl) ch).socket(); return socket.getPlainDatagramSocketImpl().getNativeFD();
try { return ((DatagramChannelImpl) ch).getVMChannel().getState().getNativeFD(); } catch (IOException ioe) { throw new IllegalStateException(ioe); }
public int getNativeFD() { NIODatagramSocket socket = (NIODatagramSocket) ((DatagramChannelImpl) ch).socket(); return socket.getPlainDatagramSocketImpl().getNativeFD(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0775c21093571dbb049293760df0896d396210d3/DatagramChannelSelectionKey.java/buggy/core/src/classpath/gnu/gnu/java/nio/DatagramChannelSelectionKey.java
if (name != null && value != null) ((XMLAttribute) this.attribHash.get(name)).setAttribValue(value);
if (this.attribHash.containsKey(name)) { ((XMLAttribute) this.attribHash.get(name)).setAttribValue(value); } else Log.errorln("Error: cant set XMLAttribute:["+name+"], doesnt exist in object:"+this);
protected void setXMLAttributes (AttributeList attrs) { // set object attributes from an AttributeList if (attrs != null) { // whip thru the list, setting each value int size = attrs.getLength(); for (int i = 0; i < size; i++) { String name = attrs.getName(i); String v...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/bfee19921ef538aa21c054e378ea6e671cdffc30/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
rp.setBackground(UIManager.getColor("control"));
protected void installDefaults(JRootPane rp) { // Is this ok? rp.setBackground(UIManager.getColor("control")); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/BasicRootPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicRootPaneUI.java
x = x + 5; y = y + 5; if (collapsed) {
public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalIconFactory.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, y + 3, 5, 2); g.drawLine(x + 7, y + 5, x + 6, y + 6); g.drawLine(x + 1, y + 1, x + 1, y + 1); g.drawLine(x, y + 2, x, y + 5); g.drawLine(x + 1, y + 6, x + 1, y + 6); g.drawLine(x + 2, y + 7, x + 5, y + 7);...
Color dark = new Color(99, 130, 191); Color light = new Color(163, 184, 204); Color white = Color.white;
public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalIconFactory.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
g.setColor(new Color(204, 204, 255)); g.drawLine(x + 3, y + 2, x + 4, y + 2); g.drawLine(x + 2, y + 3, x + 2, y + 4); g.drawLine(x + 3, y + 5, x + 3, y + 5); g.drawLine(x + 5, y + 3, x + 5, y + 3);
x += 8; y += 6; final int w = 6; final int wHalf = (w >> 2); g.setColor(light); g.drawOval(x, y, w, w); g.setColor(dark); g.fillOval(x + 1, y + 1, w - 1, w - 1); if (collapsed) g.fillRect(x + w, y + wHalf + 1, w, 2); else g.fillRect(x + wHalf + 1, y + w, 2, w); g.setColor(white); g.fillRect(x + wHalf + 1, y + wHalf ...
public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalIconFactory.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
g.setColor(new Color(153, 153, 204)); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 5, x + 2, y + 5); g.drawLine(x + 2, y + 6, x + 5, y + 6); g.drawLine(x + 5, y + 2, x + 5, y + 2); g.drawLine(x + 6, y + 2, x + 6, y + 5); g.setColor(new Color(102, 102, 153)); g.drawLine(x + 2, y + 1, x + 5, y + 1); g.d...
public void paintIcon(Component c, Graphics g, int x, int y) { x = x + 5; y = y + 5; if (collapsed) { // TODO: pick up appropriate UI colors g.setColor(Color.black); g.drawLine(x + 2, y, x + 5, y); g.drawLine(x + 6, y + 1, x + 7, y + 2); g.fillRect(x + 7, ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalIconFactory.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
return new HorizontalSliderThumbIcon();
if (horizontalSliderThumbIcon == null) horizontalSliderThumbIcon = new HorizontalSliderThumbIcon(); return horizontalSliderThumbIcon;
public static Icon getHorizontalSliderThumbIcon() { return new HorizontalSliderThumbIcon(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalIconFactory.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
return new VerticalSliderThumbIcon();
if (verticalSliderThumbIcon == null) verticalSliderThumbIcon = new VerticalSliderThumbIcon(); return verticalSliderThumbIcon;
public static Icon getVerticalSliderThumbIcon() { return new VerticalSliderThumbIcon(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/MetalIconFactory.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(k); if (kpc == null) { throw new KeyAgreementException(""); } byte[] b = kpc.encodePrivateKey(k); int length = b.length; if (length > Registry.SASL_FOUR_BYTE_MAX_LIMIT) { throw new KeyAgreementException("encoded private key is too long"); } byte[] lengthBytes = { (byt...
writeKey(k);
public void writePrivateKey(PrivateKey k) throws KeyAgreementException { IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(k); if (kpc == null) { throw new KeyAgreementException(""); } byte[] b = kpc.encodePrivateKey(k); int length = b.length; if (length > Registry.SASL_FOUR_BYTE_MA...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/OutgoingMessage.java/buggy/core/src/classpath/gnu/gnu/javax/crypto/key/OutgoingMessage.java
IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(k); if (kpc == null) { throw new KeyAgreementException(""); } byte[] b = kpc.encodePublicKey(k); int length = b.length; if (length > Registry.SASL_FOUR_BYTE_MAX_LIMIT) { throw new KeyAgreementException("encoded public key is too long"); } byte[] lengthBytes = { (byte)...
writeKey(k);
public void writePublicKey(PublicKey k) throws KeyAgreementException { IKeyPairCodec kpc = KeyPairCodecFactory.getInstance(k); if (kpc == null) { throw new KeyAgreementException(""); } byte[] b = kpc.encodePublicKey(k); int length = b.length; if (length > Registry.SASL_FOUR_BYTE_MAX_L...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/OutgoingMessage.java/buggy/core/src/classpath/gnu/gnu/javax/crypto/key/OutgoingMessage.java
drawLine(currStart, currEnd, g, rect.x, rect.y);
drawLine(currStart, currEnd, g, rect.x, rect.y + metrics.getAscent());
public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getFo...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/WrappedPlainView.java/clean/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java
this.hide();
this.setVisible(false);
private void fillQueryTextArea() { queryTextArea.append(queryBuilder.getQuery()); this.hide(); this.dispose(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/SqlWizard.java/buggy/tn5250j/src/org/tn5250j/sql/SqlWizard.java
return new StyleSheet();
StyleSheet styleSheet = new StyleSheet(); styleSheet.importStyleSheet(getClass().getResource(HTMLEditorKit.DEFAULT_CSS)); return styleSheet;
protected StyleSheet getStyleSheet() { // FIXME: Not implemented properly. return new StyleSheet(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/BlockView.java/buggy/core/src/classpath/javax/javax/swing/text/html/BlockView.java
boolean graphicsDebugMode = false;
public void installUI(JComponent c) { if (c instanceof JTerminal) { this.terminal = (JTerminal)c; boolean graphicsDebugMode = false; if (graphicsDebugMode) { javax.swing.RepaintManager repaintManager = javax.swing.RepaintManager.currentManager(terminal); repaintManager.setDoub...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e6f566dd6d1e23e7327cf1676228eb4318efd0d8/BasicTerminalUI.java/clean/tn5250j/src/org/tn5250j/swing/ui/BasicTerminalUI.java
public int getStyle () { return peer.getStyle (this); }
public int getStyle() { return peer.getStyle(this); }
public int getStyle (){ return peer.getStyle (this);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/Font.java/buggy/core/src/classpath/java/java/awt/Font.java
super(name, description); this.multi = multi; }
super(name, description); this.multi = multi; }
public Argument(String name, String description, boolean multi) { super(name, description); this.multi = multi; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8475fed231619f209c4398ccad2ba966899e292d/Argument.java/buggy/shell/src/shell/org/jnode/shell/help/Argument.java
this.values = new String[0]; setSatisfied(false); }
this.values = new String[ 0]; setSatisfied(false); }
protected final void clear() { this.values = new String[0]; setSatisfied(false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8475fed231619f209c4398ccad2ba966899e292d/Argument.java/buggy/shell/src/shell/org/jnode/shell/help/Argument.java
if (items.length == 0) return ""; String result = items[0]; for (int i = 1; i < items.length; i++) { while (!items[i].startsWith(result)) result = result.substring(0, result.length() - 1); } return result; }
if (items.length == 0) return ""; String result = items[ 0]; for (int i = 1; i < items.length; i++) { while (!items[ i].startsWith(result)) result = result.substring(0, result.length() - 1); } return result; }
protected String common(String[] items) { if (items.length == 0) return ""; String result = items[0]; for (int i = 1; i < items.length; i++) { while (!items[i].startsWith(result)) // shorten the result until it matches result = result.substring(0, result.length() - 1); } return result; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8475fed231619f209c4398ccad2ba966899e292d/Argument.java/buggy/shell/src/shell/org/jnode/shell/help/Argument.java
return partial; }
return partial; }
public String complete(String partial) { // No completion per default return partial; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8475fed231619f209c4398ccad2ba966899e292d/Argument.java/buggy/shell/src/shell/org/jnode/shell/help/Argument.java
help.describeArgument(this); }
help.describeArgument(this); }
public void describe(Help help) { help.describeArgument(this); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8475fed231619f209c4398ccad2ba966899e292d/Argument.java/buggy/shell/src/shell/org/jnode/shell/help/Argument.java
return "<" + getName() + ">" + (isMulti() ? " ..." : ""); }
return "<" + getName() + ">" + (isMulti() ? " ..." : ""); }
public String format() { return "<" + getName() + ">" + (isMulti() ? " ..." : ""); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8475fed231619f209c4398ccad2ba966899e292d/Argument.java/buggy/shell/src/shell/org/jnode/shell/help/Argument.java
String[] result = getValues(args); if( (result == null) || (result.length == 0) ) return null; return result[0]; }
String[] result = getValues(args); if ((result == null) || (result.length == 0)) return null; return result[ 0]; }
public final String getValue(ParsedArguments args) { String[] result = getValues(args); if( (result == null) || (result.length == 0) ) return null; return result[0]; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8475fed231619f209c4398ccad2ba966899e292d/Argument.java/buggy/shell/src/shell/org/jnode/shell/help/Argument.java
return args.getValues(this); }
return args.getValues(this); }
public final String[] getValues(ParsedArguments args) { return args.getValues(this); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8475fed231619f209c4398ccad2ba966899e292d/Argument.java/buggy/shell/src/shell/org/jnode/shell/help/Argument.java
return multi; }
return multi; }
public boolean isMulti() { return multi; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8475fed231619f209c4398ccad2ba966899e292d/Argument.java/buggy/shell/src/shell/org/jnode/shell/help/Argument.java
return satisfied; }
return satisfied; }
public final boolean isSatisfied() { return satisfied; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8475fed231619f209c4398ccad2ba966899e292d/Argument.java/buggy/shell/src/shell/org/jnode/shell/help/Argument.java
try { ShellUtils.getShellManager().getCurrentShell().list(items); } catch (NameNotFoundException ex) { System.err.println("No list available"); } }
try { ShellUtils.getShellManager().getCurrentShell().list(items); } catch (NameNotFoundException ex) { System.err.println("No list available"); } }
public void list(String[] items) { try { ShellUtils.getShellManager().getCurrentShell().list(items); } catch (NameNotFoundException ex) { // should not happen! System.err.println("No list available"); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8475fed231619f209c4398ccad2ba966899e292d/Argument.java/buggy/shell/src/shell/org/jnode/shell/help/Argument.java
this.satisfied = satisfied; }
this.satisfied = satisfied; }
protected final void setSatisfied(boolean satisfied) { this.satisfied = satisfied; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8475fed231619f209c4398ccad2ba966899e292d/Argument.java/buggy/shell/src/shell/org/jnode/shell/help/Argument.java
if (isMulti()) { String[] values = new String[this.values.length + 1]; System.arraycopy(this.values, 0, values, 0, this.values.length); values[this.values.length] = value; this.values = values; } else { this.values = new String[] { value }; } setSatisfied(!isMulti()); }
if (isMulti()) { String[] values = new String[ this.values.length + 1]; System.arraycopy(this.values, 0, values, 0, this.values.length); values[ this.values.length] = value; this.values = values; } else { this.values = new String[] { value}; } setSatisfied(!isMulti()); }
protected final void setValue(String value) { if (isMulti()) { String[] values = new String[this.values.length + 1]; System.arraycopy(this.values, 0, values, 0, this.values.length); values[this.values.length] = value; this.values = values; } else { this.values = new String[] { value }; } setSatisfied(!is...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8475fed231619f209c4398ccad2ba966899e292d/Argument.java/buggy/shell/src/shell/org/jnode/shell/help/Argument.java
if (delimiter !=null) writeOut(outputstream, " delimiter =\"" + delimiter + "\""); writeOut(outputstream, " repeatable=\"" + repeatable + "\""); if (recordTerminator !=null) writeOut(outputstream, " recordTerminator=\"" + recordTerminator + "\"/>");
if (delimiter !=null) { writeOut(outputstream, " delimiter =\""); writeOutAttribute(outputstream, delimiter); writeOut(outputstream, "\""); } writeOut(outputstream, " repeatable=\""); writeOutAttribute(outputstream, repeatable); writeOut(outputstream, "\""); if (recordTerminator !=null) { writeOut(outputstream, " rec...
private void nestedToXDF(OutputStream outputstream, String indent, int which, int stop) { String delimiter = getDelimiter(); String repeatable = getRepeatable(); String recordTerminator = getRecordTerminator(); if (which > stop) { if (Specification.getInstance().isPrettyXDFOutput()) { writ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/469583f484a02708171e26fa8233ca46ebf80d9b/DelimitedXMLDataIOStyle.java/buggy/src/gov/nasa/gsfc/adc/xdf/DelimitedXMLDataIOStyle.java
fireScreenChanged(1);
updateDirty();
protected void repaintScreen() { //drawing = true;// dirty.setBounds(tArea.getBounds()); dirtyScreen.setBounds(0,lenScreen - 1,0,0);// if (gui.getGraphics() != null) { // do not forget to null out gg2d before update or else there will // be a very hard to trace screen ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e6f566dd6d1e23e7327cf1676228eb4318efd0d8/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
public final void setRowsCols(int rows, int cols) { // default number of rows and columns numRows = rows; numCols = cols; lenScreen = numRows * numCols; planes.setSize(rows); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e6f566dd6d1e23e7327cf1676228eb4318efd0d8/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
if (oldRows != numRows || oldCols != numCols) fireScreenSizeChanged();
public final void setRowsCols(int rows, int cols) { // default number of rows and columns numRows = rows; numCols = cols; lenScreen = numRows * numCols; planes.setSize(rows); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e6f566dd6d1e23e7327cf1676228eb4318efd0d8/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) {
if (indent!=null)
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/d3431fd4cfa64e555ed2b2cb97152668db13086f/XMLDataIOStyle.java/clean/src/gov/nasa/gsfc/adc/xdf/XMLDataIOStyle.java
}
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/d3431fd4cfa64e555ed2b2cb97152668db13086f/XMLDataIOStyle.java/clean/src/gov/nasa/gsfc/adc/xdf/XMLDataIOStyle.java
String moreIndent = super.sPrettyXDFOutputIndentation;
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/d3431fd4cfa64e555ed2b2cb97152668db13086f/XMLDataIOStyle.java/clean/src/gov/nasa/gsfc/adc/xdf/XMLDataIOStyle.java
if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "<"+classXDFNodeName + ">"); if (niceOutput)
writeOut(outputstream, "<read"); Hashtable xmlInfo = getXMLInfo(); ArrayList attribs = (ArrayList) xmlInfo.get("attribList"); synchronized(attribs) { int stop = attribs.size(); for (int i = 0; i < stop; i++) { Hashtable item = (Hashtable) attribs.get(i); writeOut(outputstream, " "+ item.get("name") + "=\"" + item....
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/d3431fd4cfa64e555ed2b2cb97152668db13086f/XMLDataIOStyle.java/clean/src/gov/nasa/gsfc/adc/xdf/XMLDataIOStyle.java
String nextIndent = myIndent + moreIndent; List indents = new ArrayList(); List axisList = getParentArray().getAxisList(); String axisId; for (int i = 0; i< axisList.size(); i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); indents.add(nextIndent); if (niceOutput) writeOut(outputstream, nextIndent); writeO...
writeOut(outputstream, indent);
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/d3431fd4cfa64e555ed2b2cb97152668db13086f/XMLDataIOStyle.java/clean/src/gov/nasa/gsfc/adc/xdf/XMLDataIOStyle.java
if (niceOutput) writeOut(outputstream, myIndent); writeOut(outputstream, "< if (niceOutput) writeOut(outputstream, Constants.NEW_LINE);
writeOut(outputstream, "</read>"); if (niceOutput) { writeOut(outputstream,Constants.NEW_LINE); }
public void toXDFOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent ) { String myIndent; boolean niceOutput = super.sPrettyXDFOutput; if (indent !=null) { myIndent = indent; ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/d3431fd4cfa64e555ed2b2cb97152668db13086f/XMLDataIOStyle.java/clean/src/gov/nasa/gsfc/adc/xdf/XMLDataIOStyle.java
final String lineNr = getLineNr(); final String linePrefix; final String line; if (isInterpreted()) { linePrefix = ""; } else { linePrefix = "*"; } /*if (lineNr < 0) { line = "?"; } else { line = String.valueOf(lineNr); }*/ line = lineNr;
final String location = getLocationInfo();
public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String line...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ed15438ffd2660dd945871e91d68689a27418753/VmStackFrame.java/clean/core/src/core/org/jnode/vm/VmStackFrame.java
return cname + "!" + mname + " (" + linePrefix + line + ")";
return cname + "!" + mname + " (" + location + ")";
public String toString() { final VmMethod method = sfMethod; final VmType vmClass = (method == null) ? null : method.getDeclaringClass(); final String cname = (vmClass == null) ? "<unknown class>" : vmClass.getName(); final String mname = (method == null) ? "<unknown method>" : method.getName(); final String line...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ed15438ffd2660dd945871e91d68689a27418753/VmStackFrame.java/clean/core/src/core/org/jnode/vm/VmStackFrame.java
registerAPI(BlockDeviceAPI.class, this);
registerAPI(FSBlockDeviceAPI.class, this);
public FileDevice(File file, String mode) throws FileNotFoundException, IOException { super(null, "file" + System.currentTimeMillis()); raf = new RandomAccessFile(file, mode); registerAPI(BlockDeviceAPI.class, this); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af3e25629c7bca20276f004befd3b45af9fa6102/FileDevice.java/buggy/fs/src/driver/org/jnode/driver/block/FileDevice.java
if (codePage.toLowerCase().startsWith("870")) {
if (codePage.toLowerCase().startsWith("870-pl")) {
public void setCodePage (String newCodePage) { if (!codePage.toLowerCase().equals(newCodePage.toLowerCase())) { codePage = newCodePage; int i = 0; int[] cp = CharMappings.getCodePage(codePage); do { ebcdic[i] = cp[i]; ascii[cp[i]] = i; } while(++i < ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/bc7e11ab017c3feeba41d87e99dba276258b7c41/CodePage.java/clean/tn5250j/src/org/tn5250j/tools/CodePage.java
protected AccessibleJMenu() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java
public void addAccessibleSelection(int value0) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java
public void clearAccessibleSelection() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java
public void removeAccessibleSelection(int value0) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java
public void selectAllAccessibleSelection() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java
public WinListener(JPopupMenu popup) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java
setSelected(false);
public void windowClosing(WindowEvent event) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java
protected void processKeyEvent(KeyEvent event) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java
public Offset add (Extent byteSize) {
public Offset add (int byteSize) {
public Offset add (Extent byteSize) { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/Offset.java/buggy/core/src/vmmagic/org/vmmagic/unboxed/Offset.java
public Gui5250Frame(My5250 m) {
public Gui5250Frame(My5250 m, int seq) {
public Gui5250Frame(My5250 m) { me = m; enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/Gui5250Frame.java/clean/tn5250j/src/org/tn5250j/Gui5250Frame.java
sequence = seq;
public Gui5250Frame(My5250 m) { me = m; enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/Gui5250Frame.java/clean/tn5250j/src/org/tn5250j/Gui5250Frame.java
this.setTitle("tn5250j - 0.5.2");
String release = "0"; String version = ".5"; String subVer= ".2b"; if (sequence > 0) setTitle("tn5250j <" + sequence + ">- " + release + version + subVer); else setTitle("tn5250j - " + release + version + subVer);
private void jbInit() throws Exception { this.getContentPane().setLayout(borderLayout1); this.setTitle("tn5250j - 0.5.2"); sessionPane.setBorder(BorderFactory.createEtchedBorder()); sessionPane.setBounds(new Rectangle(78, 57, 5, 5)); sessionPane.setOpaque(false); sessionPane.setRequestF...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/Gui5250Frame.java/clean/tn5250j/src/org/tn5250j/Gui5250Frame.java
sessionPane.addChangeListener(this); centerFrame();
private void jbInit() throws Exception { this.getContentPane().setLayout(borderLayout1); this.setTitle("tn5250j - 0.5.2"); sessionPane.setBorder(BorderFactory.createEtchedBorder()); sessionPane.setBounds(new Rectangle(78, 57, 5, 5)); sessionPane.setOpaque(false); sessionPane.setRequestF...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/Gui5250Frame.java/clean/tn5250j/src/org/tn5250j/Gui5250Frame.java
if (isSpecified("-noembed",args)) {
if (isSpecified("-noembed",args) && sessionCount > 0) {
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/f52e120f4b072f8182a63cabcbd78ab384f485ad/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java
public void internalFrameClosing(InternalFrameEvent e) { displayMessage("Internal frame closing", e); }
public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); }
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30721cddb6f3d35f09b37ba5851be12f1440daa4/Gui5250MDIFrame.java/clean/tn5250j/src/org/tn5250j/Gui5250MDIFrame.java
public void internalFrameClosed(InternalFrameEvent e) { displayMessage("Internal frame closed", e); }
public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); }
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30721cddb6f3d35f09b37ba5851be12f1440daa4/Gui5250MDIFrame.java/clean/tn5250j/src/org/tn5250j/Gui5250MDIFrame.java
public void internalFrameOpened(InternalFrameEvent e) { displayMessage("Internal frame opened", e); }
public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); }
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30721cddb6f3d35f09b37ba5851be12f1440daa4/Gui5250MDIFrame.java/clean/tn5250j/src/org/tn5250j/Gui5250MDIFrame.java
public void internalFrameIconified(InternalFrameEvent e) { displayMessage("Internal frame iconified", e); }
public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); }
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30721cddb6f3d35f09b37ba5851be12f1440daa4/Gui5250MDIFrame.java/clean/tn5250j/src/org/tn5250j/Gui5250MDIFrame.java
public void internalFrameDeiconified(InternalFrameEvent e) { displayMessage("Internal frame deiconified", e); }
public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); }
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30721cddb6f3d35f09b37ba5851be12f1440daa4/Gui5250MDIFrame.java/clean/tn5250j/src/org/tn5250j/Gui5250MDIFrame.java
public void internalFrameActivated(InternalFrameEvent e) { displayMessage("Internal frame activated", e); repaint(); } public void internalFrameDeactivated(InternalFrameEvent e) { displayMessage("Internal frame deactivated", e); }
public void internalFrameDeactivated(InternalFrameEvent e) { displayMessage("Internal frame deactivated", e); }
public MyInternalFrame() { super("#" + (++openFrameCount), true, //resizable true, //closable true, //maximizable true);//iconifiable //...Create the GUI and put it in the window... //...Then set the window size or call pack... se...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30721cddb6f3d35f09b37ba5851be12f1440daa4/Gui5250MDIFrame.java/clean/tn5250j/src/org/tn5250j/Gui5250MDIFrame.java
JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame();
MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); MyInternalFrame miv = (MyInternalFrame)desktop.getSelectedFrame();
private void nextSession() { JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index < desktop.getComponentCount() - 1) { try { frames[index + 1].setSelected(true); } catch...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30721cddb6f3d35f09b37ba5851be12f1440daa4/Gui5250MDIFrame.java/clean/tn5250j/src/org/tn5250j/Gui5250MDIFrame.java
Session ses = (Session)changeEvent.getSource(); switch (changeEvent.getState()) { case STATE_CONNECTED: final String d = ses.getAllocDeviceName(); if (d != null) { System.out.println(changeEvent.getState() + " " + d); final int index = desktop.getIndexOf(ses); Runnable tc = new Runnable () { public void run() { JInt...
public void onSessionChanged(SessionChangeEvent changeEvent) { }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30721cddb6f3d35f09b37ba5851be12f1440daa4/Gui5250MDIFrame.java/clean/tn5250j/src/org/tn5250j/Gui5250MDIFrame.java
JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame();
MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); MyInternalFrame miv = (MyInternalFrame)desktop.getSelectedFrame();
private void prevSession() { JInternalFrame[] frames = desktop.getAllFrames(); JInternalFrame miv = desktop.getSelectedFrame(); int index = desktop.getIndexOf(miv); if (index == 0) {// desktop.setSelectedFrame(frames[frames.length - 1]); try { frames[frames.length - 1]....
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30721cddb6f3d35f09b37ba5851be12f1440daa4/Gui5250MDIFrame.java/clean/tn5250j/src/org/tn5250j/Gui5250MDIFrame.java
JInternalFrame[] frames = desktop.getAllFrames();
MyInternalFrame[] frames = (MyInternalFrame[])desktop.getAllFrames(); int index = desktop.getIndexOf(targetSession); System.out.println("session found and closing down " + index); targetSession.removeSessionListener(this); targetSession.removeSessionJumpListener(this); desktop.remove(index);
public void removeSessionView(Session targetSession) { JInternalFrame[] frames = desktop.getAllFrames(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30721cddb6f3d35f09b37ba5851be12f1440daa4/Gui5250MDIFrame.java/clean/tn5250j/src/org/tn5250j/Gui5250MDIFrame.java
JMenuBar mb = (JMenuBar) ((JMenu)menuItem).getParent();
JMenuBar mb = (JMenuBar) ((JMenu) menuItem).getParent();
private boolean popupVisible() { JMenuBar mb = (JMenuBar) ((JMenu)menuItem).getParent(); // check if mb.isSelected because if no menus are selected // we don't have to look through the list for popup menus if (!mb.isSelected()) return false; for (int i=0;i<mb.getMenuCount();i++) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicMenuUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuUI.java
for (int i=0;i<mb.getMenuCount();i++) if (((JMenu)mb.getComponent(i)).isPopupMenuVisible())
for (int i = 0; i < mb.getMenuCount(); i++) { JMenu m = mb.getMenu(i); if (m != null && m.isPopupMenuVisible())
private boolean popupVisible() { JMenuBar mb = (JMenuBar) ((JMenu)menuItem).getParent(); // check if mb.isSelected because if no menus are selected // we don't have to look through the list for popup menus if (!mb.isSelected()) return false; for (int i=0;i<mb.getMenuCount();i++) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicMenuUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuUI.java
}
private boolean popupVisible() { JMenuBar mb = (JMenuBar) ((JMenu)menuItem).getParent(); // check if mb.isSelected because if no menus are selected // we don't have to look through the list for popup menus if (!mb.isSelected()) return false; for (int i=0;i<mb.getMenuCount();i++) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicMenuUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuUI.java
return new LineSegment(P1, P2);
LineSegment segment = null; try { segment = (LineSegment) super.clone(); segment.P1 = (Point2D) P1.clone(); segment.P2 = (Point2D) P2.clone(); } catch (CloneNotSupportedException cnse) { InternalError ie = new InternalError(); ie.initCause(cnse); throw ie; } return segment;
public Object clone() { return new LineSegment(P1, P2); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3745505a7d2835f7ecc46a1f562d0058cf71c6bd/LineSegment.java/buggy/core/src/classpath/gnu/gnu/java/awt/java2d/LineSegment.java
if (this.equals (READING))
if (getName().equals(READING.getName()))
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Att...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/AttributedCharacterIterator.java/buggy/core/src/classpath/java/java/text/AttributedCharacterIterator.java
if (this.equals (LANGUAGE))
if (getName().equals(LANGUAGE.getName()))
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Att...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/AttributedCharacterIterator.java/buggy/core/src/classpath/java/java/text/AttributedCharacterIterator.java
if (this.equals (INPUT_METHOD_SEGMENT))
if (getName().equals(INPUT_METHOD_SEGMENT.getName()))
protected Object readResolve() throws InvalidObjectException { if (this.equals (READING)) return READING; if (this.equals (LANGUAGE)) return LANGUAGE; if (this.equals (INPUT_METHOD_SEGMENT)) return INPUT_METHOD_SEGMENT; throw new InvalidObjectException ("Can't resolve Att...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/AttributedCharacterIterator.java/buggy/core/src/classpath/java/java/text/AttributedCharacterIterator.java
bad.minor = Minor.Any;
public static AdapterNonExistent extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (AdapterNonExistent) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("AdapterNonExistent expe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/AdapterNonExistentHelper.java/buggy/core/src/classpath/org/org/omg/PortableServer/POAPackage/AdapterNonExistentHelper.java
public CaretEvent(Object source) {
public CaretEvent(Object source) {
public CaretEvent(Object source) { super(source); } // CaretEvent()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/CaretEvent.java/clean/core/src/classpath/javax/javax/swing/event/CaretEvent.java
}
}
public CaretEvent(Object source) { super(source); } // CaretEvent()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/CaretEvent.java/clean/core/src/classpath/javax/javax/swing/event/CaretEvent.java
drawing = true;
public void clearScreen() { for (int x = 0; x < lenScreen; x++) { screen[x].setCharAndAttr(' ',initAttr,false); screen[x].setUseGUI(ScreenChar.NO_GUI); } dirty.setBounds(tArea.getBounds());// dirty.setBounds(fmWidth * numCols,fmHeight * numRows,0,0); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/0686de448db01a9cc1b09cae982858a4d418dae8/Screen5250.java/clean/tn5250j/src/org/tn5250j/Screen5250.java
row = 0; sb = new StringBuffer();
public void createFileInstance(String fileName) throws FileNotFoundException { fout = new PrintStream(new FileOutputStream(fileName)); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d4104819203aa6b5361aa997d2cd29a076f417a7/KSpreadOutputFilter.java/buggy/tn5250j/src/org/tn5250j/tools/filters/KSpreadOutputFilter.java
firePropertyChange(ENABLED_PROPERTY, !this.enabled, this.enabled);
firePropertyChange("enabled", !this.enabled, this.enabled);
public void setEnabled(boolean enabled) { if (enabled != this.enabled) { this.enabled = enabled; firePropertyChange(ENABLED_PROPERTY, !this.enabled, this.enabled); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/AbstractAction.java/buggy/core/src/classpath/javax/javax/swing/AbstractAction.java
super.insertString(bypass, offset, text, attributes);
super.insertString(bypass, offset, text, attributes);
public void insertString(DocumentFilter.FilterBypass bypass, int offset, String text, AttributeSet attributes) throws BadLocationException { if (overwriteMode == true) replace(bypass, offset, text.length(), text, attributes); else super.insertString(bypass,...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultFormatter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultFormatter.java
return null;
KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); Component focused = kfm.getPermanentFocusOwner(); JTextComponent textComp = null; if (focused instanceof JTextComponent) textComp = (JTextComponent) focused; return textComp;
protected final JTextComponent getFocusedComponent() { return null; // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/TextAction.java/buggy/core/src/classpath/javax/javax/swing/text/TextAction.java
/* If the colors are to be drived from the enclosed Component's * background color, the border is guaranteed to be fully opaque * because Color.brighten() and Color.darken() always return an * opaque color. */
public boolean isBorderOpaque() { /* If the colors are to be drived from the enclosed Component's * background color, the border is guaranteed to be fully opaque * because Color.brighten() and Color.darken() always return an * opaque color. */ return ((highlight == null) || (highlight.getA...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/EtchedBorder.java/buggy/core/src/classpath/javax/javax/swing/border/EtchedBorder.java
private static void paintEtchedBorder(Graphics g, int x, int y, int width, int height, Color a, Color b)
private static void paintEtchedBorder(Graphics g, int x, int y, int width, int height, Color a, Color b)
private static void paintEtchedBorder(Graphics g, int x, int y, int width, int height, Color a, Color b) { Color oldColor; oldColor = g.getColor(); g.translate(x, y); width = width - 1; height = height - 1; try { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/EtchedBorder.java/buggy/core/src/classpath/javax/javax/swing/border/EtchedBorder.java
/* To understand this code, it might be helpful to look at the * images that are included with the JavaDoc. They are located * in the "doc-files" subdirectory. EtchedBorder-2.png might * be especially informative. */
private static void paintEtchedBorder(Graphics g, int x, int y, int width, int height, Color a, Color b) { Color oldColor; oldColor = g.getColor(); g.translate(x, y); width = width - 1; height = height - 1; try { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/EtchedBorder.java/buggy/core/src/classpath/javax/javax/swing/border/EtchedBorder.java
String paramId = newparameter.getParamId(); if (paramId != null) { if (ParamObj.containsKey(paramId)) Log.warnln("More than one param node with paramId=\""+paramId+"\", using latest node." ); ParamObj.put(paramId, newparameter); } String paramIdRef = newparameter.getParamIdRef(); if (paramIdRef != null) { if...
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // grab parent node name String parentNodeName = getParentNodeName(); // create new object appropriately Parameter newparameter = new Parameter(); newparameter.setXMLAttributes(attrs); // set XM...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
String readIdRef = readObj.getReadIdRef();
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
if (readIdRef != null) {
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java