rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
public void focusPreviousComponent(Component component) { | public void focusPreviousComponent(Component component) { | public void focusPreviousComponent(Component component) { // TODO } // focusPreviousComponent() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultFocusManager.java/clean/core/src/classpath/javax/javax/swing/DefaultFocusManager.java |
public Component getComponentAfter(Container container, Component component) { | public Component getComponentAfter(Container container, Component component) { | public Component getComponentAfter(Container container, Component component) { return null; // TODO } // getComponentAfter() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultFocusManager.java/clean/core/src/classpath/javax/javax/swing/DefaultFocusManager.java |
public Component getComponentBefore(Container container, Component component) { | public Component getComponentBefore(Container container, Component component) { | public Component getComponentBefore(Container container, Component component) { return null; // TODO } // getComponentBefore() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultFocusManager.java/clean/core/src/classpath/javax/javax/swing/DefaultFocusManager.java |
public Component getFirstComponent(Container container) { | public Component getFirstComponent(Container container) { | public Component getFirstComponent(Container container) { return null; // TODO } // getFirstComponent() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultFocusManager.java/clean/core/src/classpath/javax/javax/swing/DefaultFocusManager.java |
public Component getLastComponent(Container container) { | public Component getLastComponent(Container container) { | public Component getLastComponent(Container container) { return null; // TODO } // getLastComponent() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultFocusManager.java/clean/core/src/classpath/javax/javax/swing/DefaultFocusManager.java |
public void processKeyEvent(Component component, KeyEvent event) { | public void processKeyEvent(Component component, KeyEvent event) { | public void processKeyEvent(Component component, KeyEvent event) { // TODO } // processKeyEvent() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/DefaultFocusManager.java/clean/core/src/classpath/javax/javax/swing/DefaultFocusManager.java |
throws MidiUnavailableException, IllegalArgumentException | throws MidiUnavailableException | public static MidiDevice getMidiDevice(MidiDevice.Info info) throws MidiUnavailableException, IllegalArgumentException { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); if (! deviceProviders.hasNext()) throw new MidiUnavailableException("No MIDI device provider... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/MidiSystem.java/buggy/core/src/classpath/javax/javax/sound/midi/MidiSystem.java |
Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); | Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); | public static MidiDevice getMidiDevice(MidiDevice.Info info) throws MidiUnavailableException, IllegalArgumentException { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); if (! deviceProviders.hasNext()) throw new MidiUnavailableException("No MIDI device provider... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/MidiSystem.java/buggy/core/src/classpath/javax/javax/sound/midi/MidiSystem.java |
throw new IllegalArgumentException("MIDI device " + info + " not available."); | throw new IllegalArgumentException("MIDI device " + info + " not available."); | public static MidiDevice getMidiDevice(MidiDevice.Info info) throws MidiUnavailableException, IllegalArgumentException { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); if (! deviceProviders.hasNext()) throw new MidiUnavailableException("No MIDI device provider... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/MidiSystem.java/buggy/core/src/classpath/javax/javax/sound/midi/MidiSystem.java |
Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); | Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); | public static MidiDevice.Info[] getMidiDeviceInfo() { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); List infoList = new ArrayList(); while (deviceProviders.hasNext()) { MidiDeviceProvider provider = (MidiDeviceProvider) deviceProviders.next(); MidiDevi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/MidiSystem.java/buggy/core/src/classpath/javax/javax/sound/midi/MidiSystem.java |
return (MidiDevice.Info[]) infoList.toArray(new MidiDevice.Info[infoList.size()]); | return (MidiDevice.Info[]) infoList.toArray(new MidiDevice.Info[infoList.size()]); | public static MidiDevice.Info[] getMidiDeviceInfo() { Iterator deviceProviders = ServiceFactory.lookupProviders(MidiDeviceProvider.class); List infoList = new ArrayList(); while (deviceProviders.hasNext()) { MidiDeviceProvider provider = (MidiDeviceProvider) deviceProviders.next(); MidiDevi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/MidiSystem.java/buggy/core/src/classpath/javax/javax/sound/midi/MidiSystem.java |
throw new InvalidMidiDataException("Cannot read MidiFileFormat from stream"); | throw new InvalidMidiDataException("Can't read MidiFileFormat from stream"); | public static MidiFileFormat getMidiFileFormat(InputStream stream) throws InvalidMidiDataException, IOException { Iterator readers = ServiceFactory.lookupProviders(MidiFileReader.class); while (readers.hasNext()) { MidiFileReader sr = (MidiFileReader) readers.next(); MidiFileFormat sb = sr.getM... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/MidiSystem.java/buggy/core/src/classpath/javax/javax/sound/midi/MidiSystem.java |
throws IOException, IllegalArgumentException | throws IOException | public static int write(Sequence in, int fileType, OutputStream out) throws IOException, IllegalArgumentException { Iterator writers = ServiceFactory.lookupProviders(MidiFileWriter.class); while (writers.hasNext()) { MidiFileWriter fw = (MidiFileWriter) writers.next(); if (fw.isFileTypeSupp... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/MidiSystem.java/buggy/core/src/classpath/javax/javax/sound/midi/MidiSystem.java |
throw new IllegalArgumentException("File type " + fileType + " is not supported"); | throw new IllegalArgumentException("File type " + fileType + " is not supported"); | public static int write(Sequence in, int fileType, OutputStream out) throws IOException, IllegalArgumentException { Iterator writers = ServiceFactory.lookupProviders(MidiFileWriter.class); while (writers.hasNext()) { MidiFileWriter fw = (MidiFileWriter) writers.next(); if (fw.isFileTypeSupp... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/MidiSystem.java/buggy/core/src/classpath/javax/javax/sound/midi/MidiSystem.java |
this.impl = new VMPlainSocketImpl(); | public PlainSocketImpl() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c6bd4d63622475fff01c1920f223e404234d976f/PlainSocketImpl.java/buggy/core/src/classpath/gnu/gnu/java/net/PlainSocketImpl.java | |
protected NIOSocket (PlainSocketImpl impl, SocketChannelImpl channel) | protected NIOSocket (SocketChannelImpl channel) | protected NIOSocket (PlainSocketImpl impl, SocketChannelImpl channel) throws IOException { super (impl); this.impl = impl; this.channel = channel; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0775c21093571dbb049293760df0896d396210d3/NIOSocket.java/buggy/core/src/classpath/gnu/gnu/java/nio/NIOSocket.java |
super (impl); this.impl = impl; | super (new NIOSocketImpl(channel)); | protected NIOSocket (PlainSocketImpl impl, SocketChannelImpl channel) throws IOException { super (impl); this.impl = impl; this.channel = channel; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0775c21093571dbb049293760df0896d396210d3/NIOSocket.java/buggy/core/src/classpath/gnu/gnu/java/nio/NIOSocket.java |
if (event.isPopupTrigger ()) | if (SwingUtilities.isRightMouseButton(event)) | private void jbInit() throws Exception { this.setTitle(LangTool.getString("spool.title")); this.setIconImage(My5250.tnicon.getImage()); this.getContentPane().add(createFilterPanel(), BorderLayout.NORTH); // get an instance of our table model stm = new SpoolTableModel(); // create a tabl... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/68775ed3a5d21d1816c9f1c0c83e86cc736d87cb/SpoolExporter.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExporter.java |
if (event.isPopupTrigger ()) | if (SwingUtilities.isRightMouseButton(event)) | private void jbInit() throws Exception { this.setTitle(LangTool.getString("spool.title")); this.setIconImage(My5250.tnicon.getImage()); this.getContentPane().add(createFilterPanel(), BorderLayout.NORTH); // get an instance of our table model stm = new SpoolTableModel(); // create a tabl... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/68775ed3a5d21d1816c9f1c0c83e86cc736d87cb/SpoolExporter.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExporter.java |
if (event.isPopupTrigger ()) | if (SwingUtilities.isRightMouseButton(event)) | public void mousePressed (MouseEvent event) { if (event.isPopupTrigger ()) showPopupMenu(event); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/68775ed3a5d21d1816c9f1c0c83e86cc736d87cb/SpoolExporter.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExporter.java |
if (event.isPopupTrigger ()) | if (SwingUtilities.isRightMouseButton(event)) | public void mouseReleased (MouseEvent event) { if (event.isPopupTrigger ()) showPopupMenu(event); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/68775ed3a5d21d1816c9f1c0c83e86cc736d87cb/SpoolExporter.java/buggy/tn5250j/src/org/tn5250j/spoolfile/SpoolExporter.java |
CurrentArray = CurrentStructure.addArray(newarray); | if (newarray != null) { String arrayId = newarray.getArrayId(); if ( arrayId != null) ArrayObj.put(arrayId, newarray); } | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // create new object appropriately Array newarray = new Array(); newarray.setXMLAttributes(attrs); // set XML attributes from passed list // set current array and add this array to current structure ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
CurrentArray = newarray; | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // create new object appropriately Array newarray = new Array(); newarray.setXMLAttributes(attrs); // set XML attributes from passed list // set current array and add this array to current structure ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java | |
addDataToCurrentArray(TaggedLocatorObj, thisString, CurrentDataFormat); | addDataToCurrentArray(TaggedLocatorObj, thisString, CurrentDataFormat, IntRadix[CurrentDataFormatIndex]); | public void action (SaxDocumentHandler handler, char buf [], int offset, int len) { XMLDataIOStyle readObj = CurrentArray.getXMLDataIOStyle(); String thisString = new String(buf,offset,len); if ( readObj instanceof TaggedXMLDataIOStyle ) { // dont add this data unless it ha... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java | ||
/* $template = $formatObj->_templateNotation(1); $recordSize = $formatObj->bytes(); $data_has_special_integers = $formatObj->hasSpecialIntegers; */ | public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java | |
addDataToCurrentArray(myLocator, thisData, CurrentDataFormat); | addDataToCurrentArray(myLocator, thisData, CurrentDataFormat, IntRadix[CurrentDataFormatIndex]); | public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
int currentFastAxisCoordinate = myLocator.getAxisLocation(FastestAxis); | int currentFastAxisCoordinate = myLocator.getAxisIndex(FastestAxis); | public void action (SaxDocumentHandler handler) { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
NrofDataFormats = DataFormatList.length; IntRadix = new int [NrofDataFormats]; for (int i=0; i < NrofDataFormats; i++) { if (DataFormatList[i] instanceof IntegerDataFormat) { String type = ((IntegerDataFormat) DataFormatList[i]).getType(); if (type.equals(Constants.INTEGER_TYPE_DECIMAL)) IntRadix[i] = 10; else if (t... | public Object action (SaxDocumentHandler handler, AttributeList attrs) { // we only need to do these things for the first time we enter // a data node if (DataNodeLevel == 0) { // A little 'pre-handling' as href is a specialattribute // that will hold an (Href)... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java | |
int currentFastAxisCoordinate = TaggedLocatorObj.getAxisLocation(FastestAxis); | int currentFastAxisCoordinate = TaggedLocatorObj.getAxisIndex(FastestAxis); | public void action (SaxDocumentHandler handler) { if (CurrentDataTagLevel == DataTagLevel) TaggedLocatorObj.next(); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = TaggedLocatorObj.getAxisLocation(FastestAxis);... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
private void addByteDataToCurrentArray (byte[] data, int amount, String endian, int nrofDataFormat) { | private void addByteDataToCurrentArray (byte[] data, int amount, String endian) { | private void addByteDataToCurrentArray (byte[] data, int amount, String endian, int nrofDataFormat) { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getCommands(); int nrofIOCmd = commandList.size(); int bytes_added = 0;Log.errorln("Adding "+amo... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
if (nrofDataFormat > 1) if (CurrentDataFormatIndex == (nrofDataFormat - 1)) | if (NrofDataFormats > 1) if (CurrentDataFormatIndex == (NrofDataFormats - 1)) | private void addByteDataToCurrentArray (byte[] data, int amount, String endian, int nrofDataFormat) { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getCommands(); int nrofIOCmd = commandList.size(); int bytes_added = 0;Log.errorln("Adding "+amo... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
DataFormat CurrentDataFormat | DataFormat CurrentDataFormat, int intRadix | private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat b... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat b... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java | ||
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat b... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java | ||
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat b... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java | ||
Integer number = new Integer (thisString); CurrentArray.setData(dataLocator, number.intValue()); | if (intRadix == 16) thisString = thisString.substring(2); int thisInt = Integer.parseInt(thisString, intRadix); CurrentArray.setData(dataLocator, thisInt); | private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) {// Log.error("addDatatoArray:["+thisString+"]"); // Note that we dont treat b... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
if(endianStyle.equals("BigEndian")) | if(endianStyle.equals(Constants.BIG_ENDIAN)) | private Integer convert2bytesToInteger (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals("BigEndian")) i = (bb[sbyte]&0xFF) << 8 | (bb[sbyte+1]&0xFF); else i = (bb[sbyte+1]&0xFF) << 8 | (bb[sbyte]&0xFF); return new Integer(i); } | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
if(endianStyle.equals("BigEndian")) | if(endianStyle.equals(Constants.BIG_ENDIAN)) | private Float convert4bytesToFloat (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals("BigEndian")) i = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); else i = (bb[sbyte+3]&0xFF) << 24 | (bb[sbyte+2]&0x... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
if(endianStyle.equals("BigEndian")) | if(endianStyle.equals(Constants.BIG_ENDIAN)) | private Integer convert4bytesToInteger (String endianStyle, byte[] bb, int sbyte) { int i; if(endianStyle.equals("BigEndian")) i = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); else i = (bb[sbyte+3]&0xFF) << 24 | (bb[sbyte+2... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
if(endianStyle.equals("BigEndian")) | if(endianStyle.equals(Constants.BIG_ENDIAN)) | private Double convert8bytesToDouble (String endianStyle, byte[] bb, int sbyte) { int i1; int i2; if(endianStyle.equals("BigEndian")) { i1 = (bb[sbyte]&0xFF) << 24 | (bb[sbyte+1]&0xFF) << 16 | (bb[sbyte+2]&0xFF) << 8 | (bb[sbyte+3]&0xFF); i2 = (bb[sbyte+4]&0xFF) << 24 |... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
if(endianStyle.equals("BigEndian")) | if(endianStyle.equals(Constants.BIG_ENDIAN)) | private String convertBinaryDataToString (String endianStyle, DataFormat binaryFormatObj, String strDataRep ) { byte[] bb = strDataRep.getBytes(); if (binaryFormatObj instanceof BinaryIntegerDataFormat) { ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
if(endianStyle.equals("BigEndian")) | if(endianStyle.equals(Constants.BIG_ENDIAN)) | private String convertBinaryDataToString (String endianStyle, DataFormat binaryFormatObj, String strDataRep ) { byte[] bb = strDataRep.getBytes(); if (binaryFormatObj instanceof BinaryIntegerDataFormat) { ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
if(endianStyle.equals("BigEndian")) | if(endianStyle.equals(Constants.BIG_ENDIAN)) | private String convertBinaryDataToString (String endianStyle, DataFormat binaryFormatObj, String strDataRep ) { byte[] bb = strDataRep.getBytes(); if (binaryFormatObj instanceof BinaryIntegerDataFormat) { ... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
endElementHandlerHashtable.put(XDFNodeName.ARRAY, new arrayEndElementHandlerFunc()); | private void initEndHandlerHashtable () { endElementHandlerHashtable.put(XDFNodeName.DATA, new dataEndElementHandlerFunc()); endElementHandlerHashtable.put(XDFNodeName.FIELDGROUP, new fieldGroupEndElementHandlerFunc()); endElementHandlerHashtable.put(XDFNodeName.NOTES, new notesEndElementHandlerFu... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java | |
private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() !=... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java | ||
int nrofDataFormat = DataFormatList.length; | private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() !=... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java | |
addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat); | addByteDataToCurrentArray(data, bytes_read, endian ); | private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() !=... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
addByteDataToCurrentArray(data, bytes_read, endian, nrofDataFormat); | addByteDataToCurrentArray(data, bytes_read, endian ); | private void loadHrefDataIntoCurrentArray () { Href hrefObj = CurrentArray.getDataCube().getHref(); // well, we should be doing something with base here, // but arent because it isnt captured by this API. feh. // $file = $href->getBase() if $href->getBase(); if (hrefObj.getSysId() !=... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/affb34130c4afb7210c31f708232bb3e303bf53a/SaxDocumentHandler.java/buggy/src/gov/nasa/gsfc/adc/xdf/SaxDocumentHandler.java |
for (int i = start - 1; i < end; i++) | for (int i = start; i < end; i++) | public void intervalAdded(ListDataEvent e) { // must determine if the size of the combo box should change int start = e.getIndex0(); int end = e.getIndex1(); ComboBoxModel model = comboBox.getModel(); ListCellRenderer renderer = comboBox.getRenderer(); if (largestItemSize == null) l... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/BasicComboBoxUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java |
public DefaultHighlighter() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DefaultHighlighter.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java | ||
public void paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DefaultHighlighter.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java | ||
{ List defaultList; | { List defaultList; | public SpinnerListModel() { List defaultList; /* Create an empty list */ defaultList = new ArrayList(); /* Add the string "empty" */ defaultList.add("empty"); /* Set the list */ setList(defaultList); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/SpinnerListModel.java/buggy/core/src/classpath/javax/javax/swing/SpinnerListModel.java |
/* Create an empty list */ defaultList = new ArrayList(); /* Add the string "empty" */ defaultList.add("empty"); /* Set the list */ setList(defaultList); } | defaultList = new ArrayList(); defaultList.add("empty"); setList(defaultList); } | public SpinnerListModel() { List defaultList; /* Create an empty list */ defaultList = new ArrayList(); /* Add the string "empty" */ defaultList.add("empty"); /* Set the list */ setList(defaultList); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/SpinnerListModel.java/buggy/core/src/classpath/javax/javax/swing/SpinnerListModel.java |
{ return list; } | { return list; } | public List getList() { return list; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/SpinnerListModel.java/buggy/core/src/classpath/javax/javax/swing/SpinnerListModel.java |
{ /* Check for a next value */ if (index < (list.size() - 1)) { /* Return the element at the next index */ return list.get(index + 1); } else { /* Return null as this is the end of the list */ return null; } | { if (index < (list.size() - 1)) return list.get(index + 1); else return null; | public Object getNextValue() { /* Check for a next value */ if (index < (list.size() - 1)) { /* Return the element at the next index */ return list.get(index + 1); } else { /* Return null as this is the end of the list */ return null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/SpinnerListModel.java/buggy/core/src/classpath/javax/javax/swing/SpinnerListModel.java |
{ /* Check for a previous value. */ if (index > 0) { /* Return the element at the previous position */ return list.get(index - 1); } | { if (index > 0) return list.get(index - 1); | public Object getPreviousValue() { /* Check for a previous value. */ if (index > 0) { /* Return the element at the previous position */ return list.get(index - 1); } else { /* Return null as this is the start of the list */ return null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/SpinnerListModel.java/buggy/core/src/classpath/javax/javax/swing/SpinnerListModel.java |
{ /* Return null as this is the start of the list */ return null; } | return null; | public Object getPreviousValue() { /* Check for a previous value. */ if (index > 0) { /* Return the element at the previous position */ return list.get(index - 1); } else { /* Return null as this is the start of the list */ return null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/SpinnerListModel.java/buggy/core/src/classpath/javax/javax/swing/SpinnerListModel.java |
{ return list.get(index); } | { return list.get(index); } | public Object getValue() { return list.get(index); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/SpinnerListModel.java/buggy/core/src/classpath/javax/javax/swing/SpinnerListModel.java |
{ /* Check for null or zero size list */ if (list == null || list.size() == 0) { throw new IllegalArgumentException("The supplied list was invalid."); } /* Check for a change of referenced list */ if (this.list != list) { /* Store the new list */ this.list = list; /* Notify listeners of a change */ fireStateChanged(); ... | { if (list == null || list.size() == 0) throw new IllegalArgumentException("The supplied list was invalid."); if (this.list != list) { this.list = list; fireStateChanged(); } index = 0; } | public void setList(List list) { /* Check for null or zero size list */ if (list == null || list.size() == 0) { throw new IllegalArgumentException("The supplied list was invalid."); } /* Check for a change of referenced list */ if (this.list != list) { /* Store the new list */ this.list = list; /... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/SpinnerListModel.java/buggy/core/src/classpath/javax/javax/swing/SpinnerListModel.java |
{ int valueIndex; | { int valueIndex; | public void setValue(Object value) { int valueIndex; /* Search for the value in the list */ valueIndex = list.indexOf(value); /* Check for the value being found */ if (valueIndex == -1) { throw new IllegalArgumentException("The supplied value does not " + "exist in this list"); } /* Make the ind... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/SpinnerListModel.java/buggy/core/src/classpath/javax/javax/swing/SpinnerListModel.java |
/* Search for the value in the list */ valueIndex = list.indexOf(value); /* Check for the value being found */ if (valueIndex == -1) { throw new IllegalArgumentException("The supplied value does not " + "exist in this list"); } /* Make the indices match */ index = valueIndex; /* Notify the listeners */ fireStateChanged... | valueIndex = list.indexOf(value); if (valueIndex == -1) throw new IllegalArgumentException("The supplied value does not " + "exist in this list"); index = valueIndex; fireStateChanged(); } | public void setValue(Object value) { int valueIndex; /* Search for the value in the list */ valueIndex = list.indexOf(value); /* Check for the value being found */ if (valueIndex == -1) { throw new IllegalArgumentException("The supplied value does not " + "exist in this list"); } /* Make the ind... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/SpinnerListModel.java/buggy/core/src/classpath/javax/javax/swing/SpinnerListModel.java |
if (!(kpgSpi instanceof Cloneable)) throw new CloneNotSupportedException(); | public Object clone() throws CloneNotSupportedException { if (!(kpgSpi instanceof Cloneable)) throw new CloneNotSupportedException(); KeyPairGenerator result = new DummyKeyPairGenerator ((KeyPairGeneratorSpi) kpgSpi.clone(), this.getAlgorithm()); result.provider = this.getProvider(); return resu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/698ac538b7482b0e4aac918befb43b8376e364e3/DummyKeyPairGenerator.java/buggy/core/src/classpath/java/java/security/DummyKeyPairGenerator.java | |
public MouseInputAdapter() { } | public MouseInputAdapter() { } | public MouseInputAdapter() { } // MouseInputAdapter() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/MouseInputAdapter.java/clean/core/src/classpath/javax/javax/swing/event/MouseInputAdapter.java |
public void mouseEntered(MouseEvent event) { } | public void mouseEntered(MouseEvent event) { } | public void mouseEntered(MouseEvent event) { } // mouseEntered() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/MouseInputAdapter.java/clean/core/src/classpath/javax/javax/swing/event/MouseInputAdapter.java |
JPanel kp = new JPanel(); | private void mapIt() { Object[] message = new Object[1]; JPanel kgp = new JPanel(); final KeyGetter kg = new KeyGetter(); kg.setForeground(Color.blue); message[0] = kgp; String function; if (functions.getSelectedValue() instanceof String) function = (String)functions.g... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/ea2c66f65284397fa600153ac59eb3c719efca18/KeyConfigure.java/clean/tn5250j/src/org/tn5250j/tools/KeyConfigure.java | |
public PluginDescriptorModel(PluginJar jarFile, XMLElement e) throws PluginException { this.jarFile = jarFile; id = getAttribute(e, "id", true); name = getAttribute(e, "name", true); providerName = getAttribute(e, "provider-name", false); version = getAttribute(e, "version", true); className = getAttribute(e, "class", ... | public PluginDescriptorModel(XMLElement e) throws PluginException { this(null, e); | public PluginDescriptorModel(PluginJar jarFile, XMLElement e) throws PluginException { this.jarFile = jarFile; id = getAttribute(e, "id", true); name = getAttribute(e, "name", true); providerName = getAttribute(e, "provider-name", false); version = getAttribute(e, "version", true); className = getAttribute(e, "c... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/PluginDescriptorModel.java/clean/core/src/core/org/jnode/plugin/model/PluginDescriptorModel.java |
writeOut(outputstream, " "+ item.get("name") + "=\"" + item.get("value") + "\""); | writeOut(outputstream, " "+ item.get("name") + "=\""); writeOutAttribute(outputstream, (String)item.get("value")); 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/469583f484a02708171e26fa8233ca46ebf80d9b/DataFormat.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataFormat.java |
{ | { | protected Page(String title, Icon icon, Component component, String tip) { this.title = title; this.icon = icon; this.component = component; this.tip = tip; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java |
this.icon = icon; | this.icon = icon; | protected Page(String title, Icon icon, Component component, String tip) { this.title = title; this.icon = icon; this.component = component; this.tip = tip; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java |
throws IllegalArgumentException | throws IllegalArgumentException | public void setDisplayedMnemonicIndex(int index) throws IllegalArgumentException { if (index < -1 || title != null && index >= title.length()) throw new IllegalArgumentException(); if (title == null || mnemonicKey == 0 || (index > -1 && title.charAt(index) != mnemonicK... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java |
} | } | public void setTip(String tip) { this.tip = tip; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java |
setDisplayedMnemonicIndex(title.length() - 1); | setDisplayedMnemonicIndex(title.length() - 1); | public void setTitle(String text) { title = text; if (title != null && title.length() <= underlinedChar) setDisplayedMnemonicIndex(title.length() - 1); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java |
{ | { | public int getTabRunCount() { return ((TabbedPaneUI) ui).getTabRunCount(this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java |
} | } | public int getTabRunCount() { return ((TabbedPaneUI) ui).getTabRunCount(this); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java |
} | } | public String getToolTipTextAt(int index) { checkIndex(index, 0, tabs.size()); return ((Page) tabs.elementAt(index)).getTip(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java |
{ component.hide(); super.add(component); } | { component.hide(); super.add(component); } | public void insertTab(String title, Icon icon, Component component, String tip, int index) { Page p = new Page(title, icon, component, tip); tabs.insertElementAt(p, index); // Hide the component so we don't see it. Do it before we parent it // so we don't trigger a repaint. if (... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java |
protected String paramString() { return "JTabbedPane"; } | protected String paramString() { return "JTabbedPane"; } | protected String paramString() { return "JTabbedPane"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java |
{ | { | public void removeTabAt(int index) { checkIndex(index, 0, tabs.size()); Component c = getComponentAt(index); super.remove(index); c.show(); tabs.remove(index); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java |
} | } | public void removeTabAt(int index) { checkIndex(index, 0, tabs.size()); Component c = getComponentAt(index); super.remove(index); c.show(); tabs.remove(index); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java |
setRequestFocusEnabled(true); | public JComponent() { super(); super.setLayout(new FlowLayout()); setDropTarget(new DropTarget()); defaultLocale = Locale.getDefault(); debugGraphicsOptions = DebugGraphics.NONE_OPTION; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java | |
public boolean requestFocusInWindow(boolean temporary) | public boolean requestFocusInWindow() | public boolean requestFocusInWindow(boolean temporary) { return super.requestFocusInWindow(temporary); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java |
return super.requestFocusInWindow(temporary); | if (isRequestFocusEnabled()) return super.requestFocusInWindow(); else return false; | public boolean requestFocusInWindow(boolean temporary) { return super.requestFocusInWindow(temporary); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java |
e.consume(); | protected void processMouseMotionEvent(MouseEvent e) { if (mouseMotionListener == null) return; switch (e.id) { case MouseEvent.MOUSE_DRAGGED: mouseMotionListener.mouseDragged(e); break; case MouseEvent.MOUSE_MOVED: mouseMotionListener.mouseMoved(e); break; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/566e4ab93ebc97794094572536829e581d565b11/Component.java/buggy/core/src/classpath/java/java/awt/Component.java | |
throw new NO_IMPLEMENT(); | if (orb instanceof OrbFunctional) { ((OrbFunctional) orb).ensureRunning(); } gnuRequest g = new gnuRequest(); g.setORB(orb); g.setOperation(operation); g.setIor(ior); g.m_target = target; g.ctx(context); g.set_args(parameters); if (returns != null) g.set_result(returns); return g; | public Request create_request(org.omg.CORBA.Object target, Context context, String operation, NVList parameters, NamedValue returns ) { throw new NO_IMPLEMENT(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/532aa8373b9f9f2198c3b86393ccf0246b4150d2/SimpleDelegate.java/buggy/core/src/classpath/gnu/gnu/CORBA/SimpleDelegate.java |
Component parent = component.getParent(); | public void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w <= 0 || h <= 0 || !component.isShowing()) return; component.computeVisibleRect(rectCache); SwingUtilities.computeIntersection(x, y, w, h, rectCache); if (! rectCache.isEmpty(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java | |
if (! dirtyComponents.containsKey(component)) return false; return component.isCompletelyDirty; | boolean retVal = false; if (dirtyComponents.containsKey(component)) { Rectangle dirtyRegion = (Rectangle) dirtyComponents.get(component); retVal = dirtyRegion.equals(SwingUtilities.getLocalBounds(component)); } return retVal; | public boolean isCompletelyDirty(JComponent component) { if (! dirtyComponents.containsKey(component)) return false; return component.isCompletelyDirty; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java |
component.isCompletelyDirty = false; | public void markCompletelyClean(JComponent component) { synchronized (dirtyComponents) { dirtyComponents.remove(component); } component.isCompletelyDirty = false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java | |
addDirtyRegion(component, r.x, r.y, r.width, r.height); component.isCompletelyDirty = true; | addDirtyRegion(component, 0, 0, r.width, r.height); | public void markCompletelyDirty(JComponent component) { Rectangle r = component.getBounds(); addDirtyRegion(component, r.x, r.y, r.width, r.height); component.isCompletelyDirty = true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java |
ArrayList repaintOrder = new ArrayList(dirtyComponentsWork.size());; repaintOrder.addAll(dirtyComponentsWork.keySet()); | HashSet repaintRoots = new HashSet(); Set components = dirtyComponentsWork.keySet(); for (Iterator i = components.iterator(); i.hasNext();) { JComponent dirty = (JComponent) i.next(); compileRepaintRoots(dirtyComponentsWork, dirty, repaintRoots); } | public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyCompone... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java |
if (comparator == null) comparator = new ComponentComparator(); Collections.sort(repaintOrder, comparator); | public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyCompone... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java | |
for (Iterator i = repaintOrder.iterator(); i.hasNext();) | for (Iterator i = repaintRoots.iterator(); i.hasNext();) | public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyCompone... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java |
public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyCompone... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java | ||
dirtyComponentsWork.clear(); | public void paintDirtyRegions() { // Short cicuit if there is nothing to paint. if (dirtyComponents.size() == 0) return; // Swap dirtyRegions with dirtyRegionsWork to avoid locking. synchronized (dirtyComponents) { HashMap swap = dirtyComponents; dirtyComponents = dirtyCompone... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/RepaintManager.java/buggy/core/src/classpath/javax/javax/swing/RepaintManager.java | |
public void paintImmediately(Rectangle r) { Component root = SwingUtilities.getRoot(this); if (root == null || ! root.isShowing()) return; Graphics g = root.getGraphics(); if (g == null) return; Rectangle clip = SwingUtilities.convertRectangle(this, r, root); g.setClip(clip); root.paint(g); g.dispose(); | public void paintImmediately(int x, int y, int w, int h) { paintImmediately(new Rectangle(x, y, w, h)); | public void paintImmediately(Rectangle r) { Component root = SwingUtilities.getRoot(this); if (root == null || ! root.isShowing()) return; Graphics g = root.getGraphics(); if (g == null) return; Rectangle clip = SwingUtilities.convertRectangle(this, r, root); g.setClip(clip); root.paint(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java |
/**@todo Implement this org.omg.CORBA.Any abstract method*/ throw new java.lang.UnsupportedOperationException("Method extract_Value() not yet implemented."); | try { return ((ValueBaseHolder) has).value; } catch (ClassCastException ex) { return new BAD_OPERATION("Value type expected"); } | public Serializable extract_Value() throws BAD_OPERATION { /**@todo Implement this org.omg.CORBA.Any abstract method*/ throw new java.lang.UnsupportedOperationException("Method extract_Value() not yet implemented."); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d0121d0b7854a7d29b8a526d3f5998b6e08248f6/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java |
resetTypes(); /**@todo Implement this org.omg.CORBA.Any abstract method*/ | type(typecode); insert_Value(x); | public void insert_Value(Serializable x, TypeCode typecode) { resetTypes(); /**@todo Implement this org.omg.CORBA.Any abstract method*/ } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d0121d0b7854a7d29b8a526d3f5998b6e08248f6/gnuAny.java/clean/core/src/classpath/gnu/gnu/CORBA/gnuAny.java |
public BooleanHolder(boolean initial_value) | public BooleanHolder() | public BooleanHolder(boolean initial_value) { value = initial_value; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9b55eb78411ab1a82da7ba097b7b93a8cd80865/BooleanHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/BooleanHolder.java |
value = initial_value; | public BooleanHolder(boolean initial_value) { value = initial_value; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9b55eb78411ab1a82da7ba097b7b93a8cd80865/BooleanHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/BooleanHolder.java | |
public DoubleHolder(double initial_value) | public DoubleHolder() | public DoubleHolder(double initial_value) { value = initial_value; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9b55eb78411ab1a82da7ba097b7b93a8cd80865/DoubleHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/DoubleHolder.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.