rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
withLeadingZeros (calendar.get (Calendar.YEAR), p.size, buffer); | withLeadingZeros (calendar.get (Calendar.YEAR), cf.getSize(), buffer); | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
if (p.size < 3) withLeadingZeros (calendar.get (Calendar.MONTH) + 1, p.size, buffer); else if (p.size < 4) | if (cf.getSize() < 3) withLeadingZeros (calendar.get (Calendar.MONTH) + 1, cf.getSize(), buffer); else if (cf.getSize() < 4) | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
withLeadingZeros (calendar.get (Calendar.DATE), p.size, buffer); | withLeadingZeros (calendar.get (Calendar.DATE), cf.getSize(), buffer); | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
p.size, buffer); | cf.getSize(), buffer); | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
withLeadingZeros (calendar.get (Calendar.HOUR_OF_DAY), p.size, buffer); | withLeadingZeros (calendar.get (Calendar.HOUR_OF_DAY), cf.getSize(), buffer); | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
p.size, buffer); | cf.getSize(), buffer); | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
p.size, buffer); | cf.getSize(), buffer); | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
withLeadingZeros (calendar.get (Calendar.MILLISECOND), p.size, buffer); | withLeadingZeros (calendar.get (Calendar.MILLISECOND), cf.getSize(), buffer); | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
if (p.size < 4) | if (cf.getSize() < 4) | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
withLeadingZeros (calendar.get (Calendar.DAY_OF_YEAR), p.size, buffer); | withLeadingZeros (calendar.get (Calendar.DAY_OF_YEAR), cf.getSize(), buffer); | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
p.size, buffer); | cf.getSize(), buffer); | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
p.size, buffer); | cf.getSize(), buffer); | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
p.size, buffer); | cf.getSize(), buffer); | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
withLeadingZeros (((calendar.get (Calendar.HOUR) + 11) % 12) + 1, p.size, buffer); | withLeadingZeros (((calendar.get (Calendar.HOUR) + 11) % 12) + 1, cf.getSize(), buffer); | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
withLeadingZeros (calendar.get (Calendar.HOUR), p.size, buffer); | withLeadingZeros (calendar.get (Calendar.HOUR), cf.getSize(), buffer); | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
String zoneID = zone.getDisplayName (isDST, p.size > 3 ? TimeZone.LONG : TimeZone.SHORT); | String zoneID = zone.getDisplayName (isDST, cf.getSize() > 3 ? TimeZone.LONG : TimeZone.SHORT); | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
throw new IllegalArgumentException ("Illegal pattern character " + p.field); | throw new IllegalArgumentException ("Illegal pattern character " + cf.getCharacter()); | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
|| p.field == pos.getField())) | || cf.getField() == pos.getField())) | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
catch (IllegalArgumentException e) { throw new InvalidObjectException("The stream pattern was invalid."); } } | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); if (serialVersionOnStream < 1) { computeCenturyStart (); serialVersionOnStream = 1; } else // Ensure that defaultCentury gets set. set2DigitYearStart(defau... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java | |
return applyLocalizedPattern (pattern, standardChars, localChars); | return translateLocalizedPattern(pattern, standardChars, localChars); | public String toLocalizedPattern() { String localChars = formatData.getLocalPatternChars(); return applyLocalizedPattern (pattern, standardChars, localChars); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
StringBuffer output = new StringBuffer(); Iterator i = tokens.iterator(); while (i.hasNext()) { output.append(i.next().toString()); } | StringBuilder output = new StringBuilder(getClass().getName()); output.append("[tokens="); output.append(tokens); output.append(", formatData="); output.append(formatData); output.append(", defaultCenturyStart="); output.append(defaultCenturyStart); output.append(", defaultCentury="); output.append(defaultCentury); out... | public String toString() { StringBuffer output = new StringBuffer(); Iterator i = tokens.iterator(); while (i.hasNext()) { output.append(i.next().toString()); } return output.toString(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/SimpleDateFormat.java/buggy/core/src/classpath/java/java/text/SimpleDateFormat.java |
leadPath = null; | public void clearSelection() { selection = null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java | |
public UIResource() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicComboBoxRenderer.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxRenderer.java | ||
void setParentImpl(View p) | private void setParentImpl(View p) | void setParentImpl(View p) { if (p != null) { Component c = getComponent(); p.getContainer().add(c); } else { Component c = getComponent(); Container parent = c.getParent(); parent.remove(c); comp = null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/ComponentView.java/buggy/core/src/classpath/javax/javax/swing/text/ComponentView.java |
super.setParent(p); | void setParentImpl(View p) { if (p != null) { Component c = getComponent(); p.getContainer().add(c); } else { Component c = getComponent(); Container parent = c.getParent(); parent.remove(c); comp = null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/ComponentView.java/buggy/core/src/classpath/javax/javax/swing/text/ComponentView.java | |
return compiledCode1; } | return compiledCode1; } | final Object getCompiledCode() { return compiledCode1; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/VmCompiledCode.java/buggy/core/src/core/org/jnode/vm/classmgr/VmCompiledCode.java |
return (eTable == null) ? 0 : eTable.length; } | return (eTable == null) ? 0 : eTable.length; } | public int getNoExceptionHandlers() { return (eTable == null) ? 0 : eTable.length; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/VmCompiledCode.java/buggy/core/src/core/org/jnode/vm/classmgr/VmCompiledCode.java |
return nativeCodeSize1; } | return nativeCodeSize1; } | public int getSize() { return nativeCodeSize1; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50e31eccd50a204db22831206646c58f95c4cc44/VmCompiledCode.java/buggy/core/src/core/org/jnode/vm/classmgr/VmCompiledCode.java |
log.info("New session Manager initialized"); | private void initialize() { sessions = new Sessions(); configs = new Vector(3); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/379255347f37d0432228baaff23d41ccb4ad68bd/SessionManager.java/clean/tn5250j/src/org/tn5250j/SessionManager.java | |
public boolean canImport (JComponent c, DataFlavor[] flavors) | public boolean canImport(JComponent c, DataFlavor[] flavors) throws NotImplementedException | public boolean canImport (JComponent c, DataFlavor[] flavors) { return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/TransferHandler.java/buggy/core/src/classpath/javax/javax/swing/TransferHandler.java |
throws NotImplementedException | protected Transferable createTransferable(JComponent c) { return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/TransferHandler.java/buggy/core/src/classpath/javax/javax/swing/TransferHandler.java | |
public void exportAsDrag (JComponent c, InputEvent e, int action) | public void exportAsDrag(JComponent c, InputEvent e, int action) throws NotImplementedException | public void exportAsDrag (JComponent c, InputEvent e, int action) { // TODO: Implement this properly } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/TransferHandler.java/buggy/core/src/classpath/javax/javax/swing/TransferHandler.java |
protected void exportDone (JComponent c, Transferable data, int action) | protected void exportDone(JComponent c, Transferable data, int action) throws NotImplementedException | protected void exportDone (JComponent c, Transferable data, int action) { // TODO: Implement this properly } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/TransferHandler.java/buggy/core/src/classpath/javax/javax/swing/TransferHandler.java |
throws NotImplementedException | public void exportToClipboard(JComponent c, Clipboard clip, int action) { // TODO: Implement this properly } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/TransferHandler.java/buggy/core/src/classpath/javax/javax/swing/TransferHandler.java | |
public int getSourceActions (JComponent c) | public int getSourceActions(JComponent c) | public int getSourceActions (JComponent c) { return sourceActions; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/TransferHandler.java/buggy/core/src/classpath/javax/javax/swing/TransferHandler.java |
public Icon getVisualRepresentation (Transferable t) | public Icon getVisualRepresentation(Transferable t) | public Icon getVisualRepresentation (Transferable t) { return visualRepresentation; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/TransferHandler.java/buggy/core/src/classpath/javax/javax/swing/TransferHandler.java |
public boolean importData (JComponent c, Transferable t) | public boolean importData(JComponent c, Transferable t) throws NotImplementedException | public boolean importData (JComponent c, Transferable t) { return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/TransferHandler.java/buggy/core/src/classpath/javax/javax/swing/TransferHandler.java |
if (groupObject != null) { if (groupMemberHash.add(groupObject)) { groupObject.addMemberObject(this); return groupObject; } else { Log.error("Can't add to group. already a member of the group" + groupObject.getName()); | if (groupMemberHash.add(groupObject)) { groupObject.addMemberObject(this); return groupObject; } else { Log.errorln("Can't add to group. already a member of the group" + groupObject.getName()); | public Group addToGroup(Group groupObject) { if (groupObject != null) { if (groupMemberHash.add(groupObject)) { //add in successful groupObject.addMemberObject(this); return groupObject; // bad, should return based on success of adding } else { Log.error("Can't add to group. alread... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
} } else { Log.error("Error: the group object to add to is null"); return null; | public Group addToGroup(Group groupObject) { if (groupObject != null) { if (groupMemberHash.add(groupObject)) { //add in successful groupObject.addMemberObject(this); return groupObject; // bad, should return based on success of adding } else { Log.error("Can't add to group. alread... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java | |
public Group addToGroup(Group groupObject) { if (groupObject != null) { if (groupMemberHash.add(groupObject)) { //add in successful groupObject.addMemberObject(this); return groupObject; // bad, should return based on success of adding } else { Log.error("Can't add to group. alread... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java | ||
return cloneObj; | protected Object clone () throws CloneNotSupportedException{ //shallow copy for fields BaseObject cloneObj = (BaseObject) super.clone(); // deep copy the attriOrder synchronized (this.attribOrder) { synchronized (cloneObj.attribOrder) { cloneObj.attribOrder = Collections.synchronizedList(n... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java | |
if (sPrettyXDFOutput) writeOut(outputstream, indent); | if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent); | private String dealWithClosingGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(this.openGroupNodeHash) { Iterator iter = this.openGroupNodeHash.iterator();... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); | if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); | private String dealWithClosingGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(this.openGroupNodeHash) { Iterator iter = this.openGroupNodeHash.iterator();... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
indent = indent.substring(0,indent.length() - sPrettyXDFOutputIndentation.length()); | indent = indent.substring(0,indent.length() - Specification.getInstance().getPrettyXDFOutputIndentation().length()); | private String dealWithClosingGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(this.openGroupNodeHash) { Iterator iter = this.openGroupNodeHash.iterator();... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
newIndent.append(sPrettyXDFOutputIndentation); | newIndent.append(Specification.getInstance().getPrettyXDFOutputIndentation()); | private String dealWithOpeningGroupNodes (BaseObject obj, OutputStream outputstream, String indent) { StringBuffer newIndent = new StringBuffer(indent); // Should *both* groupMemberHash and openGroupNodeHash be synchronized?? synchronized(obj.groupMemberHash) { synchronized(this.openGroupNodeHash) { ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
int size = attribHash.size(); for (int i = 0; i < size; i++) { String attribName = (String) attribOrder.get(i); XMLAttribute obj = (XMLAttribute) attribHash.get(attribName); if (obj != null && obj.attribValue != null) { if ( obj.attribType == Constants.STRING_TYPE) { | synchronized (attribHash) { int size = attribHash.size(); for (int i = 0; i < size; i++) { String attribName = (String) attribOrder.get(i); XMLAttribute obj = (XMLAttribute) attribHash.get(attribName); if (obj != null && obj.attribValue != null) { if ( obj.attribType == Constants.STRING_TYPE) { | protected Hashtable getXMLInfo () { Hashtable xmlInfo = new Hashtable(); ArrayList attribList = new ArrayList(); ArrayList objRefList = new ArrayList(); int size = attribHash.size(); for (int i = 0; i < size; i++) { String attribName = (String) attribOrder.get(i); XMLAttribute obj = (XMLAttri... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
if (attribName.equals(sPCDATAAttribute)) { xmlInfo.put("PCDATA", obj.attribValue); } else { Hashtable item = new Hashtable(); item.put("name", attribName); item.put("value", obj.attribValue); attribList.add(item); } } else { if(obj.attribType == Constants.NUMBER_TYPE || obj.attribType == Constants.STRING_OR_NUMBER_TYPE... | if (attribName.equals(Specification.getInstance().getPCDATAAttribute())) { xmlInfo.put("PCDATA", obj.attribValue); }else { | protected Hashtable getXMLInfo () { Hashtable xmlInfo = new Hashtable(); ArrayList attribList = new ArrayList(); ArrayList objRefList = new ArrayList(); int size = attribHash.size(); for (int i = 0; i < size; i++) { String attribName = (String) attribOrder.get(i); XMLAttribute obj = (XMLAttri... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
item.put("type", obj.attribType); objRefList.add(item); | attribList.add(item); } } else { if(obj.attribType == Constants.NUMBER_TYPE || obj.attribType == Constants.STRING_OR_NUMBER_TYPE) { Hashtable item = new Hashtable(); item.put("name", attribName); item.put("value", obj.attribValue.toString()); attribList.add(item); } else { if ((obj.attribType !=Constants.LIST_TYPE) || ... | protected Hashtable getXMLInfo () { Hashtable xmlInfo = new Hashtable(); ArrayList attribList = new ArrayList(); ArrayList objRefList = new ArrayList(); int size = attribHash.size(); for (int i = 0; i < size; i++) { String attribName = (String) attribOrder.get(i); XMLAttribute obj = (XMLAttri... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
} | protected Hashtable getXMLInfo () { Hashtable xmlInfo = new Hashtable(); ArrayList attribList = new ArrayList(); ArrayList objRefList = new ArrayList(); int size = attribHash.size(); for (int i = 0; i < size; i++) { String attribName = (String) attribOrder.get(i); XMLAttribute obj = (XMLAttri... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java | |
xmlInfo.put("attribList", attribList); xmlInfo.put("childObjList", objRefList); return xmlInfo; | xmlInfo.put("attribList", attribList); xmlInfo.put("childObjList", objRefList); } return xmlInfo; | protected Hashtable getXMLInfo () { Hashtable xmlInfo = new Hashtable(); ArrayList attribList = new ArrayList(); ArrayList objRefList = new ArrayList(); int size = attribHash.size(); for (int i = 0; i < size; i++) { String attribName = (String) attribOrder.get(i); XMLAttribute obj = (XMLAttri... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
int size = attribOrder.size(); for (int i = 0; i < size; i++) { attribute = attribOrder.get(i); obj = InitAttributeTable.get(attribute); | if (obj != null) { XMLAttribute toRemove = (XMLAttribute) attribHash.remove(attribute); attribHash.put(attribute, new XMLAttribute(obj, toRemove.getAttribType())); } | protected void hashtableInitXDFAttributes (Hashtable InitAttributeTable) { Object attribute; Object obj; int size = attribOrder.size(); for (int i = 0; i < size; i++) { attribute = attribOrder.get(i); obj = InitAttributeTable.get(attribute); // only if object exists if (obj != nu... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
if (obj != null) { XMLAttribute toRemove = (XMLAttribute) attribHash.remove(attribute); attribHash.put(attribute, new XMLAttribute(obj, toRemove.getAttribType())); | protected void hashtableInitXDFAttributes (Hashtable InitAttributeTable) { Object attribute; Object obj; int size = attribOrder.size(); for (int i = 0; i < size; i++) { attribute = attribOrder.get(i); obj = InitAttributeTable.get(attribute); // only if object exists if (obj != nu... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java | |
} | } | protected void hashtableInitXDFAttributes (Hashtable InitAttributeTable) { Object attribute; Object obj; int size = attribOrder.size(); for (int i = 0; i < size; i++) { attribute = attribOrder.get(i); obj = InitAttributeTable.get(attribute); // only if object exists if (obj != nu... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
if ( (groupObject != null) && groupMemberHash.contains(groupObject)) | if ( groupMemberHash.contains(groupObject)) | public boolean isGroupMember(Group groupObject) { if ( (groupObject != null) && groupMemberHash.contains(groupObject)) return true; else return false; } | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
if (groupObject != null) { | public Group removeFromGroup (Group groupObject) { if (groupObject != null) { if (groupMemberHash.contains(groupObject)) { //this object does belong to the indicated Group object groupObject.removeMemberObject((Object) this); groupMemberHash.remove(groupObject); return groupObjec... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java | |
Log.error("Can't delete from group. not a member of the group" + | Log.errorln("Can't delete from group. not a member of the group" + | public Group removeFromGroup (Group groupObject) { if (groupObject != null) { if (groupMemberHash.contains(groupObject)) { //this object does belong to the indicated Group object groupObject.removeMemberObject((Object) this); groupMemberHash.remove(groupObject); return groupObjec... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
} else { Log.error("Error: The group to add to is null"); return null; } | public Group removeFromGroup (Group groupObject) { if (groupObject != null) { if (groupMemberHash.contains(groupObject)) { //this object does belong to the indicated Group object groupObject.removeMemberObject((Object) this); groupMemberHash.remove(groupObject); return groupObjec... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java | |
if (fromList != null) { if ( what != null) { int index = fromList.indexOf(what); if (index !=-1) { fromList.remove(index); return true; } else { Log.warn("warn: can't find object in" + listName + | int index = fromList.indexOf(what); if (index !=-1) { fromList.remove(index); return true; } else { Log.warn("warn: can't find object in" + listName + | protected boolean removeFromList ( Object what, List fromList, String listName ) { if (fromList != null) { if ( what != null) { int index = fromList.indexOf(what); if (index !=-1) { //object to be removed is found in the list fromList.remove(index); return true; } ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
return false; } } else { Log.error("Error: object to remove is null"); return false; } } else { Log.error("Error: Passed list to remove from is null, no object to remove"); | protected boolean removeFromList ( Object what, List fromList, String listName ) { if (fromList != null) { if ( what != null) { int index = fromList.indexOf(what); if (index !=-1) { //object to be removed is found in the list fromList.remove(index); return true; } ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java | |
protected boolean removeFromList ( Object what, List fromList, String listName ) { if (fromList != null) { if ( what != null) { int index = fromList.indexOf(what); if (index !=-1) { //object to be removed is found in the list fromList.remove(index); return true; } ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java | ||
if (attrs != null) { int size = attrs.getLength(); for (int i = 0; i < size; i++) { String name = attrs.getName(i); String value = attrs.getValue(i); if (this.attribHash.containsKey(name)) { ((XMLAttribute) this.attribHash.get(name)).setAttribValue(value); } else Log.errorln("Error: cant set XMLAttribute:["+name+"], ... | synchronized (attribHash) { if (attrs != null) { int size = attrs.getLength(); for (int i = 0; i < size; i++) { String name = attrs.getName(i); String value = attrs.getValue(i); if (name != null && value != null) ((XMLAttribute) this.attribHash.get(name)).setAttribValue(value); } } } | protected void setXMLAttributes (AttributeList attrs) { // set object attributes from an AttributeList if (attrs != null) { // whip thru the list, setting each value int size = attrs.getLength(); for (int i = 0; i < size; i++) { String name = attrs.getName(i); String v... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
String nodeNameString = this.classXDFNodeName; | synchronized (attribHash) { String nodeNameString = this.classXDFNodeName; | 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/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
if (newNodeNameString != null) nodeNameString = newNodeNameString; | if (newNodeNameString != null) nodeNameString = newNodeNameString; | 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/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { | if ((XMLDeclAttribs !=null) &&(!XMLDeclAttribs.isEmpty())) { | 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/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
} if (nodeNameString != null) { if (sPrettyXDFOutput) writeOut(outputstream, indent); if ( nodeNameString.equals(sXDFStructureNodeName) && !XMLDeclAttribs.isEmpty() ) nodeNameString = sXDFRootNodeName; writeOut(outputstream,"<" + nodeNameString); } Hashtable xmlInfo = getXMLInfo(); ArrayList attribs... | 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/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java | |
int size = childObjs.size(); for (int i = 0; i < size; i++) { Hashtable item = (Hashtable) childObjs.get(i); | if (nodeNameString != null) { | 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/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
if (item.get("type") == Constants.LIST_TYPE) { | 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/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
List objectList = (List) item.get("value"); synchronized(objectList) { Iterator iter = objectList.iterator(); while (iter.hasNext()) { BaseObject containedObj = (BaseObject) iter.next(); if (containedObj != null) { | if ( nodeNameString.equals(Specification.getInstance().getXDFStructureNodeName()) && !XMLDeclAttribs.isEmpty() ) nodeNameString = Specification.getInstance().getXDFRootNodeName(); writeOut(outputstream,"<" + nodeNameString); } Hashtable xmlInfo = getXMLInfo(); ArrayList attribs = (ArrayList) xmlInfo.get("att... | 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/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.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/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
else if (item.get("type") == Constants.OBJECT_TYPE) | if(pcdata != null) { writeOut(outputstream, pcdata); }; if ( childObjs.size() == 0 && pcdata == null && noChildObjectNodeName != null) | 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/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
BaseObject containedObj = (BaseObject) item.get("value"); if (containedObj != null) { synchronized(containedObj) { indent = dealWithOpeningGroupNodes(containedObj, outputstream, indent); indent = dealWithClosingGroupNodes(containedObj, outputstream, indent); String newindent = indent + sPrettyXDFOutputIndentation; con... | if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, indent + Specification.getInstance().getPrettyXDFOutputIndentation()); writeOut(outputstream, "<" + noChildObjectNodeName + "/>"); if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); } if (node... | 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/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
Log.errorln("Weird error: unknown XML attribute type for item:"+item); | writeOut(outputstream, "/>"); | 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/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
if(pcdata != null) { writeOut(outputstream, pcdata); }; if ( childObjs.size() == 0 && pcdata == null && noChildObjectNodeName != null) { if (sPrettyXDFOutput) writeOut(outputstream, indent + sPrettyXDFOutputIndentation); writeOut(outputstream, "<" + noChildObjectNodeName + "/>"); if (sPrettyXDFOutput) writeOut... | 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/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
writeOut(outputstream, " version=\"" + sXMLSpecVersion + "\""); | writeOut(outputstream, " version=\"" + Specification.getInstance().getXMLSpecVersion() + "\""); | private void writeXMLDeclToOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs ) { // initial statement writeOut(outputstream, "<?xml"); writeOut(outputstream, " version=\"" + sXMLSpecVersion + "\""); // pr... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
if (attribName.equals("version") ) { | if (attribName.equals("version") ) { | private void writeXMLDeclToOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs ) { // initial statement writeOut(outputstream, "<?xml"); writeOut(outputstream, " version=\"" + sXMLSpecVersion + "\""); // pr... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
} else if ( attribName.equals("dtdName") || attribName.equals("rootName") ) { | } else if ( attribName.equals("dtdName") || attribName.equals("rootName") ) { | private void writeXMLDeclToOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs ) { // initial statement writeOut(outputstream, "<?xml"); writeOut(outputstream, " version=\"" + sXMLSpecVersion + "\""); // pr... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
} else | } else | private void writeXMLDeclToOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs ) { // initial statement writeOut(outputstream, "<?xml"); writeOut(outputstream, " version=\"" + sXMLSpecVersion + "\""); // pr... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); | if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); | private void writeXMLDeclToOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs ) { // initial statement writeOut(outputstream, "<?xml"); writeOut(outputstream, " version=\"" + sXMLSpecVersion + "\""); // pr... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
if(classXDFNodeName != null && classXDFNodeName.equals(sXDFStructureNodeName) ) { writeOut(outputstream, "<!DOCTYPE " + XMLDeclAttribs.get("rootName") + " SYSTEM \"" | if(classXDFNodeName != null && classXDFNodeName.equals(Specification.getInstance().getXDFStructureNodeName()) ) { writeOut(outputstream, "<!DOCTYPE " + XMLDeclAttribs.get("rootName") + " SYSTEM \"" | private void writeXMLDeclToOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs ) { // initial statement writeOut(outputstream, "<?xml"); writeOut(outputstream, " version=\"" + sXMLSpecVersion + "\""); // pr... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
if (sPrettyXDFOutput) writeOut(outputstream, Constants.NEW_LINE); } else Log.errorln("Passed XMLDeclAttributes table lacks either dtdName, rootName entries, ignoring DOCTYPE line printout"); | if (Specification.getInstance().isPrettyXDFOutput()) writeOut(outputstream, Constants.NEW_LINE); } else Log.errorln("Passed XMLDeclAttributes table lacks either dtdName, rootName entries, ignoring DOCTYPE line printout"); | private void writeXMLDeclToOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs ) { // initial statement writeOut(outputstream, "<?xml"); writeOut(outputstream, " version=\"" + sXMLSpecVersion + "\""); // pr... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/2f56bf014cdbab92ae53cc7d21aed10035ed3f3a/BaseObject.java/buggy/src/gov/nasa/gsfc/adc/xdf/BaseObject.java |
frame = new Gui5250Frame(this); | My5250 () { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch(Exception e) { } frame = new Gui5250Frame(this); loadSessions(); int width = 600; int height = 500; if (sessions.containsKey("emul.width")) width = Integer.pars... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java | |
int width = 600; int height = 500; if (sessions.containsKey("emul.width")) width = Integer.parseInt(sessions.getProperty("emul.width")); if (sessions.containsKey("emul.height")) height = Integer.parseInt(sessions.getProperty("emul.height")); frame.setSize(width,height); centerFrame(); frame.sessionPane.addChangeLis... | My5250 () { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch(Exception e) { } frame = new Gui5250Frame(this); loadSessions(); int width = 600; int height = 500; if (sessions.containsKey("emul.width")) width = Integer.pars... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java | |
ImageIcon tnicon = createImageIcon("tnicon.jpg"); frame.setIconImage(tnicon.getImage()); sessionsV = new Vector(); | tnicon = createImageIcon("tnicon.jpg"); frames = new Vector(); newView(); | My5250 () { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch(Exception e) { } frame = new Gui5250Frame(this); loadSessions(); int width = 600; int height = 500; if (sessions.containsKey("emul.width")) width = Integer.pars... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java |
out.flush(); out.close(); boot.close(); | static private boolean checkBootStrapper (String[] args) { try { Socket boot = new Socket("localhost", 3036); PrintWriter out = new PrintWriter(boot.getOutputStream(), true); // parse args into a string to send to the other instance of // tn5250j String opts = null; ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java | |
int tabs = frame.sessionPane.getTabCount(); | Gui5250Frame f = getParentView(targetSession); int tabs = f.getSessionViewCount(); | protected void closeSession(Session targetSession) { int tabs = frame.sessionPane.getTabCount(); Sessions sessions = manager.getSessions(); Session session = null; if (tabs > 1) { if ((sessions.item(targetSession)) != null) { int index = frame.sessionPane.indexOfComponent(targe... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java |
int index = frame.sessionPane.indexOfComponent(targetSession); System.out.println("session found and closing down " + index); frame.sessionPane.remove(index); | f.removeSessionView(targetSession); | protected void closeSession(Session targetSession) { int tabs = frame.sessionPane.getTabCount(); Sessions sessions = manager.getSessions(); Session session = null; if (tabs > 1) { if ((sessions.item(targetSession)) != null) { int index = frame.sessionPane.indexOfComponent(targe... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java |
if (index < (tabs - 2)) { frame.sessionPane.setSelectedIndex(index); frame.sessionPane.setForegroundAt(index,Color.blue); frame.sessionPane.setIconAt(index,focused); } else { frame.sessionPane.setSelectedIndex(0); frame.sessionPane.setForegroundAt(0,Color.blue); frame.sessionPane.setIconAt(0,focused); } | protected void closeSession(Session targetSession) { int tabs = frame.sessionPane.getTabCount(); Sessions sessions = manager.getSessions(); Session session = null; if (tabs > 1) { if ((sessions.item(targetSession)) != null) { int index = frame.sessionPane.indexOfComponent(targe... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java | |
closingDown(frame); | closingDown(f); | protected void closeSession(Session targetSession) { int tabs = frame.sessionPane.getTabCount(); Sessions sessions = manager.getSessions(); Session session = null; if (tabs > 1) { if ((sessions.item(targetSession)) != null) { int index = frame.sessionPane.indexOfComponent(targe... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java |
void closingDown() { | void closingDown(Session targetSession) { | void closingDown() { closingDown(frame); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java |
closingDown(frame); | closingDown(getParentView(targetSession)); | void closingDown() { closingDown(frame); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java |
m.centerFrame(); | m.frame.centerFrame(); | static public void main(String[] args) { if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap deamon to allow checking // for running instances ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java |
frame.sessionPane.addTab(sel,focused,s); | frame.addSessionView(sel,s); | synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java |
frame.sessionPane.addTab(session,focused,s); | frame.addSessionView(session,s); | synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java |
frame.sessionPane.setForegroundAt(frame.sessionPane.getSelectedIndex(),Color.black); frame.sessionPane.setIconAt(frame.sessionPane.getSelectedIndex(),unfocused); frame.sessionPane.setSelectedIndex(frame.sessionPane.getTabCount()-1); frame.sessionPane.setForegroundAt(frame.sessionPane.getSelectedIndex(),Color.blue); f... | synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java | |
System.out.println(changeEvent.getState() + " " + ses.getAllocDeviceName()); | public void onSessionChanged(SessionChangeEvent changeEvent) { Session ses = (Session)changeEvent.getSource(); System.out.println(changeEvent.getState() + " " + ses.getAllocDeviceName()); if (changeEvent.getState() == STATE_CONNECTED) { final String d = ses.getAllocDevic... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java | |
if (changeEvent.getState() == STATE_CONNECTED) { final String d = ses.getAllocDeviceName(); if (d != null) { final int index = frame.sessionPane.indexOfComponent(ses); Runnable tc = new Runnable () { public void run() { frame.sessionPane.setTitleAt(index,d); } }; SwingUtilities.invokeLater(tc); } | switch (changeEvent.getState()) { case STATE_REMOVE: closeSession(ses); break; | public void onSessionChanged(SessionChangeEvent changeEvent) { Session ses = (Session)changeEvent.getSource(); System.out.println(changeEvent.getState() + " " + ses.getAllocDeviceName()); if (changeEvent.getState() == STATE_CONNECTED) { final String d = ses.getAllocDevic... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java |
if (!frame.isVisible()) frame.setVisible(true); | void startNewSession() { int result = 2; String sel = ""; if (sessionArgs != null && !sessionArgs[0].startsWith("-")) sel = sessionArgs[0]; else { sel = getDefaultSession(); } Sessions sess = manager.getSessions(); if (sel != null && sess.getCount() == 0 ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java | |
if (!frame.isVisible()) frame.setVisible(true); | void startNewSession() { int result = 2; String sel = ""; if (sessionArgs != null && !sessionArgs[0].startsWith("-")) sel = sessionArgs[0]; else { sel = getDefaultSession(); } Sessions sess = manager.getSessions(); if (sel != null && sess.getCount() == 0 ... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e480ddad6ac818533f9a417616e8a35aa7b9250c/My5250.java/clean/tn5250j/src/org/tn5250j/My5250.java | |
loadDescriptors(pluginFiles); resolveDescriptors(); | final List descriptors = loadDescriptors(pluginFiles); resolveDescriptors(descriptors); | public PluginRegistryModel(URL[] pluginFiles) throws PluginException { this.extensionPoints = new BootableHashMap(); this.descriptorMap = new BootableHashMap(); loadDescriptors(pluginFiles); resolveDescriptors(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/PluginRegistryModel.java/clean/core/src/core/org/jnode/plugin/model/PluginRegistryModel.java |
private void loadDescriptors(URL[] pluginUrls) throws PluginException { | private List loadDescriptors(URL[] pluginUrls) throws PluginException { | private void loadDescriptors(URL[] pluginUrls) throws PluginException { final int max = pluginUrls.length; for (int i = 0; i < max; i++) { //System.out.println(pluginUrls[i]); loadPlugin(pluginUrls[ i], false); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a4bc60fa9952eee4e8b6801b3a5736f52717054a/PluginRegistryModel.java/clean/core/src/core/org/jnode/plugin/model/PluginRegistryModel.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.