rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
} | } | void loadLocal(EmitterContext ec, int offsetToFP) { for (int i = 0; i < tos; i++) { final Item item = stack[ i]; if ((item.getKind() == Item.Kind.LOCAL) && (item.getOffsetToFP() == offsetToFP)) item.load(ec); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
tos--; Item i = stack[ tos]; stack[ tos] = null; return i; } | tos--; Item i = stack[tos]; stack[tos] = null; return i; } | Item pop() { // do not autocreate item: if no type available, just fail; avoid this // case in the bytecode visitor // if (tos == 0) // //TODO: support items across basic blocks // pushStack(Item.UNKNOWN); tos--; Item i = stack[ tos]; stack[ tos] = null; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
return (DoubleItem) pop(JvmType.DOUBLE); } | return (DoubleItem) pop(JvmType.DOUBLE); } | final DoubleItem popDouble() { // testing in pop and casting here: test is just redundant return (DoubleItem) pop(JvmType.DOUBLE); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
return (FloatItem) pop(JvmType.FLOAT); } | return (FloatItem) pop(JvmType.FLOAT); } | final FloatItem popFloat() { // testing in pop and casting here: test is just redundant return (FloatItem) pop(JvmType.FLOAT); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
return (IntItem) pop(JvmType.INT); } | return (IntItem) pop(JvmType.INT); } | final IntItem popInt() { // testing in pop and casting here: test is just redundant return (IntItem) pop(JvmType.INT); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
return (LongItem) pop(JvmType.LONG); } | return (LongItem) pop(JvmType.LONG); } | final LongItem popLong() { // testing in pop and casting here: test is just redundant return (LongItem) pop(JvmType.LONG); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
return (RefItem) pop(JvmType.REFERENCE); } | return (RefItem) pop(JvmType.REFERENCE); } | final RefItem popRef() { // testing in pop and casting here: test is just redundant return (RefItem) pop(JvmType.REFERENCE); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
if ((item.getKind() == Item.Kind.STACK) && (tos > 0)) { Item.assertCondition(stack[ tos - 1].getKind() == Item.Kind.STACK, "stack[ tos - 1].getKind() == Item.Kind.STACK"); } | Item.assertCondition(item.getKind() > 0, "Kind > 0"); if ((item.isStack()) && (tos > 0)) { Item.assertCondition(stack[tos - 1].isStack(), "stack[ tos - 1].isStack()"); } | void push(Item item) { if ((item.getKind() == Item.Kind.STACK) && (tos > 0)) { Item.assertCondition(stack[ tos - 1].getKind() == Item.Kind.STACK, "stack[ tos - 1].getKind() == Item.Kind.STACK"); } if (tos == stack.length) { growStack(); } s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
if (tos == stack.length) { growStack(); } | if (tos == stack.length) { growStack(); } | void push(Item item) { if ((item.getKind() == Item.Kind.STACK) && (tos > 0)) { Item.assertCondition(stack[ tos - 1].getKind() == Item.Kind.STACK, "stack[ tos - 1].getKind() == Item.Kind.STACK"); } if (tos == stack.length) { growStack(); } s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
stack[ tos++] = item; } | stack[tos++] = item; } | void push(Item item) { if ((item.getKind() == Item.Kind.STACK) && (tos > 0)) { Item.assertCondition(stack[ tos - 1].getKind() == Item.Kind.STACK, "stack[ tos - 1].getKind() == Item.Kind.STACK"); } if (tos == stack.length) { growStack(); } s... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
push(item); if (checkOperandStack && (item.getKind() == Item.Kind.STACK)) { operandStack.push(item); } } | push(item); if (checkOperandStack && (item.getKind() == Item.Kind.STACK)) { operandStack.push(item); } } | void push1(Item item) { push(item); if (checkOperandStack && (item.getKind() == Item.Kind.STACK)) { operandStack.push(item); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
if ((tstack != null) && !tstack.isEmpty()) { final int size = tstack.size(); for (int i = 0; i < size; i++) { final int type = tstack.getType(i); final Item item = VirtualStack.createStack(type); push(item); if (VirtualStack.checkOperandStack) { operandStack.push(item); } } } } | if ((tstack != null) && !tstack.isEmpty()) { final int size = tstack.size(); for (int i = 0; i < size; i++) { final int type = tstack.getType(i); final Item item = VirtualStack.createStack(type); push(item); if (VirtualStack.checkOperandStack) { operandStack.push(item); } } } } | final void pushAll(TypeStack tstack) { if ((tstack != null) && !tstack.isEmpty()) { final int size = tstack.size(); for (int i = 0; i < size; i++) { final int type = tstack.getType(i); final Item item = VirtualStack.createStack(type); push(it... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
stack = new Item[ 8]; tos = 0; if (checkOperandStack) { operandStack.reset(); } } | stack = new Item[8]; tos = 0; if (checkOperandStack) { operandStack.reset(); } } | void reset() { stack = new Item[ 8]; tos = 0; if (checkOperandStack) { operandStack.reset(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
final StringBuffer buf = new StringBuffer(); for (int i = 0; i < tos; i++) { if (i != 0) { buf.append(','); } buf.append('('); buf.append(stack[ i].getType()); buf.append(','); buf.append(stack[ i].getKind()); buf.append(')'); } return buf.toString(); } | final StringBuffer buf = new StringBuffer(); for (int i = 0; i < tos; i++) { if (i != 0) { buf.append(','); } buf.append('('); buf.append(stack[i].getType()); buf.append(','); buf.append(stack[i].getKind()); buf.append(')'); } return buf.toString(); } | public String toString() { final StringBuffer buf = new StringBuffer(); for (int i = 0; i < tos; i++) { if (i != 0) { buf.append(','); } buf.append('('); buf.append(stack[ i].getType()); buf.append(','); buf.append(stack[... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
for (int i = 0; i < tos; i++) { if (stack[ i].uses(reg)) { return true; } } return false; } | for (int i = 0; i < tos; i++) { if (stack[i].uses(reg)) { return true; } } return false; } | boolean uses(Register reg) { for (int i = 0; i < tos; i++) { if (stack[ i].uses(reg)) { return true; } } return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
this.expectedKind = expectedKind; this.maxSize = maxSize; reset(); } | this.expectedKind = expectedKind; this.maxSize = maxSize; reset(); } | ItemStack(int expectedKind, int maxSize) { this.expectedKind = expectedKind; this.maxSize = maxSize; reset(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/ItemStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/ItemStack.java |
Item.assertCondition(item.getKind() == expectedKind, "item.getKind() == expectedKind"); if (tos == stack.length) grow(); stack[ tos++] = item; } | Item.assertCondition(item.getKind() == expectedKind, "item.getKind() == expectedKind"); if (tos == stack.length) { grow(); } stack[tos++] = item; } | final void push(Item item) { Item.assertCondition(item.getKind() == expectedKind, "item.getKind() == expectedKind"); if (tos == stack.length) grow(); stack[ tos++] = item; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/ItemStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/ItemStack.java |
void reset() { stack = new Item[ Math.min(8, maxSize)]; tos = 0; } | final void reset() { stack = new Item[Math.min(8, maxSize)]; tos = 0; } | void reset() { stack = new Item[ Math.min(8, maxSize)]; tos = 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/55b12818040bb69b51502c4cd0f42118d2046977/ItemStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/ItemStack.java |
catch (NoSuchAlgorithmException ignored) | catch (NoSuchAlgorithmException e) | public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/CertPathValidator.java/buggy/core/src/classpath/java/java/security/cert/CertPathValidator.java |
public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException ignored) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/CertPathValidator.java/buggy/core/src/classpath/java/java/security/cert/CertPathValidator.java | ||
public EmptyStackException() { | public EmptyStackException() { | public EmptyStackException() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/EmptyStackException.java/clean/core/src/classpath/java/java/util/EmptyStackException.java |
public AbstractMethodError(String s) { super(s); | public AbstractMethodError() { | public AbstractMethodError(String s) { super(s); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b5cf2c2bc800071fe435bc5592c49bd0976f12ab/AbstractMethodError.java/clean/core/src/classpath/java/java/lang/AbstractMethodError.java |
this.channelOwner = null; this.port = null; this.basePort = basePort; } | this.channelOwner = null; this.port = null; this.basePort = basePort; } | public SerialPortDriver(int basePort) { this.channelOwner = null; this.port = null; this.basePort = basePort; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java |
} | } | public void close() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java |
public void configure(int divisor, int bits, boolean longStop, boolean parity, boolean pEven) { if (divisor < 1 || divisor > 65535) throw new IllegalArgumentException("invalid baud rate divisor: " + divisor); | public void configure(int divisor, int bits, boolean longStop, boolean parity, boolean pEven) { if (divisor < 1 || divisor > 65535) throw new IllegalArgumentException( "invalid baud rate divisor: " + divisor); | public void configure(int divisor, int bits, boolean longStop, boolean parity, boolean pEven) { if (divisor < 1 || divisor > 65535) throw new IllegalArgumentException("invalid baud rate divisor: " + divisor); int control; switch (bits) { case 5 : control = 0; break; case 6 : control = 1; break; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java |
int control; switch (bits) { case 5 : control = 0; break; case 6 : control = 1; break; case 7 : control = 2; break; case 8 : control = 3; break; default : throw new IllegalArgumentException("invalid data block bits: " + bits); } | int control; switch (bits) { case 5: control = 0; break; case 6: control = 1; break; case 7: control = 2; break; case 8: control = 3; break; default: throw new IllegalArgumentException("invalid data block bits: " + bits); } | public void configure(int divisor, int bits, boolean longStop, boolean parity, boolean pEven) { if (divisor < 1 || divisor > 65535) throw new IllegalArgumentException("invalid baud rate divisor: " + divisor); int control; switch (bits) { case 5 : control = 0; break; case 6 : control = 1; break; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java |
if (longStop) control |= 4; if (parity) control |= 8; if (pEven) control |= 16; | if (longStop) control |= 4; if (parity) control |= 8; if (pEven) control |= 16; | public void configure(int divisor, int bits, boolean longStop, boolean parity, boolean pEven) { if (divisor < 1 || divisor > 65535) throw new IllegalArgumentException("invalid baud rate divisor: " + divisor); int control; switch (bits) { case 5 : control = 0; break; case 6 : control = 1; break; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java |
flush(); port.outPortByte(basePort + 3, control | 128); port.outPortByte(basePort + 0, divisor); port.outPortByte(basePort + 1, divisor >> 8); port.outPortByte(basePort + 3, control); } | flush(); port.outPortByte(basePort + 3, control | 128); port.outPortByte(basePort + 0, divisor); port.outPortByte(basePort + 1, divisor >> 8); port.outPortByte(basePort + 3, control); } | public void configure(int divisor, int bits, boolean longStop, boolean parity, boolean pEven) { if (divisor < 1 || divisor > 65535) throw new IllegalArgumentException("invalid baud rate divisor: " + divisor); int control; switch (bits) { case 5 : control = 0; break; case 6 : control = 1; break; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java |
flushHardware(); } | flushHardware(); } | public void flush() { // FIXME: currently flushes only the hardware as input buffers are not // yet used. This is only relevant to non-blocking I/O. flushHardware(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java |
int b; do b = port.inPortByte(basePort + 5); while ((b & 96) != 96); } | int b; do b = port.inPortByte(basePort + 5); while ((b & 96) != 96); } | private void flushHardware() { // FIXME: busy waiting for the holding and shift registers to be empty int b; do b = port.inPortByte(basePort + 5); while ((b & 96) != 96); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java |
throws ChannelAlreadyOwnedException { if (channelOwner != null) throw new ChannelAlreadyOwnedException (channelOwner); channelOwner = owner; return this; } | throws ChannelAlreadyOwnedException { if (channelOwner != null) throw new ChannelAlreadyOwnedException(channelOwner); channelOwner = owner; return this; } | public ByteChannel getChannel(Device owner) throws ChannelAlreadyOwnedException { if (channelOwner != null) throw new ChannelAlreadyOwnedException (channelOwner); channelOwner = owner; return this; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java |
return true; } | return true; } | public boolean isOpen() { return true; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java |
public int read (ByteBuffer dst) { int n = dst.remaining (); for (int i=0; i<n; i++) dst.put ((byte)readSingle ()); return n; } | public int read(ByteBuffer dst) { int n = dst.remaining(); for (int i = 0; i < n; i++) dst.put((byte) readSingle()); return n; } | public int read (ByteBuffer dst) { int n = dst.remaining (); for (int i=0; i<n; i++) dst.put ((byte)readSingle ()); return n; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java |
public int readSingle() { // should detect overruns, maybe parity errors, framing errors, and // breaks. // FIXME: busy waiting for a bit block to arrive while ((port.inPortByte(basePort + 5) & 1) == 0); return port.inPortByte(basePort); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java | ||
while ((port.inPortByte(basePort + 5) & 1) == 0); return port.inPortByte(basePort); } | while ((port.inPortByte(basePort + 5) & 1) == 0) ; return port.inPortByte(basePort); } | public int readSingle() { // should detect overruns, maybe parity errors, framing errors, and // breaks. // FIXME: busy waiting for a bit block to arrive while ((port.inPortByte(basePort + 5) & 1) == 0); return port.inPortByte(basePort); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java |
try { final ResourceManager rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME); port = rm.claimIOResource(getDevice(), basePort, 8); configure(BAUD9600); getDevice().registerAPI(SerialPortAPI.class, this); } catch (NameNotFoundException nnfex) { throw new DriverException(nnfex); } catch (ResourceNotFreeE... | try { final ResourceManager rm = (ResourceManager) InitialNaming .lookup(ResourceManager.NAME); port = claimPorts(rm, getDevice(), basePort, 8); configure(BAUD9600); getDevice().registerAPI(SerialPortAPI.class, this); } catch (NameNotFoundException nnfex) { throw new DriverException(nnfex); } catch (ResourceNotFreeExce... | protected void startDevice() throws DriverException { try { final ResourceManager rm = (ResourceManager) InitialNaming.lookup(ResourceManager.NAME); port = rm.claimIOResource(getDevice(), basePort, 8); configure(BAUD9600); getDevice().registerAPI(SerialPortAPI.class, this); } catch (NameNotFoundException nnf... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java |
port.release(); } | port.release(); } | protected void stopDevice() { port.release(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java |
public int write (ByteBuffer src) { int n = src.remaining (); for (int i=0; i<n; i++) writeSingle (src.get ()); return n; } | public int write(ByteBuffer src) { int n = src.remaining(); for (int i = 0; i < n; i++) writeSingle(src.get()); return n; } | public int write (ByteBuffer src) { int n = src.remaining (); for (int i=0; i<n; i++) writeSingle (src.get ()); return n; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java |
while ((port.inPortByte(basePort + 5) & 32) == 0); port.outPortByte(basePort, value); } | while ((port.inPortByte(basePort + 5) & 32) == 0) ; port.outPortByte(basePort, value); } | public void writeSingle(int value) { // FIXME: busy waiting for the transmitter buffer to be empty while ((port.inPortByte(basePort + 5) & 32) == 0); port.outPortByte(basePort, value); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e204bcd94e42168df8116332c5e2f0db99bd1c55/SerialPortDriver.java/clean/core/src/driver/org/jnode/driver/serial/SerialPortDriver.java |
Streamable holder = holderFactory.createHolder(content); | Streamable holder = HolderLocator.createHolder(content); | public void from_any(Any an_any) throws TypeMismatch, InvalidValue { checkType(official_type, an_any.type()); try { if (!an_any.type().content_type().equal(content)) throw new InvalidValue(CONTENT); } catch (BadKind e) { TypeMismatch t = new TypeMismatch(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9344cb85925e12da0e0cccb4ba0521d8696a226/gnuDynValueBox.java/buggy/core/src/classpath/gnu/gnu/CORBA/DynAn/gnuDynValueBox.java |
protected BitmapGraphics(MemoryResource mem, int width, int height, int offset, int bytesPerLine) { this.mem = mem; this.offset = offset; this.bytesPerLine = bytesPerLine; this.width = width; this.height = height; } | protected BitmapGraphics(MemoryResource mem, int width, int height, int offset, int bytesPerLine) { this.mem = mem; this.offset = offset; this.bytesPerLine = bytesPerLine; this.width = width; this.height = height; } | protected BitmapGraphics(MemoryResource mem, int width, int height, int offset, int bytesPerLine) { this.mem = mem; this.offset = offset; this.bytesPerLine = bytesPerLine; this.width = width; this.height = height; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1673c0916d234cb0a5f708f465f57aca2db213b2/BitmapGraphics.java/buggy/gui/src/awt/org/jnode/awt/util/BitmapGraphics.java |
protected abstract void doCopyArea(int x, int y, int width, int height, int dx, int dy); | protected abstract void doCopyArea(int x, int y, int width, int height, int dx, int dy); | protected abstract void doCopyArea(int x, int y, int width, int height, int dx, int dy); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1673c0916d234cb0a5f708f465f57aca2db213b2/BitmapGraphics.java/buggy/gui/src/awt/org/jnode/awt/util/BitmapGraphics.java |
protected abstract void doDrawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int width, int height); | protected abstract void doDrawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int width, int height); | protected abstract void doDrawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int width, int height); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1673c0916d234cb0a5f708f465f57aca2db213b2/BitmapGraphics.java/buggy/gui/src/awt/org/jnode/awt/util/BitmapGraphics.java |
public Object getDataElements(int x, int y, int w, int h, Object outData) | public Object getDataElements(int x, int y, Object outData) | public Object getDataElements(int x, int y, int w, int h, Object outData) { return sampleModel.getDataElements(x-sampleModelTranslateX, y-sampleModelTranslateY, w, h, outData, dataBuffer); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/Raster.java/buggy/core/src/classpath/java/java/awt/image/Raster.java |
w, h, outData, dataBuffer); } | outData, dataBuffer); } | public Object getDataElements(int x, int y, int w, int h, Object outData) { return sampleModel.getDataElements(x-sampleModelTranslateX, y-sampleModelTranslateY, w, h, outData, dataBuffer); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/Raster.java/buggy/core/src/classpath/java/java/awt/image/Raster.java |
protected abstract void doDrawPixels(int x, int y, int count, int color, int mode); | protected abstract void doDrawPixels(int x, int y, int count, int color, int mode); | protected abstract void doDrawPixels(int x, int y, int count, int color, int mode); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1673c0916d234cb0a5f708f465f57aca2db213b2/BitmapGraphics.java/buggy/gui/src/awt/org/jnode/awt/util/BitmapGraphics.java |
if (!isURI(uri)) throw new IllegalArgumentException("illegal URI: " + uri); | public void setDefaultNamespace(String uri) throws XMLStreamException { if (!namespaces.declarePrefix(XMLConstants.DEFAULT_NS_PREFIX, uri)) throw new XMLStreamException("illegal default namespace prefix"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLStreamWriterImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLStreamWriterImpl.java | |
try { if (!isURI(uri)) throw new IllegalArgumentException("illegal URI: " + uri); if (!isNCName(prefix)) throw new IllegalArgumentException("illegal NCName: " + prefix); } catch (IOException e) { XMLStreamException e2 = new XMLStreamException(e); e2.initCause(e); throw e2; } | public void setPrefix(String prefix, String uri) throws XMLStreamException { if (!namespaces.declarePrefix(prefix, uri)) throw new XMLStreamException("illegal prefix " + prefix); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLStreamWriterImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLStreamWriterImpl.java | |
if (hasXML11RestrictedChars) writeEncodedWithRestrictedChars(value, true); else | public void writeAttribute(String localName, String value) throws XMLStreamException { if (!inStartElement) throw new IllegalStateException(); try { writer.write(' '); writer.write(localName); writer.write('='); writer.write('"'); writeEncoded(value, true); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLStreamWriterImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLStreamWriterImpl.java | |
if (data.indexOf("]]") != -1) throw new IllegalArgumentException(data); | public void writeCData(String data) throws XMLStreamException { try { endStartElement(); if (data.indexOf("]]") != -1) throw new IllegalArgumentException(data); writer.write("<![CDATA["); writer.write(data); writer.write("]]>"); } catch (IOException e) ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLStreamWriterImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLStreamWriterImpl.java | |
if (text != null) | if (hasXML11RestrictedChars) writeEncodedWithRestrictedChars(text, false); else | public void writeCharacters(String text) throws XMLStreamException { try { endStartElement(); if (text != null) writeEncoded(text, false); } catch (IOException e) { XMLStreamException e2 = new XMLStreamException(e); e2.initCause(e); throw e2; }... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLStreamWriterImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLStreamWriterImpl.java |
if (data != null && data.indexOf("--") != -1) throw new IllegalArgumentException(data); | public void writeComment(String data) throws XMLStreamException { try { endStartElement(); if (data != null && data.indexOf("--") != -1) throw new IllegalArgumentException(data); writer.write("<!--"); if (data != null) writer.write(data); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLStreamWriterImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLStreamWriterImpl.java | |
if (data != null) | if (hasXML11RestrictedChars) { int[] seq = UnicodeReader.toCodePointArray(data); for (int i = 0; i < seq.length; i++) { int c = seq[i]; if (XMLParser.isXML11RestrictedChar(c)) writer.write("&#x" + Integer.toHexString(c) + ";"); else writer.write(Character.toChars(i)); } } else | public void writeComment(String data) throws XMLStreamException { try { endStartElement(); if (data != null && data.indexOf("--") != -1) throw new IllegalArgumentException(data); writer.write("<!--"); if (data != null) writer.write(data); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLStreamWriterImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLStreamWriterImpl.java |
if (!isName(dtd)) throw new IllegalArgumentException("illegal Name: " + dtd); | public void writeDTD(String dtd) throws XMLStreamException { try { writer.write("<!DOCTYPE "); writer.write(dtd); writer.write('>'); } catch (IOException e) { XMLStreamException e2 = new XMLStreamException(e); e2.initCause(e); throw e2; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLStreamWriterImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLStreamWriterImpl.java | |
writeNamespace(XMLConstants.DEFAULT_NS_PREFIX, namespaceURI); | if (!inStartElement) throw new IllegalStateException(); if (!isURI(namespaceURI)) throw new IllegalArgumentException("illegal URI: " + namespaceURI); writeNamespaceImpl(XMLConstants.DEFAULT_NS_PREFIX, namespaceURI); | public void writeDefaultNamespace(String namespaceURI) throws XMLStreamException { writeNamespace(XMLConstants.DEFAULT_NS_PREFIX, namespaceURI); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLStreamWriterImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLStreamWriterImpl.java |
if (!isName(name)) throw new IllegalArgumentException("illegal Name: " + name); | public void writeEntityRef(String name) throws XMLStreamException { try { endStartElement(); writer.write('&'); writer.write(name); writer.write(';'); } catch (IOException e) { XMLStreamException e2 = new XMLStreamException(e); e2.initCause(e); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLStreamWriterImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLStreamWriterImpl.java | |
if (prefix == null) prefix = XMLConstants.DEFAULT_NS_PREFIX; setPrefix(prefix, namespaceURI); writer.write(' '); writer.write("xmlns"); if (!XMLConstants.DEFAULT_NS_PREFIX.equals(prefix)) { writer.write(':'); writer.write(prefix); } writer.write('='); writer.write('"'); writer.write(namespaceURI); writer.write('"'); | if (!isURI(namespaceURI)) throw new IllegalArgumentException("illegal URI: " + namespaceURI); if (!isNCName(prefix)) throw new IllegalArgumentException("illegal NCName: " + prefix); | public void writeNamespace(String prefix, String namespaceURI) throws XMLStreamException { if (!inStartElement) throw new IllegalStateException(); try { if (prefix == null) prefix = XMLConstants.DEFAULT_NS_PREFIX; setPrefix(prefix, namespaceURI); writer.write(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLStreamWriterImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLStreamWriterImpl.java |
writeNamespaceImpl(prefix, namespaceURI); | public void writeNamespace(String prefix, String namespaceURI) throws XMLStreamException { if (!inStartElement) throw new IllegalStateException(); try { if (prefix == null) prefix = XMLConstants.DEFAULT_NS_PREFIX; setPrefix(prefix, namespaceURI); writer.write(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLStreamWriterImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLStreamWriterImpl.java | |
if (!isName(localName)) throw new IllegalArgumentException("illegal Name: " + localName); | public void writeStartElement(String localName) throws XMLStreamException { try { endStartElement(); namespaces.pushContext(); writer.write('<'); writer.write(localName); elements.addLast(new String[] { null, localName }); inStartElement = true; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/XMLStreamWriterImpl.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLStreamWriterImpl.java | |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return JobOriginatingUserName.class; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/JobOriginatingUserName.java/buggy/core/src/classpath/javax/javax/print/attribute/standard/JobOriginatingUserName.java |
public final String getName() | public String getName() | public final String getName() { return "job-originating-user-name"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/JobOriginatingUserName.java/buggy/core/src/classpath/javax/javax/print/attribute/standard/JobOriginatingUserName.java |
return (String) getAttribute(StyleConstants.NameAttribute); | Object tag = getAttribute(StyleConstants.NameAttribute); String name = null; if (tag != null) name = tag.toString(); return name; | public String getName() { return (String) getAttribute(StyleConstants.NameAttribute); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/HTMLDocument.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java |
print ("ParagraphAction.end not implemented"); | blockClose(t); | public void end(HTML.Tag t) { // FIXME: Implement. print ("ParagraphAction.end not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/HTMLDocument.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java |
print ("ParagraphAction.start not implemented"); | blockOpen(t, a); | public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("ParagraphAction.start not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/HTMLDocument.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java |
element = new DefaultStyledDocument.ElementSpec(attr.copyAttributes(), | attr.addAttribute(StyleConstants.NameAttribute, t); element = new DefaultStyledDocument.ElementSpec(attr, | protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); DefaultStyledDocument.ElementSpec element; element = new DefaultStyledDocument.ElementSpec(attr.copyAttributes(), DefaultStyledDocument.ElementSpec.StartTagType); parseBuffer.addElement(element); printBuffe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/HTMLDocument.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java |
public void flush() throws BadLocationException { DefaultStyledDocument.ElementSpec[] elements; elements = new DefaultStyledDocument.ElementSpec[parseBuffer.size()]; parseBuffer.copyInto(elements); parseBuffer.removeAllElements(); insert(offset, elements); offset += HTMLDocument.thi... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/HTMLDocument.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java | ||
return (String) getAttribute(StyleConstants.NameAttribute); | Object tag = getAttribute(StyleConstants.NameAttribute); String name = null; if (tag != null) name = tag.toString(); return name; | public String getName() { return (String) getAttribute(StyleConstants.NameAttribute); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/HTMLDocument.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java |
protected void create(DefaultStyledDocument.ElementSpec[] data) | protected void create(ElementSpec[] data) | protected void create(DefaultStyledDocument.ElementSpec[] data) { // FIXME: Not implemented System.out.println("create not implemented"); super.create(data); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/HTMLDocument.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java |
System.out.println("create not implemented"); | protected void create(DefaultStyledDocument.ElementSpec[] data) { // FIXME: Not implemented System.out.println("create not implemented"); super.create(data); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/HTMLDocument.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java | |
System.out.println("createBranchElement not implemented"); return super.createBranchElement(parent, a); | return new BlockElement(parent, a); | protected Element createBranchElement(Element parent, AttributeSet a) { // FIXME: Not implemented System.out.println("createBranchElement not implemented"); return super.createBranchElement(parent, a); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/HTMLDocument.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java |
protected AbstractDocument.AbstractElement createDefaultRoot() | protected AbstractElement createDefaultRoot() | protected AbstractDocument.AbstractElement createDefaultRoot() { // FIXME: Not implemented System.out.println("createDefaultRoot not implemented"); return super.createDefaultRoot(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/HTMLDocument.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java |
System.out.println("createDefaultRoot not implemented"); return super.createDefaultRoot(); | AttributeContext ctx = getAttributeContext(); AttributeSet atts = ctx.getEmptySet(); atts = ctx.addAttribute(atts, StyleConstants.NameAttribute, HTML.Tag.HTML); BranchElement html = (BranchElement) createBranchElement(null, atts); atts = ctx.getEmptySet(); atts = ctx.addAttribute(atts, StyleConstants.NameAttribute,... | protected AbstractDocument.AbstractElement createDefaultRoot() { // FIXME: Not implemented System.out.println("createDefaultRoot not implemented"); return super.createDefaultRoot(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/HTMLDocument.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java |
System.out.println("createLeafElement not implemented"); return super.createLeafElement(parent, a, p0, p1); | RunElement el = new RunElement(parent, a, p0, p1); el.addAttribute(StyleConstants.NameAttribute, HTML.Tag.CONTENT); return new RunElement(parent, a, p0, p1); | protected Element createLeafElement(Element parent, AttributeSet a, int p0, int p1) { // FIXME: Not implemented System.out.println("createLeafElement not implemented"); return super.createLeafElement(parent, a, p0, p1); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/HTMLDocument.java/buggy/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java |
this.root = document.getDefaultRootElement(); this.currentElement = root; this.state = new int[5]; | root = document.getDefaultRootElement(); | public ElementIterator(Document document) { this.root = document.getDefaultRootElement(); this.currentElement = root; this.state = new int[5]; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/ElementIterator.java/buggy/core/src/classpath/javax/javax/swing/text/ElementIterator.java |
return currentElement; | Element current; if (stack == null) current = first(); else { current = null; if (! stack.isEmpty()) { ElementRef ref = (ElementRef) stack.peek(); Element el = ref.element; int index = ref.index; if (index == -1) current = el; else current = el.getElement(index); } } return current; | public Element current() { return currentElement; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/ElementIterator.java/buggy/core/src/classpath/javax/javax/swing/text/ElementIterator.java |
previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) | Element next; if (stack == null) next = first(); else | public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/ElementIterator.java/buggy/core/src/classpath/javax/javax/swing/text/ElementIterator.java |
++currentDepth; if (currentDepth > state.length) | next = null; if (! stack.isEmpty()) | public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/ElementIterator.java/buggy/core/src/classpath/javax/javax/swing/text/ElementIterator.java |
int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state = newState; } state[currentDepth] = 0; currentElement = currentElement.getElement(0); return currentElement; | ElementRef ref = (ElementRef) stack.peek(); Element el = ref.element; int index = ref.index; if (el.getElementCount() > index + 1) { Element child = el.getElement(index + 1); if (child.isLeaf()) ref.index++; else stack.push(new ElementRef(child)); next = child; next = child; | public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/ElementIterator.java/buggy/core/src/classpath/javax/javax/swing/text/ElementIterator.java |
while (currentDepth > 0) | else | public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/ElementIterator.java/buggy/core/src/classpath/javax/javax/swing/text/ElementIterator.java |
--currentDepth; currentElement = currentElement.getParentElement(); ++state[currentDepth]; if (state[currentDepth] < currentElement.getElementCount()) | stack.pop(); if (! stack.isEmpty()) | public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/ElementIterator.java/buggy/core/src/classpath/javax/javax/swing/text/ElementIterator.java |
currentElement = currentElement.getElement(state[currentDepth]); return currentElement; | ElementRef top = (ElementRef) stack.peek(); top.index++; next = next(); | public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/ElementIterator.java/buggy/core/src/classpath/javax/javax/swing/text/ElementIterator.java |
currentElement = null; return currentElement; | } } return next; | public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/ElementIterator.java/buggy/core/src/classpath/javax/javax/swing/text/ElementIterator.java |
ScrollPaneUI b = (ScrollPaneUI)UIManager.getUI(this); setUI(b); | setUI((ScrollPaneUI) UIManager.getUI(this)); | public void updateUI() { ScrollPaneUI b = (ScrollPaneUI)UIManager.getUI(this); setUI(b); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/JScrollPane.java/clean/core/src/classpath/javax/javax/swing/JScrollPane.java |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return JobHoldUntil.class; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/JobHoldUntil.java/buggy/core/src/classpath/javax/javax/print/attribute/standard/JobHoldUntil.java |
public final String getName() | public String getName() | public final String getName() { return "job-hold-until"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/JobHoldUntil.java/buggy/core/src/classpath/javax/javax/print/attribute/standard/JobHoldUntil.java |
public void addActionListener(ActionListener l) { actions.addElement(l); } | public void addActionListener(ActionListener listener) { listenerList.add(ActionListener.class, listener); } | public void addActionListener(ActionListener l) { actions.addElement(l); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JTextField.java/buggy/core/src/classpath/javax/javax/swing/JTextField.java |
public void cancelCellEditing() { | public void cancelCellEditing() { | public void cancelCellEditing() { fireEditingCanceled(); } // cancelCellEditing() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/AbstractCellEditor.java/buggy/core/src/classpath/javax/javax/swing/AbstractCellEditor.java |
} | } | public void cancelCellEditing() { fireEditingCanceled(); } // cancelCellEditing() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/AbstractCellEditor.java/buggy/core/src/classpath/javax/javax/swing/AbstractCellEditor.java |
public Component getTreeCellEditorComponent(JTree tree, | Component getTreeCellEditorComponent(JTree tree, | public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/TreeCellEditor.java/buggy/core/src/classpath/javax/javax/swing/tree/TreeCellEditor.java |
public boolean isCellEditable(EventObject event) { | public boolean isCellEditable(EventObject event) { | public boolean isCellEditable(EventObject event) { return true; } // isCellEditable() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/AbstractCellEditor.java/buggy/core/src/classpath/javax/javax/swing/AbstractCellEditor.java |
} | } | public boolean isCellEditable(EventObject event) { return true; } // isCellEditable() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/AbstractCellEditor.java/buggy/core/src/classpath/javax/javax/swing/AbstractCellEditor.java |
public boolean shouldSelectCell(EventObject event) { | public boolean shouldSelectCell(EventObject event) { | public boolean shouldSelectCell(EventObject event) { return true; } // shouldSelectCell() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/AbstractCellEditor.java/buggy/core/src/classpath/javax/javax/swing/AbstractCellEditor.java |
} | } | public boolean shouldSelectCell(EventObject event) { return true; } // shouldSelectCell() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/AbstractCellEditor.java/buggy/core/src/classpath/javax/javax/swing/AbstractCellEditor.java |
public boolean stopCellEditing() { | public boolean stopCellEditing() { | public boolean stopCellEditing() { fireEditingStopped(); return true; } // stopCellEditing() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/AbstractCellEditor.java/buggy/core/src/classpath/javax/javax/swing/AbstractCellEditor.java |
} | } | public boolean stopCellEditing() { fireEditingStopped(); return true; } // stopCellEditing() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/AbstractCellEditor.java/buggy/core/src/classpath/javax/javax/swing/AbstractCellEditor.java |
Component view = viewport.getView(); if (view == null) return; | public void layoutContainer(Container parent) { // Sun's implementation simply throws a ClassCastException if // parent is no JScrollPane, so do we. JScrollPane sc = (JScrollPane) parent; JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getView().getPreferredSize(); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/ScrollPaneLayout.java/buggy/core/src/classpath/javax/javax/swing/ScrollPaneLayout.java | |
for (int i=0;i<v.size();i++) | for (int i = 0;i < buttons.size(); i++) | AbstractButton FindButton(ButtonModel m) { for (int i=0;i<v.size();i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel()== m) { return a; } } return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/ButtonGroup.java/clean/core/src/classpath/javax/javax/swing/ButtonGroup.java |
AbstractButton a = (AbstractButton) v.get(i); if (a.getModel()== m) { | AbstractButton a = (AbstractButton) buttons.get(i); if (a.getModel() == m) | AbstractButton FindButton(ButtonModel m) { for (int i=0;i<v.size();i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel()== m) { return a; } } return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/ButtonGroup.java/clean/core/src/classpath/javax/javax/swing/ButtonGroup.java |
} | AbstractButton FindButton(ButtonModel m) { for (int i=0;i<v.size();i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel()== m) { return a; } } return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/ButtonGroup.java/clean/core/src/classpath/javax/javax/swing/ButtonGroup.java | |
return v.size(); | return buttons.size(); | public int getButtonCount() { return v.size(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/ButtonGroup.java/clean/core/src/classpath/javax/javax/swing/ButtonGroup.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.