rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
a.addAttribute(Superscript, new Boolean(b)); | a.addAttribute(Superscript, Boolean.valueOf(b)); | public static void setSuperscript(MutableAttributeSet a, boolean b) { a.addAttribute(Superscript, new Boolean(b)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/511ee4599fec6e0fd95b9d64823beef0c7439ee1/StyleConstants.java/buggy/core/src/classpath/javax/javax/swing/text/StyleConstants.java |
a.addAttribute(Underline, new Boolean(b)); | a.addAttribute(Underline, Boolean.valueOf(b)); | public static void setUnderline(MutableAttributeSet a, boolean b) { a.addAttribute(Underline, new Boolean(b)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/511ee4599fec6e0fd95b9d64823beef0c7439ee1/StyleConstants.java/buggy/core/src/classpath/javax/javax/swing/text/StyleConstants.java |
if (newDoc != null) | public void propertyChange(PropertyChangeEvent e) { String name = e.getPropertyName(); if (name.equals("document")) { Document oldDoc = (Document) e.getOldValue(); oldDoc.removeDocumentListener(documentListener); Document newDoc = (Document) e.getNewValue(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java | |
AssertionError ae; ae = new AssertionError("Unexpected bad caret location: " + dot); ae.initCause(e); throw ae; | void appear() { // All machinery is only required if the carret is blinking. if (blinkListener != null) { blinkListener.ignoreNextEvent = true; // If the caret is visible, erase the current position by repainting // over. if (visible) repaint(); // Draw the care... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java | |
textComponent.getDocument().addDocumentListener(documentListener); | Document doc = textComponent.getDocument(); if (doc != null) doc.addDocumentListener(documentListener); | public void install(JTextComponent c) { textComponent = c; textComponent.addFocusListener(this); textComponent.addMouseListener(this); textComponent.addMouseMotionListener(this); propertyChangeListener = new PropertyChangeHandler(); textComponent.addPropertyChangeListener(propertyChangeListener); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
int button = event.getButton(); | public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // impleme... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java | |
if (button == MouseEvent.BUTTON1) if (event.isShiftDown()) | if (SwingUtilities.isLeftMouseButton(event)) { if (event.isShiftDown() && getDot() != -1) { | public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // impleme... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
else positionCaret(event); else if(button == MouseEvent.BUTTON2) if (event.isShiftDown()) event.consume(); | } | public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // impleme... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
else event.consume(); | } | public void mousePressed(MouseEvent event) { int button = event.getButton(); // The implementation assumes that consuming the event makes the AWT event // mechanism forget about this event instance and not transfer focus. // By observing how the RI reacts the following behavior has been // impleme... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
AssertionError ae; ae = new AssertionError("Unexpected bad caret location: " + dot); ae.initCause(e); throw ae; | public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; // Make sure the dot has a sane position. dot = Math.min(dot, textComponent.getDocument().getLength()); dot = Math.max(dot, 0); Rectangle rect = null; try { rect = textComponent.modelToView(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java | |
return null; | if (accessibleContext == null) accessibleContext = new AccessibleJDialog(); return accessibleContext; | public AccessibleContext getAccessibleContext() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045a5b41cdfa747889101d3993040acf89788bc4/JDialog.java/clean/core/src/classpath/javax/javax/swing/JDialog.java |
return null; | return super.createDefaultEditorKit(); | protected EditorKit createDefaultEditorKit() { return null; // TODO } // createDefaultEditorKit() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
return null; | return super.paramString(); | protected String paramString() { return null; // TODO } // paramString() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java |
super.replaceSelection(content); | public void replaceSelection(String content) { // TODO } // replaceSelection() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java | |
super.setDocument(document); | public void setDocument(Document document) { // TODO } // setDocument() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java | |
super.setEditorKit(editor); | public final void setEditorKit(EditorKit editor) { // TODO } // setEditorKit() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTextPane.java/clean/core/src/classpath/javax/javax/swing/JTextPane.java | |
if (sPrettyXDFOutput) writeOut(outputstream, indent); | if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/NotesLocationOrder.java/buggy/src/gov/nasa/gsfc/adc/xdf/NotesLocationOrder.java |
if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); | if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/NotesLocationOrder.java/buggy/src/gov/nasa/gsfc/adc/xdf/NotesLocationOrder.java |
String newindent = indent + sPrettyXDFOutputIndentation; | String newindent = indent + Specification.getInstance().getPrettyXDFOutputIndentation(); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/NotesLocationOrder.java/buggy/src/gov/nasa/gsfc/adc/xdf/NotesLocationOrder.java |
if (sPrettyXDFOutput) writeOut(outputstream, newindent); | if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, newindent); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/NotesLocationOrder.java/buggy/src/gov/nasa/gsfc/adc/xdf/NotesLocationOrder.java |
if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); | if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/NotesLocationOrder.java/buggy/src/gov/nasa/gsfc/adc/xdf/NotesLocationOrder.java |
if (sPrettyXDFOutput) writeOut(outputstream, indent); | if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/NotesLocationOrder.java/buggy/src/gov/nasa/gsfc/adc/xdf/NotesLocationOrder.java |
if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); | if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString, ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/NotesLocationOrder.java/buggy/src/gov/nasa/gsfc/adc/xdf/NotesLocationOrder.java |
protected void resolve() { | protected void resolve(PluginRegistryModel registry) { | protected void resolve() { // Do nothing } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/ConfigurationElementModel.java/buggy/core/src/core/org/jnode/plugin/model/ConfigurationElementModel.java |
protected void unresolve() { | protected void unresolve(PluginRegistryModel registry) { | protected void unresolve() { // Do nothing } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/ConfigurationElementModel.java/buggy/core/src/core/org/jnode/plugin/model/ConfigurationElementModel.java |
{ | public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/KeyPairCodecFactory.java/buggy/core/src/classpath/gnu/gnu/java/security/key/KeyPairCodecFactory.java | |
} | public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/KeyPairCodecFactory.java/buggy/core/src/classpath/gnu/gnu/java/security/key/KeyPairCodecFactory.java | |
IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.RSA_KPG)) { result = new RSAKeyPairRawCodec(); } else if (name.equalsIgnoreCase(Registry.DH_KPG)) { result = makeInstance ("gnu.javax.... | if (name.length() == 0) return null; | public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/KeyPairCodecFactory.java/buggy/core/src/classpath/gnu/gnu/java/security/key/KeyPairCodecFactory.java |
return result; | if (name.startsWith("/")) return null; if (name.endsWith("/")) return getInstance(name.substring(0, name.length() - 1), Registry.RAW_ENCODING_ID); int i = name.indexOf("/"); if (i == -1) return getInstance(name, Registry.RAW_ENCODING_ID); String kpgName = name.substring(0, i); String formatName = name.substring(i + ... | public static IKeyPairCodec getInstance(String name) { if (name == null) { return null; } name = name.trim(); IKeyPairCodec result = null; if (name.equalsIgnoreCase(Registry.DSA_KPG) || name.equals(Registry.DSS_KPG)) { result = new DSSKeyPairRawCodec(); } else ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/KeyPairCodecFactory.java/buggy/core/src/classpath/gnu/gnu/java/security/key/KeyPairCodecFactory.java |
public static final Set getNames() | public static synchronized final Set getNames() | public static final Set getNames() { return KeyPairGeneratorFactory.getNames(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/KeyPairCodecFactory.java/buggy/core/src/classpath/gnu/gnu/java/security/key/KeyPairCodecFactory.java |
return KeyPairGeneratorFactory.getNames(); | if (names == null) { HashSet hs = new HashSet(); hs.add(Registry.DSS_KPG + "/" + Registry.RAW_ENCODING_SHORT_NAME); hs.add(Registry.DSS_KPG + "/" + Registry.X509_ENCODING_SORT_NAME); hs.add(Registry.DSS_KPG + "/" + Registry.PKCS8_ENCODING_SHORT_NAME); hs.add(Registry.RSA_KPG + "/" + Registry.RAW_ENCODING_SHORT_NAME); h... | public static final Set getNames() { return KeyPairGeneratorFactory.getNames(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/KeyPairCodecFactory.java/buggy/core/src/classpath/gnu/gnu/java/security/key/KeyPairCodecFactory.java |
private void processVTKeyPressed(KeyEvent e){ keyProcessed = true;// displayInfo(e,"Pressed " + keyProcessed); int keyCode = e.getKeyCode(); if (isLinux && keyCode == e.VK_ALT_GRAPH) { isAltGr = true; }// if (linux)// if (keyCode == e.VK_UNDEFINED || if ( keyCode ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/69e4ad8b79244d7a9ead6ae9be5f21d5cf302742/Gui5250.java/clean/tn5250j/src/org/tn5250j/Gui5250.java | ||
return super.clone(); | BasePRNG result = (BasePRNG) super.clone(); if (this.buffer != null) result.buffer = (byte[])this.buffer.clone(); return result; | public Object clone() throws CloneNotSupportedException { return super.clone(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/BasePRNG.java/clean/core/src/classpath/gnu/gnu/java/security/prng/BasePRNG.java |
checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); | DerUtil.checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/DSSKeyPairX509Codec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairX509Codec.java |
checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); | DerUtil.checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/DSSKeyPairX509Codec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairX509Codec.java |
checkIsConstructed(derParams, "Wrong DSS Parameters field"); | DerUtil.checkIsConstructed(derParams, "Wrong DSS Parameters field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/DSSKeyPairX509Codec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairX509Codec.java |
checkIsBigInteger(val, "Wrong P field"); | DerUtil.checkIsBigInteger(val, "Wrong P field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/DSSKeyPairX509Codec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairX509Codec.java |
checkIsBigInteger(val, "Wrong Q field"); | DerUtil.checkIsBigInteger(val, "Wrong Q field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/DSSKeyPairX509Codec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairX509Codec.java |
checkIsBigInteger(val, "Wrong G field"); | DerUtil.checkIsBigInteger(val, "Wrong G field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/DSSKeyPairX509Codec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairX509Codec.java |
checkIsBigInteger(val, "Wrong Y field"); | DerUtil.checkIsBigInteger(val, "Wrong Y field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger p, g, q, y; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPubl... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/DSSKeyPairX509Codec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/dss/DSSKeyPairX509Codec.java |
String indentStr = ""; | StringBuffer b = new StringBuffer(); | public void dump(PrintStream stream, int indent) { String indentStr = ""; for (int i = 0; i < indent; ++i) indentStr += " "; dumpElement(stream, indentStr, this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
indentStr += " "; dumpElement(stream, indentStr, this); | b.append(' '); b.append('<'); b.append(getName()); if (getAttributeCount() > 0) { b.append('\n'); Enumeration attNames = getAttributeNames(); while (attNames.hasMoreElements()) { for (int i = 0; i < indent + 2; ++i) b.append(' '); Object attName = attNames.nextElement(); b.append(attName); b.append('='); Object attrib... | public void dump(PrintStream stream, int indent) { String indentStr = ""; for (int i = 0; i < indent; ++i) indentStr += " "; dumpElement(stream, indentStr, this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
Element elem = children[index]; if ((elem.getStartOffset() <= offset) && (offset < elem.getEndOffset())) return index; | Element elem = children[index]; if ((elem.getStartOffset() <= offset) && (offset < elem.getEndOffset())) return index; | public int getElementIndex(int offset) { // If we have no children, return -1. if (getElementCount() == 0) return - 1; // XXX: There is surely a better algorithm // as beginning from first element each time. for (int index = 0; index < children.length; ++index) { Element ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
try { | try { | public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { startP... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } | startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } | public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { startP... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
catch (BadLocationException ex) { | catch (BadLocationException ex) { | public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { startP... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
+ ", length=" + getLength()); | + ", length=" + getLength()); | public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); { try { if (parent != null) { startPos = parent.getDocument().createPosition(start); endPos = parent.getDocument().createPosition(end); } else { startP... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | protected Element createBranchElement(Element parent, AttributeSet attributes) { return new BranchElement(parent, attributes); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | protected Element createBranchElement(Element parent, AttributeSet attributes) { return new BranchElement(parent, attributes); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | protected Element createLeafElement(Element parent, AttributeSet attributes, int start, int end) { return new LeafElement(parent, attributes, start, end); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | protected Element createLeafElement(Element parent, AttributeSet attributes, int start, int end) { return new LeafElement(parent, attributes, start, end); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | public Position createPosition(final int offset) throws BadLocationException { return content.createPosition(offset); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | public Position createPosition(final int offset) throws BadLocationException { return content.createPosition(offset); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | protected void fireChangedUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].changedUpdate(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | protected void fireChangedUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].changedUpdate(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | protected void fireInsertUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].insertUpdate(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | protected void fireInsertUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].insertUpdate(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | protected void fireRemoveUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].removeUpdate(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | protected void fireRemoveUpdate(DocumentEvent event) { DocumentListener[] listeners = getDocumentListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].removeUpdate(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | protected void fireUndoableEditUpdate(UndoableEditEvent event) { UndoableEditListener[] listeners = getUndoableEditListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].undoableEditHappened(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
protected void fireUndoableEditUpdate(UndoableEditEvent event) { UndoableEditListener[] listeners = getUndoableEditListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].undoableEditHappened(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java | ||
} | } | protected void fireUndoableEditUpdate(UndoableEditEvent event) { UndoableEditListener[] listeners = getUndoableEditListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].undoableEditHappened(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ return 0; } | { return 0; } | public int getAsynchronousLoadPriority() { return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
protected AttributeContext getAttributeContext() { | protected AttributeContext getAttributeContext() { | protected AttributeContext getAttributeContext() { return context; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | protected AttributeContext getAttributeContext() { return context; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ return null; } | { return null; } | public Element getBidiRootElement() { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
protected Content getContent() { return content; } | protected final Content getContent() { return content; } | protected Content getContent() { return content; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
protected Thread getCurrentWriter() { | protected Thread getCurrentWriter() { | protected Thread getCurrentWriter() { // FIXME: Implement locking! return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
return null; } | return null; } | protected Thread getCurrentWriter() { // FIXME: Implement locking! return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | public Dictionary getDocumentProperties() { // FIXME: make me thread-safe if (properties == null) properties = new Hashtable(); return properties; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | public Dictionary getDocumentProperties() { // FIXME: make me thread-safe if (properties == null) properties = new Hashtable(); return properties; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | public Position getEndPosition() { // FIXME: Properly implement this by calling Content.createPosition(). return new Position() { public int getOffset() { return getLength(); } }; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | public Position getEndPosition() { // FIXME: Properly implement this by calling Content.createPosition(). return new Position() { public int getOffset() { return getLength(); } }; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | public int getLength() { // We return Content.getLength() -1 here because there is always an // implicit \n at the end of the Content which does count in Content // but not in Document. return content.length() - 1; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | public int getLength() { // We return Content.getLength() -1 here because there is always an // implicit \n at the end of the Content which does count in Content // but not in Document. return content.length() - 1; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | public EventListener[] getListeners(Class listenerType) { return listenerList.getListeners(listenerType); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | public EventListener[] getListeners(Class listenerType) { return listenerList.getListeners(listenerType); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | public Object getProperty(Object key) { // FIXME: make me thread-safe Object value = null; if (properties != null) value = properties.get(key); return value; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | public Object getProperty(Object key) { // FIXME: make me thread-safe Object value = null; if (properties != null) value = properties.get(key); return value; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | public Element[] getRootElements() { Element[] elements = new Element[1]; elements[0] = getDefaultRootElement(); return elements; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | public Element[] getRootElements() { Element[] elements = new Element[1]; elements[0] = getDefaultRootElement(); return elements; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | public Position getStartPosition() { // FIXME: Properly implement this using Content.createPosition(). return new Position() { public int getOffset() { return 0; } }; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | public Position getStartPosition() { // FIXME: Properly implement this using Content.createPosition(). return new Position() { public int getOffset() { return 0; } }; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ return content.getString(offset, length); } | { return content.getString(offset, length); } | public String getText(int offset, int length) throws BadLocationException { return content.getString(offset, length); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | public UndoableEditListener[] getUndoableEditListeners() { return (UndoableEditListener[]) getListeners(UndoableEditListener.class); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), D... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), D... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | protected void insertUpdate(DefaultDocumentEvent chng, AttributeSet attr) { // Do nothing here. Subclasses may want to override this. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | protected void insertUpdate(DefaultDocumentEvent chng, AttributeSet attr) { // Do nothing here. Subclasses may want to override this. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
protected void postRemoveUpdate(DefaultDocumentEvent chng) { | protected void postRemoveUpdate(DefaultDocumentEvent chng) { | protected void postRemoveUpdate(DefaultDocumentEvent chng) { // Do nothing here. Subclasses may want to override this. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | protected void postRemoveUpdate(DefaultDocumentEvent chng) { // Do nothing here. Subclasses may want to override this. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | public void putProperty(Object key, Object value) { // FIXME: make me thread-safe if (properties == null) properties = new Hashtable(); properties.put(key, value); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | public void putProperty(Object key, Object value) { // FIXME: make me thread-safe if (properties == null) properties = new Hashtable(); properties.put(key, value); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ } | { } | public void readLock() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ } | { } | public void readUnlock() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | public void remove(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); removeUpdate(event); content.remove(offset, length); postRemoveUpdate(event); fireRemoveUpdate(event); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | public void removeDocumentListener(DocumentListener listener) { listenerList.remove(DocumentListener.class, listener); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
} | } | public void removeDocumentListener(DocumentListener listener) { listenerList.remove(DocumentListener.class, listener); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | public void removeUndoableEditListener(UndoableEditListener listener) { listenerList.remove(UndoableEditListener.class, listener); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
{ | { | protected void removeUpdate(DefaultDocumentEvent chng) { // Do nothing here. Subclasses may wish to override this. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/AbstractDocument.java/buggy/core/src/classpath/javax/javax/swing/text/AbstractDocument.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.