rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
if (ReadObj.containsKey(readIdRef)) { BaseObject refReadObj = (BaseObject) ReadObj.get(readIdRef); try { readObj = (FormattedXMLDataIOStyle) refReadObj.clone(); } catch (java.lang.CloneNotSupportedException e) { Log.errorln("Weird error, cannot clone FormattedXMLDataIOStyle (read node) object. Aborting read."); System...
DataIOStyleAttribs.clear();
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !(DataIOStyleAttribs.isEmpty()) ) { // create new object appropriately Forma...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
DataIOStyleAttribs = new Hashtable(); int size = attrs.getLength(); for (int i = 0; i < size; i++) { String name = attrs.getName(i); String value = attrs.getValue(i); if (value != null) DataIOStyleAttribs.put(name, value); }
DataIOStyleAttribs.clear(); DataIOStyleAttribs = attribListToHashtable(attrs);
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // save these for later, when we know what kind of dataIOstyle we got // Argh we really need a clone on AttributeList. Just dumb copy for now. DataIOStyleAttribs = new Hashtable(); int size = attrs.getLen...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
String readIdRef = (String) DataIOStyleAttribs.get("readIdRef"); if (readIdRef != null) { XMLDataIOStyle readObj = null; if (ReadObj.containsKey(readIdRef)) { XMLDataIOStyle refReadObj = (XMLDataIOStyle) ReadObj.get(readIdRef); try { readObj = (XMLDataIOStyle) refReadObj.clone(); } catch (java.lang.CloneNotSupport...
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // save these for later, when we know what kind of dataIOstyle we got // Argh we really need a clone on AttributeList. Just dumb copy for now. DataIOStyleAttribs = new Hashtable(); int size = attrs.getLen...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDat...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDat...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
DataIOStyleAttribs = new Hashtable ();
if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); ReadObj.put(readId, readObj); } DataIOStyleAttribs.clear();
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDat...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDa...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDa...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
DataIOStyleAttribs = new Hashtable();
String readId = readObj.getReadId(); if (readId != null) { if (ReadObj.containsKey(readId)) Log.warnln("More than one read node with readId=\""+readId+"\", using latest node." ); ReadObj.put(readId, readObj); } DataIOStyleAttribs.clear();
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // if this is still defined, we havent init'd an // XMLDataIOStyle object for this array yet, do it now. if ( !DataIOStyleAttribs.isEmpty()) { // FormattedXMLDataIOStyle readObj = new FormattedXMLDa...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
ValueAttribs.clear();
public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { // grab parent node name // this special call will find the first parent node name // that doesnt match XDFNodeName.VALUEGROUP String parentNodeName = getParentNodeName(XDFNodeName.VALUEGROUP...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
public void action (SaxDocumentHandler handler) { // generate valuelist values from algoritm IF we need to // (e.g. values where'nt in a delimited cdata list) // check to see if we didnt alrealy parse from a delmited string. if ( ((String) CurrentValueListParameter.get("isDeli...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
CurrentValueListParameter = new Hashtable();
CurrentValueListParameter.clear();
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("pa...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
CurrentValueListParameter = attribListToHashtable(attrs);
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("pa...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
int size = attrs.getLength(); for (int i = 0; i < size; i++) { String value; if ((value = attrs.getValue(i)) != null) CurrentValueListParameter.put(attrs.getName(i), value); }
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // 1. re-init CurrentValueListParameter = new Hashtable(); // 2. populate ValueListparameters w/ parent name String parentNodeName = getParentNodeName(); CurrentValueListParameter.put("pa...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
startElementHandlerHashtable.put(XDFNodeName.VALUE, new nullStartElementHandlerFunc());
startElementHandlerHashtable.put(XDFNodeName.VALUE, new valueStartElementHandlerFunc());
private void initStartHandlerHashtable () { startElementHandlerHashtable.put(XDFNodeName.ARRAY, new arrayStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.AXIS, new axisStartElementHandlerFunc()); startElementHandlerHashtable.put(XDFNodeName.AXISUNITS, new nullStartElementHa...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/a76043f0ec763001c4d9c31169584cf395523ed6/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java
JPanel passPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10));
JPanel passPanel = new JPanel(); passPanel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 5)); passPanel.setLayout(new FlowLayout(FlowLayout.CENTER, 10 , 0));
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6a23de0d5ab12f72eb326ce880d79c3f8f62a42f/Connect.java/clean/tn5250j/src/org/tn5250j/Connect.java
setPassButton.setPreferredSize(new Dimension(150, 27));
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6a23de0d5ab12f72eb326ce880d79c3f8f62a42f/Connect.java/clean/tn5250j/src/org/tn5250j/Connect.java
password.setPreferredSize(new Dimension(password.getWidth(), 27));
private void createAccessPanel() { accessOptions = new TN5250jMultiSelectList(); if (props.getProperty("emul.accessDigest") != null) accessOptions.setEnabled(false); Vector options = OptionAccessFactory.getInstance().getOptions(); // set up a hashtable of option descriptions to options Hashtable ht = new Hashta...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/6a23de0d5ab12f72eb326ce880d79c3f8f62a42f/Connect.java/clean/tn5250j/src/org/tn5250j/Connect.java
public DataFormat getDatatype()
public String getDatatype()
public DataFormat getDatatype() { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); }
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/4a2c60ef6dcd498fd96a6b0c2034467f25a3556c/Parameter.java/buggy/src/gov/nasa/gsfc/adc/xdf/Parameter.java
return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).getAttribValue();
return (String) ((XMLAttribute) attribHash.get("datatype")).getAttribValue();
public DataFormat getDatatype() { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).getAttribValue(); }
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/4a2c60ef6dcd498fd96a6b0c2034467f25a3556c/Parameter.java/buggy/src/gov/nasa/gsfc/adc/xdf/Parameter.java
attribHash.put("units", new XMLAttribute(null, Constants.OBJECT_TYPE));
attribHash.put("units", new XMLAttribute(new Units(), Constants.OBJECT_TYPE));
private void init() { classXDFNodeName = "parameter"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"noteList"); attribOrder.add(0,"valueList"); attribOrder.add(0,"units"); attribOrder.add(0,"datatype"); attribOrder.add(0,"paramIdRef"); ...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/4a2c60ef6dcd498fd96a6b0c2034467f25a3556c/Parameter.java/buggy/src/gov/nasa/gsfc/adc/xdf/Parameter.java
public DataFormat setDatatype(DataFormat datatype)
public String setDatatype(String strDatatype)
public DataFormat setDatatype(DataFormat datatype) { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(datatype); }
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/4a2c60ef6dcd498fd96a6b0c2034467f25a3556c/Parameter.java/buggy/src/gov/nasa/gsfc/adc/xdf/Parameter.java
return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(datatype);
if (Utility.isValidDatatype(strDatatype)) return (String) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(strDatatype); else return null;
public DataFormat setDatatype(DataFormat datatype) { return (DataFormat) ((XMLAttribute) attribHash.get("datatype")).setAttribValue(datatype); }
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/4a2c60ef6dcd498fd96a6b0c2034467f25a3556c/Parameter.java/buggy/src/gov/nasa/gsfc/adc/xdf/Parameter.java
+ "Copyright (C) 2005 Free Software Foundation\n"
+ "Copyright (C) 2006 Free Software Foundation\n"
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final OrbFunctional orb = new OrbFunctional(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args[i].endsWith...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/792415b1783f5e8798e64529a3048ed049193e55/NamingServiceTransient.java/buggy/core/src/classpath/gnu/gnu/CORBA/NamingService/NamingServiceTransient.java
protected synchronized void accept(SocketImpl impl) throws IOException { // @vm-specific no natives throw new SocketException("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e6d7565d59d1bcabf1bfbee348e2d59423b904ba/PlainSocketImpl.java/buggy/core/src/classpath/gnu/gnu/java/net/PlainSocketImpl.java
protected int available() throws IOException { // @vm-specific no natives throw new SocketException("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e6d7565d59d1bcabf1bfbee348e2d59423b904ba/PlainSocketImpl.java/buggy/core/src/classpath/gnu/gnu/java/net/PlainSocketImpl.java
protected void close() throws IOException { // @vm-specific no natives throw new SocketException("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e6d7565d59d1bcabf1bfbee348e2d59423b904ba/PlainSocketImpl.java/buggy/core/src/classpath/gnu/gnu/java/net/PlainSocketImpl.java
protected synchronized void create(boolean stream) throws IOException { // @vm-specific no natives throw new SocketException("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e6d7565d59d1bcabf1bfbee348e2d59423b904ba/PlainSocketImpl.java/buggy/core/src/classpath/gnu/gnu/java/net/PlainSocketImpl.java
public Object getOption(int optID) throws SocketException { // @vm-specific no natives throw new SocketException("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e6d7565d59d1bcabf1bfbee348e2d59423b904ba/PlainSocketImpl.java/buggy/core/src/classpath/gnu/gnu/java/net/PlainSocketImpl.java
protected synchronized void listen(int queuelen) throws IOException { // @vm-specific no natives throw new SocketException("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e6d7565d59d1bcabf1bfbee348e2d59423b904ba/PlainSocketImpl.java/buggy/core/src/classpath/gnu/gnu/java/net/PlainSocketImpl.java
protected int read(byte[] buf, int offset, int len) throws IOException { // @vm-specific no natives throw new SocketException("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e6d7565d59d1bcabf1bfbee348e2d59423b904ba/PlainSocketImpl.java/buggy/core/src/classpath/gnu/gnu/java/net/PlainSocketImpl.java
public void setOption(int optID, Object value) throws SocketException { // @vm-specific no natives throw new SocketException("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e6d7565d59d1bcabf1bfbee348e2d59423b904ba/PlainSocketImpl.java/buggy/core/src/classpath/gnu/gnu/java/net/PlainSocketImpl.java
public void shutdownInput() { throw new InternalError ("PlainSocketImpl::shutdownInput not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e6d7565d59d1bcabf1bfbee348e2d59423b904ba/PlainSocketImpl.java/buggy/core/src/classpath/gnu/gnu/java/net/PlainSocketImpl.java
public void shutdownOutput()
public void shutdownOutput() throws IOException
public void shutdownOutput() { throw new InternalError ("PlainSocketImpl::shutdownOutput not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e6d7565d59d1bcabf1bfbee348e2d59423b904ba/PlainSocketImpl.java/buggy/core/src/classpath/gnu/gnu/java/net/PlainSocketImpl.java
public void shutdownOutput() { throw new InternalError ("PlainSocketImpl::shutdownOutput not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e6d7565d59d1bcabf1bfbee348e2d59423b904ba/PlainSocketImpl.java/buggy/core/src/classpath/gnu/gnu/java/net/PlainSocketImpl.java
protected void write(byte[] buf, int offset, int len) throws IOException { // @vm-specific no natives throw new SocketException("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e6d7565d59d1bcabf1bfbee348e2d59423b904ba/PlainSocketImpl.java/buggy/core/src/classpath/gnu/gnu/java/net/PlainSocketImpl.java
listeners [index].editingCanceled (changeEvent);
listeners[index].editingCanceled(changeEvent);
protected void fireEditingCanceled() { CellEditorListener[] listeners = getCellEditorListeners(); for (int index = 0; index < listeners.length; index++) { listeners [index].editingCanceled (changeEvent); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/AbstractCellEditor.java/clean/core/src/classpath/javax/javax/swing/AbstractCellEditor.java
listeners [index].editingStopped (changeEvent);
listeners[index].editingStopped(changeEvent);
protected void fireEditingStopped() { CellEditorListener[] listeners = getCellEditorListeners(); for (int index = 0; index < listeners.length; index++) { listeners [index].editingStopped (changeEvent); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/AbstractCellEditor.java/clean/core/src/classpath/javax/javax/swing/AbstractCellEditor.java
protected MetalContainerListener() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/MetalToolBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalToolBarUI.java
protected MetalRolloverListener() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/MetalToolBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalToolBarUI.java
Graphics2D g2 = getDrawingArea();
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
Graphics2D g2 = getDrawingArea();
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) {
public void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) {
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchro...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
System.out.println(" we got a null graphic object ");
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchro...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
lock.notify();
lock.notifyAll();
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) { /** * @todo this is a hack and should be fixed at the root of the problem */ if (gg2d == null) {// System.out.println(" we got a null graphic object "); return; } synchro...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
g2d = (Graphics2D)bi.getGraphics();
g2d = getDrawingArea();
public Graphics2D drawOIA (int fmWidth, int fmHeight, int numRows, int numCols, Font font, Color colorBg, Color colorBlue ) { G...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
while (bi == null)
while (bi == null) { System.out.println(" bi = null ");
public Graphics2D getDrawingArea() { try { synchronized (lock) { // wait until there is something to read while (bi == null) lock.wait(); // we have the lock and state we're seeking Graphics2D g2; g2 = bi.createGraphics(); r...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
}
public Graphics2D getDrawingArea() { try { synchronized (lock) { // wait until there is something to read while (bi == null) lock.wait(); // we have the lock and state we're seeking Graphics2D g2; g2 = bi.createGraphics(); r...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
lock.notifyAll();
public Graphics2D getDrawingArea() { try { synchronized (lock) { // wait until there is something to read while (bi == null) lock.wait(); // we have the lock and state we're seeking Graphics2D g2; g2 = bi.createGraphics(); r...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
lock.notifyAll();
public int getHeight() { synchronized (lock) { return bi.getHeight(); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
if (bi == null || bi.getWidth() != width || bi.getHeight() != height)
if (bi == null || bi.getWidth() != width || bi.getHeight() != height) {
public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
lock.notify();
lock.notifyAll();
public BufferedImage getImageBuffer(int width, int height) { synchronized (lock) { if (bi == null || bi.getWidth() != width || bi.getHeight() != height) // allocate a buffer Image with appropriate size bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
lock.notifyAll();
public int getWidth() { synchronized (lock) { return bi.getWidth(); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
while (bi == null)
while (bi == null) { System.out.println( " bi = null wa ");
public Graphics2D getWritingArea(Font font) { Graphics2D g2; // we could be in the middle of creating the graphics because of the // threads, resizing etc.... so lets wait until we have one. // If this causes problems we should implement a thresh-hold of sorts // to keep an infina...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
lock.notifyAll();
public Graphics2D getWritingArea(Font font) { Graphics2D g2; // we could be in the middle of creating the graphics because of the // threads, resizing etc.... so lets wait until we have one. // If this causes problems we should implement a thresh-hold of sorts // to keep an infina...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
lock.notify();
lock.notifyAll();
public void resize(int width, int height) { if (bi.getWidth() != width || bi.getHeight() != height) { synchronized (lock) { bi = null; bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this.width = width; this.height = height; // tel...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/e95e8529e0583c40804063baff9fc99787c4f55b/GuiGraphicBuffer.java/clean/tn5250j/src/org/tn5250j/GuiGraphicBuffer.java
DHGenParameterSpec params = (DHGenParameterSpec) attributes.get(DH_PARAMETERS);
Object params = attributes.get(DH_PARAMETERS);
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/GnuDHKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/javax/crypto/key/dh/GnuDHKeyPairGenerator.java
if (params != null)
if (params instanceof DHGenParameterSpec)
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/GnuDHKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/javax/crypto/key/dh/GnuDHKeyPairGenerator.java
l = params.getPrimeSize(); m = params.getExponentSize();
DHGenParameterSpec jceSpec = (DHGenParameterSpec) params; l = jceSpec.getPrimeSize(); m = jceSpec.getExponentSize(); } else if (params instanceof DHParameterSpec) { DHParameterSpec jceSpec = (DHParameterSpec) params; l = jceSpec.getP().bitLength(); m = jceSpec.getL();
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? DHGenParameterSpec params = (DHGenParameterSpec) attributes.g...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/GnuDHKeyPairGenerator.java/buggy/core/src/classpath/gnu/gnu/javax/crypto/key/dh/GnuDHKeyPairGenerator.java
return currentThread().isInterrupted();
VmThread current = VmThread.currentThread(); if (current != null) { return current.isInterrupted(true); } else { return false; }
public static boolean interrupted() { return currentThread().isInterrupted(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7a63abb55c64a33249c8a78b7e9c304c95800cf/Thread.java/buggy/core/src/classpath/vm/java/lang/Thread.java
return vmThread.isInterrupted();
return vmThread.isInterrupted(false);
public boolean isInterrupted() { return vmThread.isInterrupted(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7a63abb55c64a33249c8a78b7e9c304c95800cf/Thread.java/buggy/core/src/classpath/vm/java/lang/Thread.java
if (vmThread.isInterrupted(true)) { throw new InterruptedException(); }
public final synchronized void join() throws InterruptedException { while (isAlive()) { /* wait sets this.state = WAITING; */ wait(); /* wait sets this.state = RUNNING; */ } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/f7a63abb55c64a33249c8a78b7e9c304c95800cf/Thread.java/buggy/core/src/classpath/vm/java/lang/Thread.java
return preferredScrollableViewportSize;
return preferredViewportSize;
public Dimension getPreferredScrollableViewportSize() { return preferredScrollableViewportSize; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JTable.java/buggy/core/src/classpath/javax/javax/swing/JTable.java
this.preferredScrollableViewportSize = new Dimension(450,400);
this.preferredViewportSize = new Dimension(450,400);
protected void initializeLocalVars() { this.autoCreateColumnsFromModel = false; if (columnModel == null) { this.autoCreateColumnsFromModel = true; createColumnsFromModel(); } this.columnModel.addColumnModelListener(this); this.defaultRenderersByColumnClass = new Hashtable(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JTable.java/buggy/core/src/classpath/javax/javax/swing/JTable.java
preferredScrollableViewportSize = p;
preferredViewportSize = p;
public void setPreferredScrollableViewportSize(Dimension p) { preferredScrollableViewportSize = p; revalidate(); repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JTable.java/buggy/core/src/classpath/javax/javax/swing/JTable.java
}
}
public void change(int offset, int length, DefaultDocumentEvent ev) { this.offset = offset; this.length = length; changeUpdate(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultStyledDocument.java/clean/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
par.replace(index, 1, new Element[]{ child1, child2 });
Element[] add = new Element[]{ child1, child2 }; par.replace(index, 1, add); documentEvent.addEdit(new ElementEdit(par, index, new Element[]{ el }, add));
void split(Element el, int offset) { if (el instanceof AbstractElement) { AbstractElement ael = (AbstractElement) el; int startOffset = ael.getStartOffset(); int endOffset = ael.getEndOffset(); int len = endOffset - startOffset; if (startOffset != offset && endOffset != offset) { Element...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultStyledDocument.java/clean/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
Element element = getCharacterElement(position); return element.getParentElement();
BranchElement root = (BranchElement) getDefaultRootElement(); int start = root.getStartOffset(); int end = root.getEndOffset(); if (position >= end) position = end - 1; else if (position < start) position = start; Element par = root.positionToElement(position); assert par != null : "The paragraph element must not be ...
public Element getParagraphElement(int position) { Element element = getCharacterElement(position); return element.getParentElement(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultStyledDocument.java/clean/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
fireChangedUpdate(ev);
public void setCharacterAttributes(int offset, int length, AttributeSet attributes, boolean replace) { DefaultDocumentEvent ev = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.CHANGE); // Modify the element structure so that the interval begins at an element /...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultStyledDocument.java/clean/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
public int getFreeBlocksCount() {
public synchronized int getFreeBlocksCount() {
public int getFreeBlocksCount() { return Ext2Utils.get16(data, 12); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76cdfbaf38c1029347a5829758eac206a20e3b16/GroupDescriptor.java/buggy/fs/src/fs/org/jnode/fs/ext2/GroupDescriptor.java
public int getFreeInodesCount() {
public synchronized int getFreeInodesCount() {
public int getFreeInodesCount() { return Ext2Utils.get16(data, 14); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76cdfbaf38c1029347a5829758eac206a20e3b16/GroupDescriptor.java/buggy/fs/src/fs/org/jnode/fs/ext2/GroupDescriptor.java
public int getUsedDirsCount() {
public synchronized int getUsedDirsCount() {
public int getUsedDirsCount() { return Ext2Utils.get16(data, 16); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76cdfbaf38c1029347a5829758eac206a20e3b16/GroupDescriptor.java/buggy/fs/src/fs/org/jnode/fs/ext2/GroupDescriptor.java
public void setFreeBlocksCount(int count) {
public synchronized void setFreeBlocksCount(int count) {
public void setFreeBlocksCount(int count) { Ext2Utils.set16(data, 12, count); setDirty(true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76cdfbaf38c1029347a5829758eac206a20e3b16/GroupDescriptor.java/buggy/fs/src/fs/org/jnode/fs/ext2/GroupDescriptor.java
public void setFreeInodesCount(int count) {
public synchronized void setFreeInodesCount(int count) {
public void setFreeInodesCount(int count) { Ext2Utils.set16(data, 14, count); setDirty(true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76cdfbaf38c1029347a5829758eac206a20e3b16/GroupDescriptor.java/buggy/fs/src/fs/org/jnode/fs/ext2/GroupDescriptor.java
public void setUsedDirsCount(int count) {
public synchronized void setUsedDirsCount(int count) {
public void setUsedDirsCount(int count) { Ext2Utils.set16(data, 16, count); setDirty(true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76cdfbaf38c1029347a5829758eac206a20e3b16/GroupDescriptor.java/buggy/fs/src/fs/org/jnode/fs/ext2/GroupDescriptor.java
groupDescriptorLock = new Object(); superblockLock = new Object();
public Ext2FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); blockCache = new BlockCache(50,(float)0.75); inodeCache = new INodeCache(50,(float)0.75); groupDescriptorLock = new Object(); superblockLock = new Object(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76cdfbaf38c1029347a5829758eac206a20e3b16/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
public void create(int blockSize) throws FileSystemException { try{ //create the superblock superblock = new Superblock(); superblock.create(blockSize, this); //create the group descriptors groupCount = (int)Math.ceil((double)superblock.getBlocksCount() / (double)superblock.getBlocksPerGroup()); groupD...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76cdfbaf38c1029347a5829758eac206a20e3b16/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
throw new FileSystemException("Block group "+preferredBlockBroup+"does not exist");
throw new FileSystemException("Block group "+preferredBlockBroup+" does not exist");
protected INode createINode(int preferredBlockBroup, int fileFormat, int accessRights, int uid, int gid) throws FileSystemException, IOException { if(preferredBlockBroup >= superblock.getBlocksCount()) throw new FileSystemException("Block group "+preferredBlockBroup+"does not exist"); int groupNr = preferre...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76cdfbaf38c1029347a5829758eac206a20e3b16/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
synchronized(blockCache) { if(blockCache.containsKey(key)) result=(Block)blockCache.get(key); else{ byte[] data = new byte[blockSize]; getApi().read( nr*blockSize, data, 0, blockSize ); result=new Block(this, nr, data); blockCache.put(key, result); } } return result.getData();
synchronized(blockCache) { if(blockCache.containsKey(key)) { result=(Block)blockCache.get(key); return result.getData(); } } byte[] data = new byte[blockSize]; getApi().read( nr*blockSize, data, 0, blockSize ); synchronized(blockCache) { if(!blockCache.containsKey(key)) { result=new Block(this, nr, data);...
public byte[] getBlock(long nr) throws IOException{ if(isClosed()) throw new IOException("FS closed (fs instance: "+this+")"); //log.debug("blockCache size: "+blockCache.size()); int blockSize = superblock.getBlockSize(); Block result; Integer key=new Integer((int)(nr)); synchronized(blockCache) { //chec...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76cdfbaf38c1029347a5829758eac206a20e3b16/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
synchronized(gdesc) { gdesc.setFreeBlocksCount( gdesc.getFreeBlocksCount()+diff ); }
gdesc.setFreeBlocksCount( gdesc.getFreeBlocksCount()+diff );
protected void modifyFreeBlocksCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeBlocksCount( gdesc.getFreeBlocksCount()+diff ); } synchronized(superblock) { superblock.setFreeBlocksCount( superblock.getFreeBlocksCount()+diff ); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76cdfbaf38c1029347a5829758eac206a20e3b16/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
synchronized(superblock) { superblock.setFreeBlocksCount( superblock.getFreeBlocksCount()+diff ); }
superblock.setFreeBlocksCount( superblock.getFreeBlocksCount()+diff );
protected void modifyFreeBlocksCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeBlocksCount( gdesc.getFreeBlocksCount()+diff ); } synchronized(superblock) { superblock.setFreeBlocksCount( superblock.getFreeBlocksCount()+diff ); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76cdfbaf38c1029347a5829758eac206a20e3b16/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
synchronized(gdesc) { gdesc.setFreeInodesCount( gdesc.getFreeInodesCount()+diff ); } synchronized(superblock) { superblock.setFreeInodesCount( superblock.getFreeInodesCount()+diff ); }
gdesc.setFreeInodesCount( gdesc.getFreeInodesCount()+diff ); superblock.setFreeInodesCount( superblock.getFreeInodesCount()+diff );
protected void modifyFreeInodesCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setFreeInodesCount( gdesc.getFreeInodesCount()+diff ); } synchronized(superblock) { superblock.setFreeInodesCount( superblock.getFreeInodesCount()+diff ); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76cdfbaf38c1029347a5829758eac206a20e3b16/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
synchronized(gdesc) { gdesc.setUsedDirsCount( gdesc.getUsedDirsCount()+diff ); }
gdesc.setUsedDirsCount( gdesc.getUsedDirsCount()+diff );
protected void modifyUsedDirsCount(int group, int diff) { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setUsedDirsCount( gdesc.getUsedDirsCount()+diff ); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76cdfbaf38c1029347a5829758eac206a20e3b16/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
groupDescriptors[i].updateGroupDescriptors();
groupDescriptors[i].updateGroupDescriptor();
protected void updateFS() throws IOException { //updating one group descriptor updates all its copies for(int i=0; i<groupCount; i++) groupDescriptors[i].updateGroupDescriptors(); superblock.update(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76cdfbaf38c1029347a5829758eac206a20e3b16/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
RETokenOneOf(int subIndex, Vector options, boolean negative) {
RETokenOneOf(int subIndex, String optionsStr, boolean negative, boolean insens) {
RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); this.options = options; this.negative = negative; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/RETokenOneOf.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenOneOf.java
this.options = options;
options = new Vector();
RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); this.options = options; this.negative = negative; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/RETokenOneOf.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenOneOf.java
for (int i = 0; i < optionsStr.length(); i++) options.addElement(new RETokenChar(subIndex,optionsStr.charAt(i),insens));
RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); this.options = options; this.negative = negative; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/RETokenOneOf.java/buggy/core/src/classpath/gnu/gnu/regexp/RETokenOneOf.java
Structure structure = new Structure();
XMLDeclaration xmlDecl = new XMLDeclaration(); DocumentType doctype = new DocumentType(xdf);
public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("r...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/5009c62366589cb8fb29f8c480fdbf9bc1a45279/CreateXdf.java/clean/samples/CreateXdf.java
href.setSystemId("xdf_table");
href.setSystemId("xdf_table.dat");
public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("r...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/5009c62366589cb8fb29f8c480fdbf9bc1a45279/CreateXdf.java/clean/samples/CreateXdf.java
structure.addArray(array); xdf.addStructure(structure);
xdf.addArray(array);
public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("r...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/5009c62366589cb8fb29f8c480fdbf9bc1a45279/CreateXdf.java/clean/samples/CreateXdf.java
System.out.println("-----\nPRINT OUT STRUCTURE\n-----");
public static void main (String [] args) throws SetDataException, IOException { XDF xdf = new XDF(); Structure structure = new Structure(); Array array = new Array(); FieldAxis fieldAxis = new FieldAxis(); fieldAxis.setName("Column"); fieldAxis.setAxisId("column_id"); Axis axis = new Axis(ROW); axis.setName("r...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/5009c62366589cb8fb29f8c480fdbf9bc1a45279/CreateXdf.java/clean/samples/CreateXdf.java
System.out.println(nbCopyedFile + " file(s) copyed");
System.out.println(nbCopyedFile + " file(s) copied");
public static void main(String[] args) throws Exception { CpCommand cpCommand = new CpCommand(args); int nbCopyedFile = cpCommand.copy(); System.out.println(nbCopyedFile + " file(s) copyed"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d7fa7f7e5d5cb4de702b79bb0d00d1754256d153/CpCommand.java/clean/fs/src/fs/org/jnode/fs/command/CpCommand.java
Class iClass = Class.forName(cn);
Class iClass = ObjectCreator.forName(cn);
private void checkProperties(Properties props) { if (props == null) { return; } Enumeration names = props.propertyNames(); java.lang.Object key; String sk; while (names.hasMoreElements()) { key = names.nextElement(); if (key != null) { sk = key.t...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Registrator.java/buggy/core/src/classpath/gnu/gnu/CORBA/Interceptor/Registrator.java
a.addAttribute(Bold, new Boolean(b));
a.addAttribute(Bold, Boolean.valueOf(b));
public static void setBold(MutableAttributeSet a, boolean b) { a.addAttribute(Bold, new Boolean(b)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/511ee4599fec6e0fd95b9d64823beef0c7439ee1/StyleConstants.java/buggy/core/src/classpath/javax/javax/swing/text/StyleConstants.java
a.addAttribute(Italic, new Boolean(b));
a.addAttribute(Italic, Boolean.valueOf(b));
public static void setItalic(MutableAttributeSet a, boolean b) { a.addAttribute(Italic, new Boolean(b)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/511ee4599fec6e0fd95b9d64823beef0c7439ee1/StyleConstants.java/buggy/core/src/classpath/javax/javax/swing/text/StyleConstants.java
a.addAttribute(StrikeThrough, new Boolean(b));
a.addAttribute(StrikeThrough, Boolean.valueOf(b));
public static void setStrikeThrough(MutableAttributeSet a, boolean b) { a.addAttribute(StrikeThrough, new Boolean(b)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/511ee4599fec6e0fd95b9d64823beef0c7439ee1/StyleConstants.java/buggy/core/src/classpath/javax/javax/swing/text/StyleConstants.java
a.addAttribute(Subscript, new Boolean(b));
a.addAttribute(Subscript, Boolean.valueOf(b));
public static void setSubscript(MutableAttributeSet a, boolean b) { a.addAttribute(Subscript, new Boolean(b)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/511ee4599fec6e0fd95b9d64823beef0c7439ee1/StyleConstants.java/buggy/core/src/classpath/javax/javax/swing/text/StyleConstants.java