rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
lb = ((BasicArrowButton) c1); rb = ((BasicArrowButton) c2); | lb = (BasicArrowButton) c1; rb = (BasicArrowButton) c2; | public void layoutContainer(Container c) { // The only components we care about setting up are the // one touch buttons. if (splitPane.isOneTouchExpandable()) { if (c.getComponentCount() == 2) { Component c1 = c.getComponent(0); Component c2 = c... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e0c4001932916dcdf180e32bf374255e88829b25/MetalSplitPaneDivider.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalSplitPaneDivider.java |
throws InconsistentTypeCode | throws InconsistentTypeCode | public DynAny create_basic_dyn_any(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e4abb9c75335af103edab6fd85ed87fb53a143e8/ORB.java/clean/core/src/classpath/org/org/omg/CORBA/ORB.java |
throws InconsistentTypeCode { throw new NO_IMPLEMENT(); | throws InconsistentTypeCode { throw new NO_IMPLEMENT(); | public DynArray create_dyn_array(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e4abb9c75335af103edab6fd85ed87fb53a143e8/ORB.java/clean/core/src/classpath/org/org/omg/CORBA/ORB.java |
throws InconsistentTypeCode | throws InconsistentTypeCode | public DynEnum create_dyn_enum(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e4abb9c75335af103edab6fd85ed87fb53a143e8/ORB.java/clean/core/src/classpath/org/org/omg/CORBA/ORB.java |
throws InconsistentTypeCode | throws InconsistentTypeCode | public DynSequence create_dyn_sequence(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e4abb9c75335af103edab6fd85ed87fb53a143e8/ORB.java/clean/core/src/classpath/org/org/omg/CORBA/ORB.java |
throws InconsistentTypeCode | throws InconsistentTypeCode | public DynStruct create_dyn_struct(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e4abb9c75335af103edab6fd85ed87fb53a143e8/ORB.java/clean/core/src/classpath/org/org/omg/CORBA/ORB.java |
throws InconsistentTypeCode | throws InconsistentTypeCode | public DynUnion create_dyn_union(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e4abb9c75335af103edab6fd85ed87fb53a143e8/ORB.java/clean/core/src/classpath/org/org/omg/CORBA/ORB.java |
public abstract NamedValue create_named_value(String s, Any any, int flags); | public abstract NamedValue create_named_value(String name, Any any, int flags); | public abstract NamedValue create_named_value(String s, Any any, int flags); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e4abb9c75335af103edab6fd85ed87fb53a143e8/ORB.java/clean/core/src/classpath/org/org/omg/CORBA/ORB.java |
throws WrongTransaction; | throws WrongTransaction; | public abstract Request get_next_response() throws WrongTransaction; | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e4abb9c75335af103edab6fd85ed87fb53a143e8/ORB.java/clean/core/src/classpath/org/org/omg/CORBA/ORB.java |
else | else if (url_string.length() > 0) | protected void parseURL (URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (!file.equals("")) { //h... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/Handler.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/jar/Handler.java |
protected String toExternalForm (URL url) { String file = url.getFile(); // return "jar:" + file; // Performance!!: // Do the concatenation manually to avoid resize StringBuffer's // internal buffer. StringBuffer sb = new StringBuffer (file.length() + 5); sb.append ("jar:"); sb.append (fi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/Handler.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/jar/Handler.java | ||
if (ref != null) sb.append('#').append(ref); | protected String toExternalForm (URL url) { String file = url.getFile(); // return "jar:" + file; // Performance!!: // Do the concatenation manually to avoid resize StringBuffer's // internal buffer. StringBuffer sb = new StringBuffer (file.length() + 5); sb.append ("jar:"); sb.append (fi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/Handler.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/jar/Handler.java | |
public ParameterModeHolder(ParameterMode initialValue) | public ParameterModeHolder() | public ParameterModeHolder(ParameterMode initialValue) { value = initialValue; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/ParameterModeHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/ParameterModeHolder.java |
value = initialValue; | public ParameterModeHolder(ParameterMode initialValue) { value = initialValue; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/ParameterModeHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/ParameterModeHolder.java | |
{ | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
} | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
{ | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
} | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
{ | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
} | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
{ | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
} | TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) { sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); } len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
{ | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
{ | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
} | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); if (ret != null && ret instanceof Collection) { if (withParams != null) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
{ | public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { re... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
} | public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { re... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
{ | public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { re... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
} | public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { re... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
{ | public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { re... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
} | public boolean references(QName var) { if (select != null && select.references(var)) { return true; } if (withParams != null) { for (Iterator i = withParams.iterator(); i.hasNext(); ) { if (((WithParam) i.next()).references(var)) { re... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java | |
StringBuffer buf = new StringBuffer(getClass().getName()); | StringBuffer buf = new StringBuffer("apply-templates"); | public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); boolean o = false; if (select != null) { buf.append("select="); buf.append(select); o = true; } if (mode != null) { if (o) { buf.append(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/ApplyTemplatesNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ApplyTemplatesNode.java |
current = null; | public int getLength() { int retval = 0; NodeIterator iter = createIterator(); while (iter.nextNode() != null) { retval++; } return retval; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java | |
return current.previousNode (); | Node ret = current.previousNode (); current = null; return ret; | public Node item(int index) { if (current == null) { current = createIterator(); lastIndex = -1; } // last node or before? go backwards if (index <= lastIndex) { while (index != lastIndex) { current.previousNode (); lastIndex--; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
return current.nextNode (); | Node ret = current.nextNode (); current = null; return ret; | public Node item(int index) { if (current == null) { current = createIterator(); lastIndex = -1; } // last node or before? go backwards if (index <= lastIndex) { while (index != lastIndex) { current.previousNode (); lastIndex--; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
throw new DomEx(DomEx.WRONG_DOCUMENT_ERR, | throw new DomDOMException(DOMException.WRONG_DOCUMENT_ERR, | public Node appendChild(Node newChild) { try { DomNode child = (DomNode) newChild; if (child.nodeType == DOCUMENT_FRAGMENT_NODE) { // Append all nodes in the fragment to this node for (DomNode ctx = child.first; ctx != null; ctx = ctx.next) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, | throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, | private void checkMisc(DomNode child) { if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, null, this, 0); } for (DomNode ctx = this; ctx != null; ctx = ctx.parent) { if (child == ctx) { throw new DomEx(D... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
throw new DomEx(DomEx.HIERARCHY_REQUEST_ERR, "can't make ancestor into a child", this, 0); | throw new DomDOMException(DOMException.HIERARCHY_REQUEST_ERR, "can't make ancestor into a child", this, 0); | private void checkMisc(DomNode child) { if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, null, this, 0); } for (DomNode ctx = this; ctx != null; ctx = ctx.parent) { if (child == ctx) { throw new DomEx(D... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
throw new DomEx(DomEx.WRONG_DOCUMENT_ERR, | throw new DomDOMException(DOMException.WRONG_DOCUMENT_ERR, | private void checkMisc(DomNode child) { if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, null, this, 0); } for (DomNode ctx = this; ctx != null; ctx = ctx.parent) { if (child == ctx) { throw new DomEx(D... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
throw new DomEx(DomEx.HIERARCHY_REQUEST_ERR, "can't append " + nodeTypeToString(childNodeType) + " to node of type " + nodeTypeToString(nodeType), | throw new DomDOMException(DOMException.HIERARCHY_REQUEST_ERR, "can't append " + nodeTypeToString(childNodeType) + " to node of type " + nodeTypeToString(nodeType), | private void checkMisc(DomNode child) { if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, null, this, 0); } for (DomNode ctx = this; ctx != null; ctx = ctx.parent) { if (child == ctx) { throw new DomEx(D... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
throw new DomEx(DomEx.NOT_SUPPORTED_ERR, | throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR, | public Event createEvent(String eventType) { eventType = eventType.toLowerCase(); if ("mutationevents".equals(eventType)) { return new DomEvent.DomMutationEvent(null); } if ("htmlevents".equals(eventType) || "events".equals(eventType) || "user-events".equals(eventType)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); | throw new DomDOMException(DOMException.NOT_FOUND_ERR, null, ref, 0); | public Node insertBefore(Node newChild, Node refChild) { if (refChild == null) { return appendChild(newChild); } try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; if (child.nodeType == DOCUMENT_FRAGMENT_NODE) { // ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
throw new DomEx(DomEx.HIERARCHY_REQUEST_ERR, "can't insert node before itself", ref, 0); | throw new DomDOMException(DOMException.HIERARCHY_REQUEST_ERR, "can't insert node before itself", ref, 0); | public Node insertBefore(Node newChild, Node refChild) { if (refChild == null) { return appendChild(newChild); } try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; if (child.nodeType == DOCUMENT_FRAGMENT_NODE) { // ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
throw new DomEx(DomEx.WRONG_DOCUMENT_ERR, | throw new DomDOMException(DOMException.WRONG_DOCUMENT_ERR, | public Node insertBefore(Node newChild, Node refChild) { if (refChild == null) { return appendChild(newChild); } try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; if (child.nodeType == DOCUMENT_FRAGMENT_NODE) { // ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); | throw new DomDOMException(DOMException.NOT_FOUND_ERR, null, ref, 0); | public Node removeChild(Node refChild) { try { DomNode ref = (DomNode) refChild; if (ref == null || ref.parent != this) { throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); } if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MOD... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR, | throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, | public Node removeChild(Node refChild) { try { DomNode ref = (DomNode) refChild; if (ref == null || ref.parent != this) { throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); } if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MOD... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
throw new DomEx(DomEx.NOT_FOUND_ERR, | throw new DomDOMException(DOMException.NOT_FOUND_ERR, | public Node removeChild(Node refChild) { try { DomNode ref = (DomNode) refChild; if (ref == null || ref.parent != this) { throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); } if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MOD... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
throw new DomEx(DomEx.WRONG_DOCUMENT_ERR, | throw new DomDOMException(DOMException.WRONG_DOCUMENT_ERR, | public Node removeChild(Node refChild) { try { DomNode ref = (DomNode) refChild; if (ref == null || ref.parent != this) { throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); } if (readonly && !owner.building) { throw new DomEx(DomEx.NO_MOD... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); | throw new DomDOMException(DOMException.NOT_FOUND_ERR, null, ref, 0); | public Node replaceChild(Node newChild, Node refChild) { try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; DomEvent.DomMutationEvent event = getMutationEvent(); boolean doFree = (event != null); if (child.nodeType == DOCUMENT_FR... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
throw new DomEx(DomEx.NOT_FOUND_ERR, null, ref, 0); | throw new DomDOMException(DOMException.NOT_FOUND_ERR, null, ref, 0); | public Node replaceChild(Node newChild, Node refChild) { try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; DomEvent.DomMutationEvent event = getMutationEvent(); boolean doFree = (event != null); if (child.nodeType == DOCUMENT_FR... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
throw new DomEx(DomEx.WRONG_DOCUMENT_ERR, | throw new DomDOMException(DOMException.WRONG_DOCUMENT_ERR, | public Node replaceChild(Node newChild, Node refChild) { try { DomNode child = (DomNode) newChild; DomNode ref = (DomNode) refChild; DomEvent.DomMutationEvent event = getMutationEvent(); boolean doFree = (event != null); if (child.nodeType == DOCUMENT_FR... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java |
ElementNode(TemplateNode children, TemplateNode next, TemplateNode name, | ElementNode(TemplateNode name, | ElementNode(TemplateNode children, TemplateNode next, TemplateNode name, TemplateNode namespace, String uas, Node source) { super(children, next); this.name = name; this.namespace = namespace; this.uas = uas; this.source = source; NamedNodeMap attrs = source.getAttributes(); Node at... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/ElementNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ElementNode.java |
super(children, next); | ElementNode(TemplateNode children, TemplateNode next, TemplateNode name, TemplateNode namespace, String uas, Node source) { super(children, next); this.name = name; this.namespace = namespace; this.uas = uas; this.source = source; NamedNodeMap attrs = source.getAttributes(); Node at... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/ElementNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ElementNode.java | |
return new ElementNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), name.clone(stylesheet), | TemplateNode ret = new ElementNode(name.clone(stylesheet), | TemplateNode clone(Stylesheet stylesheet) { return new ElementNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), name.clone(stylesheet), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/ElementNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ElementNode.java |
if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; | TemplateNode clone(Stylesheet stylesheet) { return new ElementNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), name.clone(stylesheet), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/ElementNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ElementNode.java | |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollbar.setForeground(defaults.getColor("ScrollBar.foreground")); scrollbar.setBackground(defaults.getColor("ScrollBar.background")); scrollbar.setBorder(defaults.getBorder("ScrollBar.border")); | LookAndFeel.installColors(scrollbar, "ScrollBar.background", "ScrollBar.foreground"); LookAndFeel.installBorder(scrollbar, "ScrollBar.border"); | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollbar.setForeground(defaults.getColor("ScrollBar.foreground")); scrollbar.setBackground(defaults.getColor("ScrollBar.background")); scrollbar.setBorder(defaults.getBorder("ScrollBar.border")); scrollbar.se... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicScrollBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
thumbColor = defaults.getColor("ScrollBar.thumb"); thumbDarkShadowColor = defaults.getColor("ScrollBar.thumbDarkShadow"); thumbHighlightColor = defaults.getColor("ScrollBar.thumbHighlight"); thumbLightShadowColor = defaults.getColor("ScrollBar.thumbShadow"); | thumbColor = UIManager.getColor("ScrollBar.thumb"); thumbDarkShadowColor = UIManager.getColor("ScrollBar.thumbDarkShadow"); thumbHighlightColor = UIManager.getColor("ScrollBar.thumbHighlight"); thumbLightShadowColor = UIManager.getColor("ScrollBar.thumbShadow"); | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollbar.setForeground(defaults.getColor("ScrollBar.foreground")); scrollbar.setBackground(defaults.getColor("ScrollBar.background")); scrollbar.setBorder(defaults.getBorder("ScrollBar.border")); scrollbar.se... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicScrollBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
maximumThumbSize = defaults.getDimension("ScrollBar.maximumThumbSize"); minimumThumbSize = defaults.getDimension("ScrollBar.minimumThumbSize"); | maximumThumbSize = UIManager.getDimension("ScrollBar.maximumThumbSize"); minimumThumbSize = UIManager.getDimension("ScrollBar.minimumThumbSize"); | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); scrollbar.setForeground(defaults.getColor("ScrollBar.foreground")); scrollbar.setBackground(defaults.getColor("ScrollBar.background")); scrollbar.setBorder(defaults.getBorder("ScrollBar.border")); scrollbar.se... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicScrollBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java |
public void addSubjectName(Principal subjectName) throws IOException | public void addSubjectName(byte[] subjectName) throws IOException | public void addSubjectName(Principal subjectName) throws IOException { if (subjectName instanceof X500DistinguishedName) subjectNames.add(subjectName); else if (subjectName instanceof X500Principal) subjectNames.add(new X500DistinguishedName(((X500Principal) subjectName).getEncoded())); else ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/X509CertSelectorImpl.java/buggy/core/src/classpath/gnu/gnu/java/security/x509/X509CertSelectorImpl.java |
if (subjectName instanceof X500DistinguishedName) subjectNames.add(subjectName); else if (subjectName instanceof X500Principal) subjectNames.add(new X500DistinguishedName(((X500Principal) subjectName).getEncoded())); else subjectNames.add(new X500DistinguishedName(subjectName.getName())); | subjectNames.add(new X500DistinguishedName(subjectName)); | public void addSubjectName(Principal subjectName) throws IOException { if (subjectName instanceof X500DistinguishedName) subjectNames.add(subjectName); else if (subjectName instanceof X500Principal) subjectNames.add(new X500DistinguishedName(((X500Principal) subjectName).getEncoded())); else ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/X509CertSelectorImpl.java/buggy/core/src/classpath/gnu/gnu/java/security/x509/X509CertSelectorImpl.java |
public InvalidAlgorithmParameterException(String msg) | public InvalidAlgorithmParameterException() | public InvalidAlgorithmParameterException(String msg) { super(msg); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/InvalidAlgorithmParameterException.java/buggy/core/src/classpath/java/java/security/InvalidAlgorithmParameterException.java |
super(msg); | super(); | public InvalidAlgorithmParameterException(String msg) { super(msg); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/InvalidAlgorithmParameterException.java/buggy/core/src/classpath/java/java/security/InvalidAlgorithmParameterException.java |
public void select(int start_pos, int endPos) | public void select(int startPos, int endPos) | public void select(int start_pos, int endPos) { // TODO: Must be implemented. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/SwingTextFieldPeer.java/buggy/core/src/classpath/gnu/gnu/java/awt/peer/swing/SwingTextFieldPeer.java |
public AlreadyBoundHolder(AlreadyBound initialValue) | public AlreadyBoundHolder() | public AlreadyBoundHolder(AlreadyBound initialValue) { value = initialValue; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/AlreadyBoundHolder.java/buggy/core/src/classpath/org/org/omg/CosNaming/NamingContextPackage/AlreadyBoundHolder.java |
value = initialValue; | public AlreadyBoundHolder(AlreadyBound initialValue) { value = initialValue; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/AlreadyBoundHolder.java/buggy/core/src/classpath/org/org/omg/CosNaming/NamingContextPackage/AlreadyBoundHolder.java | |
super(dataType, w, h, 1, w, new int[numBands]); | this(dataType, w, h, w, createBankArray(numBands), new int[numBands]); | public BandedSampleModel(int dataType, int w, int h, int numBands) { super(dataType, w, h, 1, w, new int[numBands]); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/BandedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/BandedSampleModel.java |
if (bands.length > bankIndices.length) throw new RasterFormatException("BandedSampleModel createSubsetSampleModel too" +" many bands"); | public SampleModel createSubsetSampleModel(int[] bands) { int[] newoff = new int[bands.length]; int[] newbanks = new int[bands.length]; for (int i=0; i < bands.length; i++) { int b = bands[i]; newoff[i] = bandOffsets[b]; newbanks[i] = bankIndices[b]; } if (bands.length > bankIndices.length) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/BandedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/BandedSampleModel.java | |
iArray[i] = getSample(x, y, 0, data); | iArray[i] = getSample(x, y, i, data); | public int[] getPixel(int x, int y, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[numBands]; for (int i=0; i < numBands; i++) iArray[i] = getSample(x, y, 0, data); return iArray; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/BandedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/BandedSampleModel.java |
for (y=0; y<h; y++) | int maxX = x + w; int maxY = y + h; for (int yy = x; yy < maxY; yy++) | public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h*numBands]; int outOffset = 0; for (y=0; y<h; y++) { for (x=0; x<w;) { for (int b=0; b < numBands; b++) { int offset = bandOffsets[b] + y * scanlineStride + x; iA... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/BandedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/BandedSampleModel.java |
for (x=0; x<w;) | for (int xx = x; xx < maxX; xx++) | public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h*numBands]; int outOffset = 0; for (y=0; y<h; y++) { for (x=0; x<w;) { for (int b=0; b < numBands; b++) { int offset = bandOffsets[b] + y * scanlineStride + x; iA... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/BandedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/BandedSampleModel.java |
for (int b=0; b < numBands; b++) | for (int b = 0; b < numBands; b++) | public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h*numBands]; int outOffset = 0; for (y=0; y<h; y++) { for (x=0; x<w;) { for (int b=0; b < numBands; b++) { int offset = bandOffsets[b] + y * scanlineStride + x; iA... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/BandedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/BandedSampleModel.java |
int offset = bandOffsets[b] + y * scanlineStride + x; | int offset = bandOffsets[b] + yy * scanlineStride + xx; | public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h*numBands]; int outOffset = 0; for (y=0; y<h; y++) { for (x=0; x<w;) { for (int b=0; b < numBands; b++) { int offset = bandOffsets[b] + y * scanlineStride + x; iA... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/BandedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/BandedSampleModel.java |
for (y=0; y<h; y++) | int maxX = x + w; int maxY = y + h; for (int yy = y; yy < maxY; yy++) | public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h]; int outOffset = 0; for (y=0; y<h; y++) { for (x=0; x<w;) { int offset = bandOffsets[b] + y * scanlineStride + x; iArray[outOffset++] = data.getElem(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/BandedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/BandedSampleModel.java |
for (x=0; x<w;) | for (int xx = x; xx < maxX; xx++) | public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h]; int outOffset = 0; for (y=0; y<h; y++) { for (x=0; x<w;) { int offset = bandOffsets[b] + y * scanlineStride + x; iArray[outOffset++] = data.getElem(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/BandedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/BandedSampleModel.java |
int offset = bandOffsets[b] + y * scanlineStride + x; | int offset = bandOffsets[b] + yy * scanlineStride + xx; | public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { if (iArray == null) iArray = new int[w*h]; int outOffset = 0; for (y=0; y<h; y++) { for (x=0; x<w;) { int offset = bandOffsets[b] + y * scanlineStride + x; iArray[outOffset++] = data.getElem(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/BandedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/BandedSampleModel.java |
out.getData(bankIndices[i])[offset + bandOffsets[i]] = in[0]; | out.getData(bankIndices[i])[offset + bandOffsets[i]] = in[i]; | public void setDataElements(int x, int y, Object obj, DataBuffer data) { int transferType = getTransferType(); if (getTransferType() != data.getDataType()) { throw new IllegalArgumentException("transfer type ("+ getTransferType()+"), "+ "does not match data "+ "buffer type (" + ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/BandedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/BandedSampleModel.java |
out.getData(bankIndices[i])[offset + bandOffsets[i]] = in[0]; | out.getData(bankIndices[i])[offset + bandOffsets[i]] = in[i]; | public void setDataElements(int x, int y, Object obj, DataBuffer data) { int transferType = getTransferType(); if (getTransferType() != data.getDataType()) { throw new IllegalArgumentException("transfer type ("+ getTransferType()+"), "+ "does not match data "+ "buffer type (" + ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/BandedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/BandedSampleModel.java |
out.getData(bankIndices[i])[offset + bandOffsets[i]] = in[0]; | out.getData(bankIndices[i])[offset + bandOffsets[i]] = in[i]; | public void setDataElements(int x, int y, Object obj, DataBuffer data) { int transferType = getTransferType(); if (getTransferType() != data.getDataType()) { throw new IllegalArgumentException("transfer type ("+ getTransferType()+"), "+ "does not match data "+ "buffer type (" + ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/BandedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/BandedSampleModel.java |
out.getData(bankIndices[i])[offset + bandOffsets[i]] = in[0]; | out.getData(bankIndices[i])[offset + bandOffsets[i]] = in[i]; | public void setDataElements(int x, int y, Object obj, DataBuffer data) { int transferType = getTransferType(); if (getTransferType() != data.getDataType()) { throw new IllegalArgumentException("transfer type ("+ getTransferType()+"), "+ "does not match data "+ "buffer type (" + ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/BandedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/BandedSampleModel.java |
out.getData(bankIndices[i])[offset + bandOffsets[i]] = in[0]; | out.getData(bankIndices[i])[offset + bandOffsets[i]] = in[i]; | public void setDataElements(int x, int y, Object obj, DataBuffer data) { int transferType = getTransferType(); if (getTransferType() != data.getDataType()) { throw new IllegalArgumentException("transfer type ("+ getTransferType()+"), "+ "does not match data "+ "buffer type (" + ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/BandedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/BandedSampleModel.java |
out.getData(bankIndices[i])[offset + bandOffsets[i]] = in[0]; | out.getData(bankIndices[i])[offset + bandOffsets[i]] = in[i]; | public void setDataElements(int x, int y, Object obj, DataBuffer data) { int transferType = getTransferType(); if (getTransferType() != data.getDataType()) { throw new IllegalArgumentException("transfer type ("+ getTransferType()+"), "+ "does not match data "+ "buffer type (" + ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/BandedSampleModel.java/buggy/core/src/classpath/java/java/awt/image/BandedSampleModel.java |
public Exception getException() { | public Exception getException() { | public Exception getException() { return exception; } // getException() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/FactoryConfigurationError.java/buggy/core/src/classpath/javax/javax/xml/parsers/FactoryConfigurationError.java |
} | } | public Exception getException() { return exception; } // getException() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/FactoryConfigurationError.java/buggy/core/src/classpath/javax/javax/xml/parsers/FactoryConfigurationError.java |
public String getMessage() { return super.getMessage(); } | public String getMessage() { String message = super.getMessage(); if (message == null && exception != null) { message = exception.getMessage(); } return message; } | public String getMessage() { return super.getMessage(); } // getMessage() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/FactoryConfigurationError.java/buggy/core/src/classpath/javax/javax/xml/parsers/FactoryConfigurationError.java |
= ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", locale); | = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", locale, ClassLoader.getSystemClassLoader()); | public DateFormatSymbols (Locale locale) throws MissingResourceException { ResourceBundle res = ResourceBundle.getBundle("gnu.java.locale.LocaleInformation", locale); ampms = res.getStringArray ("ampms"); eras = res.getStringArray ("eras"); localPatternChars = res.getString ("localPatternChars"); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/DateFormatSymbols.java/buggy/core/src/classpath/java/java/text/DateFormatSymbols.java |
public String group (int group) throws IllegalStateException | public String group () | public String group (int group) throws IllegalStateException { assertMatchOp(); return match.toString(group); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/Matcher.java/buggy/core/src/classpath/java/java/util/regex/Matcher.java |
return match.toString(group); | return match.toString(); | public String group (int group) throws IllegalStateException { assertMatchOp(); return match.toString(group); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/Matcher.java/buggy/core/src/classpath/java/java/util/regex/Matcher.java |
public boolean equals (Object obj) | private static boolean equals (Object x, Object y) | public boolean equals (Object obj) { if (! (obj instanceof DateFormatSymbols)) return false; DateFormatSymbols other = (DateFormatSymbols) obj; return (equals(ampms, other.ampms) && equals(eras, other.eras) && equals(localPatternChars, other.localPatternChars) && equals(months, other.months... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/DateFormatSymbols.java/buggy/core/src/classpath/java/java/text/DateFormatSymbols.java |
if (! (obj instanceof DateFormatSymbols)) | if (x == y) return true; if (x == null || y == null) | public boolean equals (Object obj) { if (! (obj instanceof DateFormatSymbols)) return false; DateFormatSymbols other = (DateFormatSymbols) obj; return (equals(ampms, other.ampms) && equals(eras, other.eras) && equals(localPatternChars, other.localPatternChars) && equals(months, other.months... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/DateFormatSymbols.java/buggy/core/src/classpath/java/java/text/DateFormatSymbols.java |
DateFormatSymbols other = (DateFormatSymbols) obj; return (equals(ampms, other.ampms) && equals(eras, other.eras) && equals(localPatternChars, other.localPatternChars) && equals(months, other.months) && equals(shortMonths, other.shortMonths) && equals(shortWeekdays, other.shortWeekdays) && equals(weekdays, other.weekda... | if (! (x instanceof Object[]) || ! (y instanceof Object[])) return x.equals(y); Object[] xa = (Object[]) x; Object[] ya = (Object[]) y; if (xa.length != ya.length) return false; for (int i = xa.length; --i >= 0; ) { if (! equals(xa[i], ya[i])) return false; } return true; | public boolean equals (Object obj) { if (! (obj instanceof DateFormatSymbols)) return false; DateFormatSymbols other = (DateFormatSymbols) obj; return (equals(ampms, other.ampms) && equals(eras, other.eras) && equals(localPatternChars, other.localPatternChars) && equals(months, other.months... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/DateFormatSymbols.java/buggy/core/src/classpath/java/java/text/DateFormatSymbols.java |
public int hashCode () | private static int hashCode (Object x) | public int hashCode () { return (hashCode(ampms) ^ hashCode(eras) ^ hashCode(localPatternChars) ^ hashCode(months) ^ hashCode(shortMonths) ^ hashCode(shortWeekdays) ^ hashCode(weekdays) ^ hashCode(zoneStrings)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/DateFormatSymbols.java/buggy/core/src/classpath/java/java/text/DateFormatSymbols.java |
return (hashCode(ampms) ^ hashCode(eras) ^ hashCode(localPatternChars) ^ hashCode(months) ^ hashCode(shortMonths) ^ hashCode(shortWeekdays) ^ hashCode(weekdays) ^ hashCode(zoneStrings)); | if (x == null) return 0; if (! (x instanceof Object[])) return x.hashCode(); Object[] xa = (Object[]) x; int hash = 0; for (int i = 0; i < xa.length; i++) hash = 37 * hashCode(xa[i]); return hash; | public int hashCode () { return (hashCode(ampms) ^ hashCode(eras) ^ hashCode(localPatternChars) ^ hashCode(months) ^ hashCode(shortMonths) ^ hashCode(shortWeekdays) ^ hashCode(weekdays) ^ hashCode(zoneStrings)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/DateFormatSymbols.java/buggy/core/src/classpath/java/java/text/DateFormatSymbols.java |
if (path!=leadPath) | if (path != leadPath) | public void addSelectionPath(TreePath path) { if (! isPathSelected(path)) { if (selectionMode == SINGLE_TREE_SELECTION || isSelectionEmpty() || ! canPathBeAdded(path)) setSelectionPath(path); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0,... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eef19a6fbc70451186d53b7669077748b8b7c136/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java |
if (rows[i-1] != rows[i] - 1) | if (rows[i - 1] != rows[i] - 1) | protected boolean arePathsContiguous(TreePath[] paths) { if (rowMapper == null || paths.length < 2) return true; int[] rows = rowMapper.getRowsForPaths(paths); // The patches may not be sorted. Arrays.sort(rows); for (int i = 1; i < rows.length; i++) { if (rows[i-1] != rows[i] - 1)... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eef19a6fbc70451186d53b7669077748b8b7c136/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java |
if (listSelectionModel!=null) cloned.listSelectionModel = (DefaultListSelectionModel) listSelectionModel.clone(); | if (listSelectionModel != null) cloned.listSelectionModel = (DefaultListSelectionModel) listSelectionModel.clone(); | public Object clone() throws CloneNotSupportedException { DefaultTreeSelectionModel cloned = (DefaultTreeSelectionModel) super.clone(); // Clone the selection and the list selection model. cloned.selection = (TreePath[]) selection.clone(); if (listSelectionModel!=null) cloned.listSelectionMo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eef19a6fbc70451186d53b7669077748b8b7c136/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java |
return ((selection == null) || (selection.length == 0)); | return (selection == null) || (selection.length == 0); | public boolean isSelectionEmpty() { return ((selection == null) || (selection.length == 0)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eef19a6fbc70451186d53b7669077748b8b7c136/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java |
if (path!=null && leadPath!=null && path.equals(leadPath)) | if (path != null && leadPath != null && path.equals(leadPath)) | public void removeSelectionPath(TreePath path) { if (isSelectionEmpty()) return; int index = - 1; if (isPathSelected(path)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(path)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eef19a6fbc70451186d53b7669077748b8b7c136/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java |
setSelectionPath(selection[selection.length -1]); | setSelectionPath(selection[selection.length - 1]); | private void selectOne() { if (leadIndex > 0 && leadIndex < selection.length) setSelectionPath(selection[leadIndex]); else setSelectionPath(selection[selection.length -1]); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eef19a6fbc70451186d53b7669077748b8b7c136/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java |
b.append(", lead "+getLeadSelectionRow()); | b.append(", lead " + getLeadSelectionRow()); | public String toString() { if (isSelectionEmpty()) return "[selection empty]"; else { StringBuffer b = new StringBuffer("selected rows: ["); for (int i = 0; i < selection.length; i++) { b.append(getRow(selection[i])); b.append(' '); } b.ap... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eef19a6fbc70451186d53b7669077748b8b7c136/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.