rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
super (provider); | super(provider); | protected SinkChannel (SelectorProvider provider) { super (provider); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Pipe.java/buggy/core/src/classpath/java/java/nio/channels/Pipe.java |
public long write(ByteBuffer[] srcs) throws IOException; | long write(ByteBuffer[] srcs, int offset, int length) throws IOException; | public long write(ByteBuffer[] srcs) throws IOException; | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/GatheringByteChannel.java/buggy/core/src/classpath/java/java/nio/channels/GatheringByteChannel.java |
protected SourceChannel (SelectorProvider provider) | protected SourceChannel(SelectorProvider provider) | protected SourceChannel (SelectorProvider provider) { super (provider); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Pipe.java/buggy/core/src/classpath/java/java/nio/channels/Pipe.java |
super (provider); | super(provider); | protected SourceChannel (SelectorProvider provider) { super (provider); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/Pipe.java/buggy/core/src/classpath/java/java/nio/channels/Pipe.java |
public long read(ByteBuffer[] srcs) throws IOException; | long read(ByteBuffer[] srcs, int offset, int length) throws IOException; | public long read(ByteBuffer[] srcs) throws IOException; | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/ScatteringByteChannel.java/buggy/core/src/classpath/java/java/nio/channels/ScatteringByteChannel.java |
getMaxExpansion(int value) { return(5); } | public int getMaxExpansion(int value) { return 1; } | getMaxExpansion(int value){ //************ Implement me!!!!!!!!! return(5);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/CollationElementIterator.java/clean/core/src/classpath/java/java/text/CollationElementIterator.java |
getOffset() { return(pos); } | public int getOffset() { return textIndex; } | getOffset(){ return(pos);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/CollationElementIterator.java/clean/core/src/classpath/java/java/text/CollationElementIterator.java |
previous() { --pos; if (pos < 0) return(NULLORDER); | public int previous() { RuleBasedCollator.CollationElement e = previousBlock(); | previous(){ --pos; if (pos < 0) return(NULLORDER); String s = str.charAt(pos) + ""; return(rbc.getCollationElementValue(s));} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/CollationElementIterator.java/clean/core/src/classpath/java/java/text/CollationElementIterator.java |
String s = str.charAt(pos) + ""; return(rbc.getCollationElementValue(s)); } | if (e == null) return NULLORDER; return e.getValue(); } | previous(){ --pos; if (pos < 0) return(NULLORDER); String s = str.charAt(pos) + ""; return(rbc.getCollationElementValue(s));} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/CollationElementIterator.java/clean/core/src/classpath/java/java/text/CollationElementIterator.java |
setOffset(int offset) { | public void setOffset(int offset) { | setOffset(int offset){ if (offset < 0) throw new IllegalArgumentException("Negative offset: " + offset); if ((str.length() > 0) && (offset > 0)) throw new IllegalArgumentException("Offset too large: " + offset); else if (offset > (str.length() - 1)) throw new IllegalArgumentException("Offset too large: " + ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/CollationElementIterator.java/clean/core/src/classpath/java/java/text/CollationElementIterator.java |
if ((str.length() > 0) && (offset > 0)) throw new IllegalArgumentException("Offset too large: " + offset); else if (offset > (str.length() - 1)) | if (offset > (text.length() - 1)) | setOffset(int offset){ if (offset < 0) throw new IllegalArgumentException("Negative offset: " + offset); if ((str.length() > 0) && (offset > 0)) throw new IllegalArgumentException("Offset too large: " + offset); else if (offset > (str.length() - 1)) throw new IllegalArgumentException("Offset too large: " + ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/CollationElementIterator.java/clean/core/src/classpath/java/java/text/CollationElementIterator.java |
pos = offset; } | for (index = 0; index < text_decomposition.length; index++) { if (offset <= text_indexes[index]) break; } /* * As text_indexes[0] == 0, we should not have to take care whether index is * greater than 0. It is always. */ if (text_indexes[index] == offset) textIndex = offset; else textIndex = text_indexes[index-1]; } | setOffset(int offset){ if (offset < 0) throw new IllegalArgumentException("Negative offset: " + offset); if ((str.length() > 0) && (offset > 0)) throw new IllegalArgumentException("Offset too large: " + offset); else if (offset > (str.length() - 1)) throw new IllegalArgumentException("Offset too large: " + ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/CollationElementIterator.java/clean/core/src/classpath/java/java/text/CollationElementIterator.java |
setText(String str) { this.str = str; pos = 0; } | public void setText(String text) { int idx = 0; int idx_idx = 0; int alreadyExpanded = 0; int idxToMove = 0; this.text = text; this.index = 0; String work_text = text.intern(); Vector v = new Vector(); Vector vi = new Vector(); while (idx < work_text.length()) { String key, key_old; Object object = null; int p = ... | setText(String str){ this.str = str; pos = 0;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/CollationElementIterator.java/clean/core/src/classpath/java/java/text/CollationElementIterator.java |
WStringSeqHolder h = new WStringSeqHolder(); h._read(input); return h.value; | String[] value = new String[ input.read_long() ]; for (int i = 0; i < value.length; i++) { value [ i ] = input.read_wstring(); } return value; | public static String[] read(InputStream input) { WStringSeqHolder h = new WStringSeqHolder(); h._read(input); return h.value; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/WStringSeqHelper.java/buggy/core/src/classpath/org/org/omg/CORBA/WStringSeqHelper.java |
WStringSeqHolder h = new WStringSeqHolder(value); h._write(output); | output.write_long(value.length); for (int i = 0; i < value.length; i++) { output.write_wstring(value [ i ]); } | public static void write(OutputStream output, String[] value) { WStringSeqHolder h = new WStringSeqHolder(value); h._write(output); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/WStringSeqHelper.java/buggy/core/src/classpath/org/org/omg/CORBA/WStringSeqHelper.java |
public WStringSeqHolder(String[] initial_value) | public WStringSeqHolder() | public WStringSeqHolder(String[] initial_value) { value = initial_value; typecode.setLength(value.length); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/WStringSeqHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/WStringSeqHolder.java |
value = initial_value; typecode.setLength(value.length); | public WStringSeqHolder(String[] initial_value) { value = initial_value; typecode.setLength(value.length); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f28a29b36e025f22e3af3a9b984c6450ba6c8d7/WStringSeqHolder.java/buggy/core/src/classpath/org/org/omg/CORBA/WStringSeqHolder.java | |
public BigDecimal (BigInteger num, int scale) throws NumberFormatException | public BigDecimal (BigInteger num) | public BigDecimal (BigInteger num, int scale) throws NumberFormatException { if (scale < 0) throw new NumberFormatException ("scale of " + scale + " is < 0"); this.intVal = num; this.scale = scale; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigDecimal.java/buggy/core/src/classpath/java/java/math/BigDecimal.java |
if (scale < 0) throw new NumberFormatException ("scale of " + scale + " is < 0"); this.intVal = num; this.scale = scale; | this (num, 0); | public BigDecimal (BigInteger num, int scale) throws NumberFormatException { if (scale < 0) throw new NumberFormatException ("scale of " + scale + " is < 0"); this.intVal = num; this.scale = scale; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigDecimal.java/buggy/core/src/classpath/java/java/math/BigDecimal.java |
g.drawString(str, placement.x, placement.y); | g.drawString(str, placement.x, placement.y + fm.getAscent()); | protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { String str = progressBar.getString(); int full = getAmountFull(b, width, height); Point placement = getStringPlacement(g, progressBar.getString(), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicProgressBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicProgressBarUI.java |
g.drawString(str, placement.x, placement.y); | g.drawString(str, placement.x, placement.y + fm.getAscent()); | protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { String str = progressBar.getString(); int full = getAmountFull(b, width, height); Point placement = getStringPlacement(g, progressBar.getString(), ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicProgressBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicProgressBarUI.java |
public Font deriveFont (AffineTransform a) | public Font deriveFont (int style, float size) | public Font deriveFont (AffineTransform a){ if (a == null) throw new IllegalArgumentException ("Affine transformation is null"); return peer.deriveFont (this, a);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Font.java/buggy/core/src/classpath/java/java/awt/Font.java |
if (a == null) throw new IllegalArgumentException ("Affine transformation is null"); return peer.deriveFont (this, a); | return peer.deriveFont (this, style, size); | public Font deriveFont (AffineTransform a){ if (a == null) throw new IllegalArgumentException ("Affine transformation is null"); return peer.deriveFont (this, a);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/Font.java/buggy/core/src/classpath/java/java/awt/Font.java |
protected AbstractSelectableChannel (SelectorProvider provider) | protected AbstractSelectableChannel(SelectorProvider provider) | protected AbstractSelectableChannel (SelectorProvider provider) { this.provider = provider; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
public final Object blockingLock () | public final Object blockingLock() | public final Object blockingLock () { return LOCK; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
public final SelectableChannel configureBlocking (boolean block) | public final SelectableChannel configureBlocking(boolean blocking) | public final SelectableChannel configureBlocking (boolean block) throws IOException { synchronized (LOCK) { blocking = true; implConfigureBlocking (block); } return this; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
synchronized (LOCK) | synchronized (blockingLock()) | public final SelectableChannel configureBlocking (boolean block) throws IOException { synchronized (LOCK) { blocking = true; implConfigureBlocking (block); } return this; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
blocking = true; implConfigureBlocking (block); | if (this.blocking != blocking) { implConfigureBlocking(blocking); this.blocking = blocking; } | public final SelectableChannel configureBlocking (boolean block) throws IOException { synchronized (LOCK) { blocking = true; implConfigureBlocking (block); } return this; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
protected final void implCloseChannel () throws IOException | protected final void implCloseChannel() throws IOException | protected final void implCloseChannel () throws IOException { implCloseSelectableChannel (); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
implCloseSelectableChannel (); | implCloseSelectableChannel(); | protected final void implCloseChannel () throws IOException { implCloseSelectableChannel (); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
protected abstract void implCloseSelectableChannel () throws IOException; | protected abstract void implCloseSelectableChannel() throws IOException; | protected abstract void implCloseSelectableChannel () throws IOException; | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
protected abstract void implConfigureBlocking (boolean block) | protected abstract void implConfigureBlocking(boolean blocking) | protected abstract void implConfigureBlocking (boolean block) throws IOException; | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
return registered > 0; | return ! keys.isEmpty(); | public final boolean isRegistered() { return registered > 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
return register (selector, 0, null); | synchronized (blockingLock()) { return locate(selector); } | public final SelectionKey keyFor(Selector selector) { try { return register (selector, 0, null); } catch (Exception e) { return null; } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
private SelectionKey locate (Selector selector) | private SelectionKey locate(Selector selector) | private SelectionKey locate (Selector selector) { if (keys == null) return null; SelectionKey k = null; ListIterator it = keys.listIterator (); while (it.hasNext ()) { k = (SelectionKey) it.next (); if (k.selector () == selector) { return k; } }... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
if (keys == null) return null; | ListIterator it = keys.listIterator(); | private SelectionKey locate (Selector selector) { if (keys == null) return null; SelectionKey k = null; ListIterator it = keys.listIterator (); while (it.hasNext ()) { k = (SelectionKey) it.next (); if (k.selector () == selector) { return k; } }... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
SelectionKey k = null; ListIterator it = keys.listIterator (); while (it.hasNext ()) { k = (SelectionKey) it.next (); if (k.selector () == selector) | while (it.hasNext()) | private SelectionKey locate (Selector selector) { if (keys == null) return null; SelectionKey k = null; ListIterator it = keys.listIterator (); while (it.hasNext ()) { k = (SelectionKey) it.next (); if (k.selector () == selector) { return k; } }... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
return k; } | SelectionKey key = (SelectionKey) it.next(); if (key.selector() == selector) return key; | private SelectionKey locate (Selector selector) { if (keys == null) return null; SelectionKey k = null; ListIterator it = keys.listIterator (); while (it.hasNext ()) { k = (SelectionKey) it.next (); if (k.selector () == selector) { return k; } }... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
return k; | return null; | private SelectionKey locate (Selector selector) { if (keys == null) return null; SelectionKey k = null; ListIterator it = keys.listIterator (); while (it.hasNext ()) { k = (SelectionKey) it.next (); if (k.selector () == selector) { return k; } }... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
public final SelectorProvider provider () | public final SelectorProvider provider() | public final SelectorProvider provider () { return provider; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
public final SelectionKey register (Selector selin, int ops, Object att) | public final SelectionKey register(Selector selin, int ops, Object att) | public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (LOCK) { k = locate (selector); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
if (!isOpen ()) | if (! isOpen()) | public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (LOCK) { k = locate (selector); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
SelectionKey k = null; | if ((ops & ~validOps()) != 0) throw new IllegalArgumentException(); SelectionKey key = null; | public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (LOCK) { k = locate (selector); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
synchronized (LOCK) | synchronized (blockingLock()) | public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (LOCK) { k = locate (selector); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
k = locate (selector); | key = locate(selector); | public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (LOCK) { k = locate (selector); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
if (k != null) | if (key != null) | public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (LOCK) { k = locate (selector); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
k.attach (att); | if (att != null) key.attach(att); | public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (LOCK) { k = locate (selector); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
k = selector.register (this, ops, att); | key = selector.register(this, ops, att); if (key != null) addSelectionKey(key); } } | public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (LOCK) { k = locate (selector); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
if (k != null) add (k); | return key; | public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (LOCK) { k = locate (selector); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java |
} return k; } | public final SelectionKey register (Selector selin, int ops, Object att) throws ClosedChannelException { if (!isOpen ()) throw new ClosedChannelException(); SelectionKey k = null; AbstractSelector selector = (AbstractSelector) selin; synchronized (LOCK) { k = locate (selector); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractSelectableChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractSelectableChannel.java | |
return (cal.getTimeInMillis() == getTimeInMillis()); | return (cal.gregorianCutover == gregorianCutover && super.equals(o)); | public boolean equals(Object o) { if (! (o instanceof GregorianCalendar)) return false; GregorianCalendar cal = (GregorianCalendar) o; return (cal.getTimeInMillis() == getTimeInMillis()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/91f4232dfb8a5dff7627558a11285391ca44ebfd/GregorianCalendar.java/buggy/core/src/classpath/java/java/util/GregorianCalendar.java |
focusColor = getFocusColor(); selectColor = getSelectColor(); disabledTextColor = getDisabledTextColor(); | UIDefaults def = UIManager.getLookAndFeelDefaults(); focusColor = def.getColor(getPropertyPrefix() + "focus"); selectColor = def.getColor(getPropertyPrefix() + "select"); disabledTextColor = def.getColor(getPropertyPrefix() + "disabledText"); | public MetalButtonUI() { super(); focusColor = getFocusColor(); selectColor = getSelectColor(); disabledTextColor = getDisabledTextColor(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/MetalButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalButtonUI.java |
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalButtonUI(); return instance; | public static ComponentUI createUI(JComponent c) { return new MetalButtonUI(); | public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalButtonUI(); return instance; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/MetalButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalButtonUI.java |
UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".disabledText"); | return disabledTextColor; | protected Color getDisabledTextColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".disabledText"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/MetalButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalButtonUI.java |
UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".focus"); | return focusColor; | protected Color getFocusColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".focus"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/MetalButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalButtonUI.java |
UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".select"); | return selectColor; | protected Color getSelectColor() { UIDefaults def = UIManager.getLookAndFeelDefaults(); return def.getColor(getPropertyPrefix() + ".select"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/MetalButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalButtonUI.java |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); button.setFont(defaults.getFont("Button.font")); if (button.getParent() instanceof JToolBar) button.setBorder(MetalBorders.getToolbarButtonBorder()); | if (button.isRolloverEnabled()) { if (button.getBorder() instanceof UIResource) button.setBorder(MetalBorders.getRolloverBorder()); } | public void installDefaults(AbstractButton button) { super.installDefaults(button); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); button.setFont(defaults.getFont("Button.font")); if (button.getParent() instanceof JToolBar) button.setBorder(MetalBorders.getToolbarButtonBorder()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/MetalButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalButtonUI.java |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); menuBar.setBackground(defaults.getColor("MenuBar.background")); menuBar.setBorder(defaults.getBorder("MenuBar.border")); menuBar.setFont(defaults.getFont("MenuBar.font")); menuBar.setForeground(defaults.getColor("MenuBar.foreground")); | LookAndFeel.installBorder(menuBar, "MenuBar.border"); LookAndFeel.installColorsAndFont(menuBar, "MenuBar.background", "MenuBar.foreground", "MenuBar.font"); | protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); menuBar.setBackground(defaults.getColor("MenuBar.background")); menuBar.setBorder(defaults.getBorder("MenuBar.border")); menuBar.setFont(defaults.getFont("MenuBar.font")); menuBar.setForeground(defaults.getCol... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicMenuBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuBarUI.java |
modifyPartition(PARTITION.getValue(cmdLine), api, bs); | modifyPartition(PARTITION.getValue(cmdLine), api, bs, current); | public static void main(String[] args) throws SyntaxErrorException { ParsedArguments cmdLine = HELP_INFO.parse(args); DeviceManager dm; try { dm = InitialNaming.lookup(DeviceManager.NAME); boolean isAction = PARAM_ACTION.isSet(cmdLine); boolean isInitMBR = PARAM_INITMBR.isSet(cmdLine); boolean isDevice = PA... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd7240be654ad7f1fda3ff7a6ea4fbce2c6ba9b2/FdiskCommand.java/clean/fs/src/fs/org/jnode/partitions/command/FdiskCommand.java |
private static void modifyPartition(String description, BlockDeviceAPI api, BootSector bs) throws IOException { | private static void modifyPartition(String description, BlockDeviceAPI api, BootSector bs, Device dev) throws IOException { | private static void modifyPartition(String description, BlockDeviceAPI api, BootSector bs) throws IOException { // arg 1 should be in the form id:start:size:fs StringTokenizer st = new StringTokenizer(description, ":"); int id = Integer.parseInt(st.nextToken()); //BUG in long //long start = Long.parseLong(st.next... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd7240be654ad7f1fda3ff7a6ea4fbce2c6ba9b2/FdiskCommand.java/clean/fs/src/fs/org/jnode/partitions/command/FdiskCommand.java |
DeviceManager dm = null; try { dm = InitialNaming.lookup(DeviceManager.NAME); dm.stop(dev); dm.start(dev); } catch (NameNotFoundException e) { e.printStackTrace(); } catch (DeviceNotFoundException e) { e.printStackTrace(); } catch (DriverException e) { e.printStackTrace(); } | private static void modifyPartition(String description, BlockDeviceAPI api, BootSector bs) throws IOException { // arg 1 should be in the form id:start:size:fs StringTokenizer st = new StringTokenizer(description, ":"); int id = Integer.parseInt(st.nextToken()); //BUG in long //long start = Long.parseLong(st.next... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd7240be654ad7f1fda3ff7a6ea4fbce2c6ba9b2/FdiskCommand.java/clean/fs/src/fs/org/jnode/partitions/command/FdiskCommand.java | |
public synchronized String substring(int beginIndex, int endIndex) | public String substring(int beginIndex) | public synchronized String substring(int beginIndex, int endIndex) { int len = endIndex - beginIndex; if (beginIndex < 0 || endIndex > count || endIndex < beginIndex) throw new StringIndexOutOfBoundsException(); if (len == 0) return ""; // Don't copy unless substring is smaller than 1/4 of the ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/StringBuffer.java/buggy/core/src/classpath/java/java/lang/StringBuffer.java |
int len = endIndex - beginIndex; if (beginIndex < 0 || endIndex > count || endIndex < beginIndex) throw new StringIndexOutOfBoundsException(); if (len == 0) return ""; boolean share_buffer = ((len << 2) >= value.length); if (share_buffer) this.shared = true; return new String(value, beginIndex, len, share_buffer); | return substring(beginIndex, count); | public synchronized String substring(int beginIndex, int endIndex) { int len = endIndex - beginIndex; if (beginIndex < 0 || endIndex > count || endIndex < beginIndex) throw new StringIndexOutOfBoundsException(); if (len == 0) return ""; // Don't copy unless substring is smaller than 1/4 of the ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/StringBuffer.java/buggy/core/src/classpath/java/java/lang/StringBuffer.java |
g.drawString(acceleratorString, vr.x + vr.width - width - padSpaceBetweenStrings/2, vr.y + vr.height - fm.getDescent()); | g.drawString(acceleratorString, vr.x + vr.width - width - padSpaceBetweenStrings / 2, vr.y + vr.height - fm.getDescent()); | public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); Toolkit t = tip.getToolkit(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e0c4001932916dcdf180e32bf374255e88829b25/MetalToolTipUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalToolTipUI.java |
if (ActivationSystemTransient.debug) System.out.println("Instantiating "+desc.getClassName()); | public MarshalledObject newInstance(ActivationID id, ActivationDesc desc) throws ActivationException, RemoteException { try { Remote object; Class objectClass; ClassLoader loader = Thread.currentThread().getContextClassLoader(); objectClass = loader.loadClass(desc.getClassNam... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4b6281ed01a542e70503c69a67129ff6df618649/DefaultActivationGroup.java/buggy/core/src/classpath/gnu/gnu/java/rmi/activation/DefaultActivationGroup.java | |
if (parent == null) { if (this instanceof MenuBar) { MenuBar menuBar = (MenuBar) this; if (menuBar.frame != null) retVal = menuBar.frame.postEvent(event); } } else | if (parent != null) | postEvent(Event event) { boolean retVal = false; MenuContainer parent = getParent(); if (parent == null) { if (this instanceof MenuBar) { MenuBar menuBar = (MenuBar) this; if (menuBar.frame != null) retVal = menuBar.frame.postEvent(event); } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/MenuComponent.java/buggy/core/src/classpath/java/java/awt/MenuComponent.java |
public float getLSB () throws NotImplementedException | public float getLSB() | public float getLSB () throws NotImplementedException { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/GlyphMetrics.java/buggy/core/src/classpath/java/java/awt/font/GlyphMetrics.java |
throw new Error ("not implemented"); | if (horizontal) return (float) bounds.getX(); return (float) bounds.getY(); | public float getLSB () throws NotImplementedException { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/GlyphMetrics.java/buggy/core/src/classpath/java/java/awt/font/GlyphMetrics.java |
public float getRSB () throws NotImplementedException | public float getRSB() | public float getRSB () throws NotImplementedException { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/GlyphMetrics.java/buggy/core/src/classpath/java/java/awt/font/GlyphMetrics.java |
throw new Error ("not implemented"); | if (horizontal) return (float) (advanceX - (bounds.getX() + bounds.getWidth())); return (float) (advanceY - (bounds.getY() + bounds.getHeight())); | public float getRSB () throws NotImplementedException { throw new Error ("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/GlyphMetrics.java/buggy/core/src/classpath/java/java/awt/font/GlyphMetrics.java |
for (Iterator i = list.iterator(); i.hasNext(); ) { final Permission p = (Permission)i.next(); | for (Permission p : list) { | public boolean implies(Permission perm) { for (Iterator i = list.iterator(); i.hasNext(); ) { final Permission p = (Permission)i.next(); if (p.implies(perm)) { return true; } } return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff85486c4bc88d3b82d27fe4f951dc7bafeafa6f/SimplePermissionCollection.java/buggy/core/src/classpath/vm/gnu/java/security/util/SimplePermissionCollection.java |
public ServerSocketChannel(SelectorProvider provider) { | protected ServerSocketChannel(SelectorProvider provider) { | public ServerSocketChannel(SelectorProvider provider) { super(provider); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/ServerSocketChannel.java/buggy/core/src/classpath/java/java/nio/channels/ServerSocketChannel.java |
protected final void begin () | protected final void begin() | protected final void begin () { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractInterruptibleChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractInterruptibleChannel.java |
protected final void end (boolean completed) | protected final void end(boolean completed) | protected final void end (boolean completed) throws AsynchronousCloseException { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractInterruptibleChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractInterruptibleChannel.java |
if (closed) throw new AsynchronousCloseException(); | protected final void end (boolean completed) throws AsynchronousCloseException { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/AbstractInterruptibleChannel.java/buggy/core/src/classpath/java/java/nio/channels/spi/AbstractInterruptibleChannel.java | |
caret.setVisible(!caret.isVisible()); | Caret c = caret; if (c != null) c.setVisible(!c.isVisible()); | public void actionPerformed(ActionEvent ev) { caret.setVisible(!caret.isVisible()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java |
setDelay(caret.getBlinkRate()); | Caret c = caret; if (c != null) { setDelay(c.getBlinkRate()); | public void update() { stop(); setDelay(caret.getBlinkRate()); if (editable) start(); else caret.setVisible(false); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java |
caret.setVisible(false); | c.setVisible(false); } | public void update() { stop(); setDelay(caret.getBlinkRate()); if (editable) start(); else caret.setVisible(false); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/JTextComponent.java/buggy/core/src/classpath/javax/javax/swing/text/JTextComponent.java |
Signature signingEngine) throws IOException, InvalidKeyException, SignatureException | Signature signingEngine) throws IOException, InvalidKeyException, SignatureException | public SignedObject(Serializable object, PrivateKey signingKey, Signature signingEngine) throws IOException, InvalidKeyException, SignatureException { thealgorithm = signingEngine.getAlgorithm(); ByteArrayOutputStream ostream = new ByteArrayOutputStream(); ObjectOutputStream p = new ObjectOutputSt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/SignedObject.java/buggy/core/src/classpath/java/java/security/SignedObject.java |
p.close(); | public SignedObject(Serializable object, PrivateKey signingKey, Signature signingEngine) throws IOException, InvalidKeyException, SignatureException { thealgorithm = signingEngine.getAlgorithm(); ByteArrayOutputStream ostream = new ByteArrayOutputStream(); ObjectOutputStream p = new ObjectOutputSt... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/SignedObject.java/buggy/core/src/classpath/java/java/security/SignedObject.java | |
ByteArrayInputStream istream = new ByteArrayInputStream(content); | ByteArrayInputStream bais = new ByteArrayInputStream(content); ObjectInput oi = new ObjectInputStream(bais); Object obj = oi.readObject(); oi.close(); bais.close(); | public Object getObject() throws IOException, ClassNotFoundException { ByteArrayInputStream istream = new ByteArrayInputStream(content); return new ObjectInputStream(istream).readObject(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/SignedObject.java/buggy/core/src/classpath/java/java/security/SignedObject.java |
return new ObjectInputStream(istream).readObject(); | return obj; | public Object getObject() throws IOException, ClassNotFoundException { ByteArrayInputStream istream = new ByteArrayInputStream(content); return new ObjectInputStream(istream).readObject(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/SignedObject.java/buggy/core/src/classpath/java/java/security/SignedObject.java |
return signature; | return (byte[]) signature.clone(); | public byte[] getSignature() { return signature; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/SignedObject.java/buggy/core/src/classpath/java/java/security/SignedObject.java |
public boolean verify(PublicKey verificationKey, Signature verificationEngine) throws InvalidKeyException, SignatureException | public boolean verify(PublicKey verificationKey, Signature verificationEngine) throws InvalidKeyException, SignatureException | public boolean verify(PublicKey verificationKey, Signature verificationEngine) throws InvalidKeyException, SignatureException { verificationEngine.initVerify(verificationKey); verificationEngine.update(content); return verificationEngine.verify(signature); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/SignedObject.java/buggy/core/src/classpath/java/java/security/SignedObject.java |
private Provider () | Provider () | private Provider () { extendedLoaded = false; canonicalNames = new HashMap (); charsets = new HashMap (); // US-ASCII aka ISO646-US addCharset (new US_ASCII ()); // ISO-8859-1 aka ISO-LATIN-1 addCharset (new ISO_8859_1 ()); // UTF-8 addCharset (new UTF_8 ()); // UTF-16BE addCharset (... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5cc883bd029030769c65012cf4bb1d33711cca30/Provider.java/clean/core/src/classpath/gnu/gnu/java/nio/charset/Provider.java |
if(cs == null && !extendedLoaded) | if (cs == null) | public Charset charsetForName (String charsetName) { Charset cs = (Charset) charsets.get(canonicalNames.get(charsetName.toLowerCase())); if(cs == null && !extendedLoaded) { loadExtended(); cs = (Charset) charsets.get(canonicalNames.get(charsetName.toLowerCase())); } return cs; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5cc883bd029030769c65012cf4bb1d33711cca30/Provider.java/clean/core/src/classpath/gnu/gnu/java/nio/charset/Provider.java |
private void loadExtended () | private synchronized void loadExtended () | private void loadExtended () { if(extendedLoaded) return; addCharset (new ISO_8859_3 ()); // ISO-8859-3 aka ISO-LATIN-3 addCharset (new ISO_8859_6 ()); // ISO-8859-6 (Arabic) addCharset (new ISO_8859_8 ()); // ISO-8859-8 (Hebrew) // Some more codepages addCharset (new Cp855()); // IBM... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5cc883bd029030769c65012cf4bb1d33711cca30/Provider.java/clean/core/src/classpath/gnu/gnu/java/nio/charset/Provider.java |
if(extendedLoaded) | if (extendedLoaded) | private void loadExtended () { if(extendedLoaded) return; addCharset (new ISO_8859_3 ()); // ISO-8859-3 aka ISO-LATIN-3 addCharset (new ISO_8859_6 ()); // ISO-8859-6 (Arabic) addCharset (new ISO_8859_8 ()); // ISO-8859-8 (Hebrew) // Some more codepages addCharset (new Cp855()); // IBM... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5cc883bd029030769c65012cf4bb1d33711cca30/Provider.java/clean/core/src/classpath/gnu/gnu/java/nio/charset/Provider.java |
addCharset (new MacCentralEurope()); addCharset (new MacCroatian()); addCharset (new MacCyrillic()); addCharset (new MacDingbat()); addCharset (new MacGreek()); addCharset (new MacIceland()); addCharset (new MacRoman()); addCharset (new MacRomania()); addCharset (new MacSymbol()); addCharset (new MacThai()); addCharse... | private void loadExtended () { if(extendedLoaded) return; addCharset (new ISO_8859_3 ()); // ISO-8859-3 aka ISO-LATIN-3 addCharset (new ISO_8859_6 ()); // ISO-8859-6 (Arabic) addCharset (new ISO_8859_8 ()); // ISO-8859-8 (Hebrew) // Some more codepages addCharset (new Cp855()); // IBM... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5cc883bd029030769c65012cf4bb1d33711cca30/Provider.java/clean/core/src/classpath/gnu/gnu/java/nio/charset/Provider.java | |
super("Windows-1250", new String[] { | super("windows-1250", new String[] { | public Windows1250() { super("Windows-1250", new String[] { "Windows1250", "ibm-5346_P100-1998", "ibm-5346", "cp1250", "cp-1250", "cp_1250", "windows1250", "windows_1250" }); lookupTable = lookup; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/Windows1250.java/buggy/core/src/classpath/gnu/gnu/java/nio/charset/Windows1250.java |
super("Windows-1252", new String[] { | super("windows-1252", new String[] { | public Windows1252() { super("Windows-1252", new String[] { "Windows1252", "ibm-5348_P100-1997", "ibm-5348", "windows-1252", "cp1252", "cp-1252" }); lookupTable = lookup; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/Windows1252.java/buggy/core/src/classpath/gnu/gnu/java/nio/charset/Windows1252.java |
super("Windows-1253", new String[] { | super("windows-1253", new String[] { | public Windows1253() { super("Windows-1253", new String[] { "Windows1253", "cp1253", "cp-1253", "cp_1253", "windows1253", "windows_1253" }); lookupTable = lookup; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/Windows1253.java/buggy/core/src/classpath/gnu/gnu/java/nio/charset/Windows1253.java |
super("Windows-1254", new String[] { | super("windows-1254", new String[] { | public Windows1254() { super("Windows-1254", new String[] { "Windows1254", "cp1254", "cp-1254", "cp_1254", "windows1254", "windows_1254" }); lookupTable = lookup; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/Windows1254.java/buggy/core/src/classpath/gnu/gnu/java/nio/charset/Windows1254.java |
super("Windows-1257", new String[] { | super("windows-1257", new String[] { | public Windows1257() { super("Windows-1257", new String[] { "Windows1257", "cp1257", "cp-1257", "cp_1257", "windows1257", "windows_1257" }); lookupTable = lookup; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/Windows1257.java/buggy/core/src/classpath/gnu/gnu/java/nio/charset/Windows1257.java |
super("Windows-1255", new String[] { | super("windows-1255", new String[] { | public Windows1255() { super("Windows-1255", new String[] { "Windows1255", "cp1255", "cp-1255", "cp_1255", "windows1255", "windows_1255" }); lookupTable = lookup; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/Windows1255.java/buggy/core/src/classpath/gnu/gnu/java/nio/charset/Windows1255.java |
super("Windows-1256", new String[] { | super("windows-1256", new String[] { | public Windows1256() { super("Windows-1256", new String[] { "Windows1256", "cp1256", "cp-1256", "cp_1256", "windows1256", "windows_1256" }); lookupTable = lookup; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/Windows1256.java/buggy/core/src/classpath/gnu/gnu/java/nio/charset/Windows1256.java |
super("Windows-1258", new String[] { | super("windows-1258", new String[] { | public Windows1258() { super("Windows-1258", new String[] { "Windows1258", "cp1258", "cp-1258", "cp_1258", "windows1258", "windows_1258" }); lookupTable = lookup; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/Windows1258.java/buggy/core/src/classpath/gnu/gnu/java/nio/charset/Windows1258.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/1edc4cba009ff2c639001f1fd1842c4da4b86249/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java |
public INode(Ext2FileSystem fs, byte[] data) { | public INode(Ext2FileSystem fs, INodeDescriptor desc, byte[] data) { | public INode(Ext2FileSystem fs, byte[] data) { this.fs = fs; this.data = new byte[INODE_LENGTH]; System.arraycopy(data, 0, this.data, 0, INODE_LENGTH); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/INode.java/clean/fs/src/fs/org/jnode/fs/ext2/INode.java |
setDirty(false); log.setLevel(Level.DEBUG); | public INode(Ext2FileSystem fs, byte[] data) { this.fs = fs; this.data = new byte[INODE_LENGTH]; System.arraycopy(data, 0, this.data, 0, INODE_LENGTH); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5d32e4c533c3f554b2099795fe6d30766c16e4da/INode.java/clean/fs/src/fs/org/jnode/fs/ext2/INode.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.