rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
return offset < 0 ? 0 : offset; | return mark.mark; | public int getOffset() { return offset < 0 ? 0 : offset; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java |
if (offset < this.count || offset > this.count) checkLocation(offset, 0); | if (marks == null) marks = new Vector(); | public Position createPosition(int offset) throws BadLocationException { if (offset < this.count || offset > this.count) checkLocation(offset, 0); StickyPosition sp = new StickyPosition(offset); this.positions.add(sp); return sp; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java |
this.positions.add(sp); | public Position createPosition(int offset) throws BadLocationException { if (offset < this.count || offset > this.count) checkLocation(offset, 0); StickyPosition sp = new StickyPosition(offset); this.positions.add(sp); return sp; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java | |
checkLocation(where, len); txt.array = this.content; | if (where + len > count) throw new BadLocationException("Invalid location", where + len); txt.array = content; | public void getChars(int where, int len, Segment txt) throws BadLocationException { checkLocation(where, len); txt.array = this.content; txt.offset = where; txt.count = len; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java |
Vector refPos = new Vector(); Iterator iter = this.positions.iterator(); | Vector refPos = v == null ? new Vector() : v; Iterator iter = marks.iterator(); | protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector refPos = new Vector(); Iterator iter = this.positions.iterator(); while(iter.hasNext()) { Position p = (Position) iter.next(); if ((o... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java |
Position p = (Position) iter.next(); if ((offset <= p.getOffset()) && (p.getOffset() <= (offset + length))) refPos.add(p); | Mark m = (Mark) iter.next(); if (offset <= m.mark && m.mark <= offset + length) refPos.add(new UndoPosRef(m)); | protected Vector getPositionsInRange(Vector v, int offset, int length) { Vector refPos = new Vector(); Iterator iter = this.positions.iterator(); while(iter.hasNext()) { Position p = (Position) iter.next(); if ((o... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java |
public String getString(int where, int len) throws BadLocationException { checkLocation(where, len); return new String(this.content, where, len); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java | ||
char[] temp = new char[this.content.length + insert.length]; this.count += insert.length; if (where > 0) System.arraycopy(this.content, 0, temp, 0, where); System.arraycopy(insert, 0, temp, where, insert.length); System.arraycopy(this.content, where, temp, (where + insert.length), (temp.length - where - insert.length)... | replace(where, 0, insert); | public UndoableEdit insertString(int where, String str) throws BadLocationException { checkLocation(where, 0); if (where == this.count) throw new BadLocationException("Invalid location", 1); if (str == null) throw new NullPointerException(); char[] insert = str.toCharArray(); char[] temp ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java |
Vector refPos = getPositionsInRange(this.positions, where, temp.length - where); Iterator iter = refPos.iterator(); | if (marks != null) { Iterator iter = marks.iterator(); int start = where; if (start == 0) start = 1; | public UndoableEdit insertString(int where, String str) throws BadLocationException { checkLocation(where, 0); if (where == this.count) throw new BadLocationException("Invalid location", 1); if (str == null) throw new NullPointerException(); char[] insert = str.toCharArray(); char[] temp ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java |
StickyPosition p = (StickyPosition)iter.next(); p.setOffset(p.getOffset() + str.length()); | Mark m = (Mark) iter.next(); if (m.mark >= start) m.mark += str.length(); | public UndoableEdit insertString(int where, String str) throws BadLocationException { checkLocation(where, 0); if (where == this.count) throw new BadLocationException("Invalid location", 1); if (str == null) throw new NullPointerException(); char[] insert = str.toCharArray(); char[] temp ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java |
} | public UndoableEdit insertString(int where, String str) throws BadLocationException { checkLocation(where, 0); if (where == this.count) throw new BadLocationException("Invalid location", 1); if (str == null) throw new NullPointerException(); char[] insert = str.toCharArray(); char[] temp ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java | |
return this.count; | return count; | public int length() { return this.count; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java |
char[] temp = new char[(this.content.length - nitems)]; this.count = this.count - nitems; | public UndoableEdit remove(int where, int nitems) throws BadLocationException { checkLocation(where, nitems + 1); char[] temp = new char[(this.content.length - nitems)]; this.count = this.count - nitems; RemoveUndo rundo = new RemoveUndo(where, new String(this.content, where, nitems)); // Copy... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java | |
System.arraycopy(this.content, 0, temp, 0, where); System.arraycopy(this.content, where + nitems, temp, where, this.content.length - where - nitems); this.content = new char[temp.length]; System.arraycopy(temp, 0, this.content, 0, this.content.length); | replace(where, nitems, EMPTY); | public UndoableEdit remove(int where, int nitems) throws BadLocationException { checkLocation(where, nitems + 1); char[] temp = new char[(this.content.length - nitems)]; this.count = this.count - nitems; RemoveUndo rundo = new RemoveUndo(where, new String(this.content, where, nitems)); // Copy... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java |
Vector refPos = getPositionsInRange(this.positions, where, this.content.length + nitems - where); Iterator iter = refPos.iterator(); | if (marks != null) { Iterator iter = marks.iterator(); | public UndoableEdit remove(int where, int nitems) throws BadLocationException { checkLocation(where, nitems + 1); char[] temp = new char[(this.content.length - nitems)]; this.count = this.count - nitems; RemoveUndo rundo = new RemoveUndo(where, new String(this.content, where, nitems)); // Copy... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java |
StickyPosition p = (StickyPosition)iter.next(); int result = p.getOffset() - nitems; p.setOffset(result); if (result < 0) this.positions.remove(p); | Mark m = (Mark) iter.next(); if (m.mark >= where + nitems) m.mark -= nitems; else if (m.mark >= where) m.mark = where; } | public UndoableEdit remove(int where, int nitems) throws BadLocationException { checkLocation(where, nitems + 1); char[] temp = new char[(this.content.length - nitems)]; this.count = this.count - nitems; RemoveUndo rundo = new RemoveUndo(where, new String(this.content, where, nitems)); // Copy... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java |
for (Iterator i = positions.iterator(); i.hasNext();) { UndoPosRef pos = (UndoPosRef) i.next(); pos.reset(); } | protected void updateUndoPositions(Vector positions) { // We do nothing here. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ba862f89183b5347853381927a04e1e399fae5db/StringContent.java/clean/core/src/classpath/javax/javax/swing/text/StringContent.java | |
final Object obj = Class.forName(className).newInstance(); | final ClassLoader cl = Thread.currentThread().getContextClassLoader(); final Object obj = cl.loadClass(className).newInstance(); | private void createType(Map types, ConfigurationElement element) { final String className = element.getAttribute("class"); if (className != null) { try { final Object obj = Class.forName(className).newInstance(); final FileSystemType type = (FileSystemType)obj; types.put(type.getName(), type); } catch ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/FileSystemTypeManager.java/clean/fs/src/fs/org/jnode/fs/service/def/FileSystemTypeManager.java |
public static final int[] G(int hh0, int hh1, int hh2, int hh3, int hh4, byte[] in, int offset) { // int[] w = new int[80]; // int i, T; // for (i = 0; i < 16; i++) { // w[i] = in[offset++] << 24 | // (in[offset++] & 0xFF) << 16... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java | ||
byte[] result = new byte[] { (byte) (h0 >>> 24), (byte) (h0 >>> 16), (byte) (h0 >>> 8), (byte) h0, (byte) (h1 >>> 24), (byte) (h1 >>> 16), (byte) (h1 >>> 8), (byte) h1, (byte) (h2 >>> 24), (byte) (h2 >>> 16), (byte) (h2 >>> 8), (byte) h2, (byte) (h3 >>> 24), (byte) (h3 >>> 16), (byte) (h3 >>> 8), (byte) h3, (byte) (h4 ... | return new byte[] { (byte)(h0 >>> 24), (byte)(h0 >>> 16), (byte)(h0 >>> 8), (byte) h0, (byte)(h1 >>> 24), (byte)(h1 >>> 16), (byte)(h1 >>> 8), (byte) h1, (byte)(h2 >>> 24), (byte)(h2 >>> 16), (byte)(h2 >>> 8), (byte) h2, (byte)(h3 >>> 24), (byte)(h3 >>> 16), (byte)(h3 >>> 8), (byte) h3, (byte)(h4 >>> 24), (byte)(h4 >>>... | protected byte[] getResult() { byte[] result = new byte[] { (byte) (h0 >>> 24), (byte) (h0 >>> 16), (byte) (h0 >>> 8), (byte) h0, (byte) (h1 >>> 24), (byte) (h1 >>> 16), (byte) (h1 >>> 8), (byte) h1, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java |
int n = (int) (count % BLOCK_SIZE); | int n = (int)(count % BLOCK_SIZE); | protected byte[] padBuffer() { int n = (int) (count % BLOCK_SIZE); int padding = (n < 56) ? (56 - n) : (120 - n); byte[] result = new byte[padding + 8]; // padding is always binary 1 followed by binary 0s result[0] = (byte) 0x80; // save number of bits, casting the long to an array of 8 bytes lo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java |
protected byte[] padBuffer() { int n = (int) (count % BLOCK_SIZE); int padding = (n < 56) ? (56 - n) : (120 - n); byte[] result = new byte[padding + 8]; // padding is always binary 1 followed by binary 0s result[0] = (byte) 0x80; // save number of bits, casting the long to an array of 8 bytes lo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java | ||
protected byte[] padBuffer() { int n = (int) (count % BLOCK_SIZE); int padding = (n < 56) ? (56 - n) : (120 - n); byte[] result = new byte[padding + 8]; // padding is always binary 1 followed by binary 0s result[0] = (byte) 0x80; // save number of bits, casting the long to an array of 8 bytes lo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java | ||
result[padding++] = (byte) (bits >>> 56); result[padding++] = (byte) (bits >>> 48); result[padding++] = (byte) (bits >>> 40); result[padding++] = (byte) (bits >>> 32); result[padding++] = (byte) (bits >>> 24); result[padding++] = (byte) (bits >>> 16); result[padding++] = (byte) (bits >>> 8); result[padding] = (byte) bi... | result[padding++] = (byte)(bits >>> 56); result[padding++] = (byte)(bits >>> 48); result[padding++] = (byte)(bits >>> 40); result[padding++] = (byte)(bits >>> 32); result[padding++] = (byte)(bits >>> 24); result[padding++] = (byte)(bits >>> 16); result[padding++] = (byte)(bits >>> 8); result[padding ] = (byte) bits; | protected byte[] padBuffer() { int n = (int) (count % BLOCK_SIZE); int padding = (n < 56) ? (56 - n) : (120 - n); byte[] result = new byte[padding + 8]; // padding is always binary 1 followed by binary 0s result[0] = (byte) 0x80; // save number of bits, casting the long to an array of 8 bytes lo... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java |
sha(int hh0, int hh1, int hh2, int hh3, int hh4, byte[] in, int offset) | private static synchronized final int[] sha(int hh0, int hh1, int hh2, int hh3, int hh4, byte[] in, int offset) | sha(int hh0, int hh1, int hh2, int hh3, int hh4, byte[] in, int offset) { int A = hh0; int B = hh1; int C = hh2; int D = hh3; int E = hh4; int r, T; for (r = 0; r < 16; r++) { w[r] = in[offset++] << 24 | (in[offset++] & 0xFF) << 16 | (in[offset++] & 0xFF) << 8 | (in[off... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java |
sha(int hh0, int hh1, int hh2, int hh3, int hh4, byte[] in, int offset) { int A = hh0; int B = hh1; int C = hh2; int D = hh3; int E = hh4; int r, T; for (r = 0; r < 16; r++) { w[r] = in[offset++] << 24 | (in[offset++] & 0xFF) << 16 | (in[offset++] & 0xFF) << 8 | (in[off... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java | ||
{ w[r] = in[offset++] << 24 | (in[offset++] & 0xFF) << 16 | (in[offset++] & 0xFF) << 8 | (in[offset++] & 0xFF); } | w[r] = in[offset++] << 24 | (in[offset++] & 0xFF) << 16 | (in[offset++] & 0xFF) << 8 | (in[offset++] & 0xFF); | sha(int hh0, int hh1, int hh2, int hh3, int hh4, byte[] in, int offset) { int A = hh0; int B = hh1; int C = hh2; int D = hh3; int E = hh4; int r, T; for (r = 0; r < 16; r++) { w[r] = in[offset++] << 24 | (in[offset++] & 0xFF) << 16 | (in[offset++] & 0xFF) << 8 | (in[off... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java |
for (r = 0; r < 20; r++) | for (r = 0; r < 20; r++) | sha(int hh0, int hh1, int hh2, int hh3, int hh4, byte[] in, int offset) { int A = hh0; int B = hh1; int C = hh2; int D = hh3; int E = hh4; int r, T; for (r = 0; r < 16; r++) { w[r] = in[offset++] << 24 | (in[offset++] & 0xFF) << 16 | (in[offset++] & 0xFF) << 8 | (in[off... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java |
for (r = 20; r < 40; r++) | for (r = 20; r < 40; r++) | sha(int hh0, int hh1, int hh2, int hh3, int hh4, byte[] in, int offset) { int A = hh0; int B = hh1; int C = hh2; int D = hh3; int E = hh4; int r, T; for (r = 0; r < 16; r++) { w[r] = in[offset++] << 24 | (in[offset++] & 0xFF) << 16 | (in[offset++] & 0xFF) << 8 | (in[off... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java |
for (r = 40; r < 60; r++) | for (r = 40; r < 60; r++) | sha(int hh0, int hh1, int hh2, int hh3, int hh4, byte[] in, int offset) { int A = hh0; int B = hh1; int C = hh2; int D = hh3; int E = hh4; int r, T; for (r = 0; r < 16; r++) { w[r] = in[offset++] << 24 | (in[offset++] & 0xFF) << 16 | (in[offset++] & 0xFF) << 8 | (in[off... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java |
T = (A << 5 | A >>> 27) + (B & C | B & D | C & D) + E + w[r] + 0x8F1BBCDC; | T = (A << 5 | A >>> 27) + (B & C | B & D | C & D) + E + w[r] + 0x8F1BBCDC; | sha(int hh0, int hh1, int hh2, int hh3, int hh4, byte[] in, int offset) { int A = hh0; int B = hh1; int C = hh2; int D = hh3; int E = hh4; int r, T; for (r = 0; r < 16; r++) { w[r] = in[offset++] << 24 | (in[offset++] & 0xFF) << 16 | (in[offset++] & 0xFF) << 8 | (in[off... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java |
for (r = 60; r < 80; r++) | for (r = 60; r < 80; r++) | sha(int hh0, int hh1, int hh2, int hh3, int hh4, byte[] in, int offset) { int A = hh0; int B = hh1; int C = hh2; int D = hh3; int E = hh4; int r, T; for (r = 0; r < 16; r++) { w[r] = in[offset++] << 24 | (in[offset++] & 0xFF) << 16 | (in[offset++] & 0xFF) << 8 | (in[off... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java |
sha(int hh0, int hh1, int hh2, int hh3, int hh4, byte[] in, int offset) { int A = hh0; int B = hh1; int C = hh2; int D = hh3; int E = hh4; int r, T; for (r = 0; r < 16; r++) { w[r] = in[offset++] << 24 | (in[offset++] & 0xFF) << 16 | (in[offset++] & 0xFF) << 8 | (in[off... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java | ||
protected void transform(byte[] in, int offset) { // int i, T; // for (i = 0; i < 16; i++) { // W[i] = in[offset++] << 24 | // (in[offset++] & 0xFF) << 16 | // (in[offset++] & 0xFF) << 8 | // (in[offset++] & 0xFF); // } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java | ||
protected void transform(byte[] in, int offset) { // int i, T; // for (i = 0; i < 16; i++) { // W[i] = in[offset++] << 24 | // (in[offset++] & 0xFF) << 16 | // (in[offset++] & 0xFF) << 8 | // (in[offset++] & 0xFF); // } ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2b9abb5a0b9bbcfe80809713d541a098ef473321/Sha160.java/clean/core/src/classpath/gnu/gnu/java/security/hash/Sha160.java | ||
super("The type, " + arg + ", is invalid for the conversion character, " + c + "."); if (arg == null) throw new NullPointerException("The supplied type was null."); | public IllegalFormatConversionException(char c, Class<?> arg) { this.c = c; this.arg = arg; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63ff6161906dfae5c6cd8e9ab83aca650e00923d/IllegalFormatConversionException.java/buggy/core/src/classpath/5.0/java/util/IllegalFormatConversionException.java | |
cellEditor = createDefaultCellEditor(); | public void installUI(JComponent c) { super.installUI(c); installDefaults((JTree) c); tree = (JTree) c; cellEditor = createDefaultCellEditor(); currentCellRenderer = createDefaultCellRenderer(); rendererPane = createCellRendererPane(); createdRenderer = true; createdCellEditor = true; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
public void installUI(JComponent c) { super.installUI(c); installDefaults((JTree) c); tree = (JTree) c; cellEditor = createDefaultCellEditor(); currentCellRenderer = createDefaultCellRenderer(); rendererPane = createCellRendererPane(); createdRenderer = true; createdCellEditor = true; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | ||
installListeners(); | public void installUI(JComponent c) { super.installUI(c); installDefaults((JTree) c); tree = (JTree) c; cellEditor = createDefaultCellEditor(); currentCellRenderer = createDefaultCellRenderer(); rendererPane = createCellRendererPane(); createdRenderer = true; createdCellEditor = true; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
installListeners(); | public void installUI(JComponent c) { super.installUI(c); installDefaults((JTree) c); tree = (JTree) c; cellEditor = createDefaultCellEditor(); currentCellRenderer = createDefaultCellRenderer(); rendererPane = createCellRendererPane(); createdRenderer = true; createdCellEditor = true; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
return new DefaultTreeCellEditor(tree, (DefaultTreeCellRenderer) currentCellRenderer, cellEditor); | return new DefaultTreeCellEditor(tree, (DefaultTreeCellRenderer) currentCellRenderer, cellEditor); | protected TreeCellEditor createDefaultCellEditor() { if (currentCellRenderer != null) return new DefaultTreeCellEditor(tree, (DefaultTreeCellRenderer) currentCellRenderer, cellEditor); return new DefaultTreeCellEditor(tree, (DefaultT... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
createdCellEditor = true; | protected void setCellEditor(TreeCellEditor editor) { cellEditor = editor; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
} | UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap) defaults.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMap(); action = new TreeAction(); Object keys[] = focusInputMap.allKeys(); for (int i = 0... | protected void installKeyboardActions() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
public abstract void addTreeModelListener(TreeModelListener listener); | void addTreeModelListener(TreeModelListener listener); | public abstract void addTreeModelListener(TreeModelListener listener); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/TreeModel.java/buggy/core/src/classpath/javax/javax/swing/tree/TreeModel.java |
public abstract Object getRoot(); | Object getRoot(); | public abstract Object getRoot(); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/TreeModel.java/buggy/core/src/classpath/javax/javax/swing/tree/TreeModel.java |
public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; TreeModel mod = tree.getModel(); if (mod != null) { Object root = mod.getRoot(); if (!tree.isRootVisible()) tree.expandPath(new TreePath(root)); paintRecursive(g, 0, 0, 0, 0, tree, mod, root); if ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | ||
public abstract void removeTreeModelListener(TreeModelListener listener); | void removeTreeModelListener(TreeModelListener listener); | public abstract void removeTreeModelListener(TreeModelListener listener); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/TreeModel.java/buggy/core/src/classpath/javax/javax/swing/tree/TreeModel.java |
String range = p.hostport.substring(hostport.indexOf(":") + 1); if (range.startsWith("-")) | String range = p.hostport.substring(p.hostport.indexOf(":") + 1); if (range.startsWith("-")) | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/81f93458eadd81c3eef34cb154b1ce3098473f64/SocketPermission.java/clean/core/src/classpath/java/java/net/SocketPermission.java |
if (ourhost.equals("*")) return true; | public boolean implies(Permission perm) { SocketPermission p; // First make sure we are the right object type if (perm instanceof SocketPermission) p = (SocketPermission) perm; else return false; // Next check the actions String ourlist = getActions(); String theirlist = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/81f93458eadd81c3eef34cb154b1ce3098473f64/SocketPermission.java/clean/core/src/classpath/java/java/net/SocketPermission.java | |
public Image() { | public Image() { | public Image() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Image.java/buggy/core/src/classpath/java/java/awt/Image.java |
public Image getScaledInstance(int width, int height, int flags) { | public Image getScaledInstance(int width, int height, int flags) { switch (flags) { case SCALE_DEFAULT: case SCALE_FAST: case SCALE_REPLICATE: ImageProducer producer = new FilteredImageSource(this.getSource(), new ReplicateScaleFilter(width, height)); return Toolkit.getDefaultToolkit().createImage(producer); case SCALE... | public Image getScaledInstance(int width, int height, int flags) { throw new Error("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Image.java/buggy/core/src/classpath/java/java/awt/Image.java |
} | public Image getScaledInstance(int width, int height, int flags) { throw new Error("not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Image.java/buggy/core/src/classpath/java/java/awt/Image.java | |
g.drawLine(1, 1, 1, h - 1); g.drawLine(1, 1, w - 1, 1); | g.drawLine(1, 1, 1, h - 2); g.drawLine(1, 1, w - 3, 1); | private void paintNorthBorderFreeStanding(Graphics g, int w, int h) { if (isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(0, 0, w - 2, 0); g.drawLine(0, 0, 0, h - 1); g.drawLine(2, h - 1, w - 2, h - 1); g.drawLine(w - 2, 2, w - 2, h - 1); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/MetalScrollButton.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalScrollButton.java |
g.drawLine(w - 1, 1, w - 1, 1); | g.drawLine(w - 2, 1, w - 2, 1); | private void paintNorthBorderFreeStanding(Graphics g, int w, int h) { if (isEnabled()) { g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(0, 0, w - 2, 0); g.drawLine(0, 0, 0, h - 1); g.drawLine(2, h - 1, w - 2, h - 1); g.drawLine(w - 2, 2, w - 2, h - 1); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8397a50584c8229313d0dcf97d7921aebd302659/MetalScrollButton.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalScrollButton.java |
if (layerNum == layer) | if (layerNum.intValue() == layer.intValue()) | protected int[] layerToRange (Integer layer) { int[] ret = new int[2]; ret[1] = getComponents ().length; Iterator i = layers.entrySet ().iterator (); while (i.hasNext()) { Map.Entry pair = (Map.Entry) i.next(); Integer layerNum = (Integer) pair.getKey (); Integer layerSz = (Integ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/JLayeredPane.java/clean/core/src/classpath/javax/javax/swing/JLayeredPane.java |
int targ = top + position; | int targ = Math.min(top + position, bot-1); | public void setPosition(Component c, int position) { Integer layer = getLayer (c); int[] range = layerToRange (layer); if (range[0] == range[1]) throw new IllegalArgumentException (); int top = range[0]; int bot = range[1]; if (position == -1) position = (bot - top) - 1; int targ = top +... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/JLayeredPane.java/clean/core/src/classpath/javax/javax/swing/JLayeredPane.java |
"EditorPane.border", new BorderUIResource(BasicBorders.getMarginBorder()), | "EditorPane.border", BasicBorders.getMarginBorder(), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/BasicLookAndFeel.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java |
"MenuItem.checkIcon", BasicIconFactory.getMenuItemCheckIcon(), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/BasicLookAndFeel.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java | |
"TextArea.font", new FontUIResource("Monospaced", Font.PLAIN, 12), | "TextArea.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/BasicLookAndFeel.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java |
"TextPane.border", new BorderUIResource(BasicBorders.getMarginBorder()), | "TextPane.border", BasicBorders.getMarginBorder(), | protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractU... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/BasicLookAndFeel.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLookAndFeel.java |
protected void doResolve(AbstractVmClassLoader clc) { | protected void doResolve(VmClassLoader clc) { | protected void doResolve(AbstractVmClassLoader clc) { getConstClass().resolve(clc); doResolveMember(clc); cachedHashCode = VmMember.calcHashCode(getName(), getSignature()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/VmConstMemberRef.java/buggy/core/src/core/org/jnode/vm/classmgr/VmConstMemberRef.java |
protected abstract void doResolve(AbstractVmClassLoader clc); | protected abstract void doResolve(VmClassLoader clc); | protected abstract void doResolve(AbstractVmClassLoader clc); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/VmConstObject.java/buggy/core/src/core/org/jnode/vm/classmgr/VmConstObject.java |
protected AccessibleJFileChooser(JFileChooser component) { super(component); } | protected AccessibleJFileChooser() { } | protected AccessibleJFileChooser(JFileChooser component) { super(component); // TODO } // AccessibleJFileChooser() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java |
public AccessibleRole getAccessibleRole() { | public AccessibleRole getAccessibleRole() { | public AccessibleRole getAccessibleRole() { return AccessibleRole.FILE_CHOOSER; } // getAccessibleRole() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java |
} | } | public AccessibleRole getAccessibleRole() { return AccessibleRole.FILE_CHOOSER; } // getAccessibleRole() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJFileChooser(this); } return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJFileChooser(); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJFileChooser(this); } // if return accessibleContext; } // getAccessibleContext() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java |
FSEntry entry = (FSEntry)iterator.next(); | FSEntry entry = iterator.next(); | public FSEntry getEntry(String name) throws IOException{ //parse the directory and search for the file FSEntryIterator iterator=iterator(); while(iterator.hasNext()) { FSEntry entry = (FSEntry)iterator.next(); if(entry.getName().equals(name)) return entry; } return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e9ff460e33c877c62d34001d7739d8c9b59345f3/Ext2Directory.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2Directory.java |
synchronized(iNode) { if(len+off>getLength()) throw new IOException("Can't read past the file!"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); long bytesRead=0; while( bytesRead < len ) { long blockNr = (fileOffset+bytesRead) / blockSize; long blockOffset = (fileOffset+bytesRead) % blockSize; long copyLen... | synchronized(iNode) { try{ if(len+off>getLength()) throw new IOException("Can't read past the file!"); long blockSize = iNode.getExt2FileSystem().getBlockSize(); long bytesRead=0; while( bytesRead < len ) { long blockNr = (fileOffset+bytesRead) / blockSize; long blockOffset = (fileOffset+bytesRead) % blockSize; long co... | public void read(long fileOffset, byte[] dest, int off, int len) throws IOException { //a single inode may be represented by more than one Ext2Directory instances, //but each will use the same instance of the underlying inode (see Ext2FileSystem.getINode()), //so synchronize to the inode synchronized(iNode) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bca7c2e0848f3672930b39223f626f4996c1b295/Ext2File.java/buggy/fs/src/fs/org/jnode/fs/ext2/Ext2File.java |
if (expr instanceof Selector) { Selector selector = (Selector) expr; Test[] tests = selector.getTests(); if (tests.length > 0) return tests[0]; } | Test getNodeTest(Expr expr) { if (expr instanceof Selector) { Selector selector = (Selector) expr; Test[] tests = selector.getTests(); if (tests.length > 0) return tests[0]; } return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e661cf1a3762c80fbf5e790baa87062e03571f13/Template.java/buggy/core/src/classpath/gnu/gnu/xml/transform/Template.java | |
public JIFSDirectory(String name) { this(); label = name; | public JIFSDirectory() { entries = new HashMap<String, FSEntry>(); | public JIFSDirectory(String name) { this(); label = name; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e5505d095f94ca14d04baf2d34709714253640/JIFSDirectory.java/clean/fs/src/fs/org/jnode/fs/jifs/JIFSDirectory.java |
return 0; | return System.currentTimeMillis(); | public long getLastModified() { return 0; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e5505d095f94ca14d04baf2d34709714253640/JIFSDirectory.java/clean/fs/src/fs/org/jnode/fs/jifs/JIFSDirectory.java |
int sumDelta = 0; | long sumDelta = 0; | private static void adjustGreater(int allocated, SizeRequirements[] children, int[] spans, int span) { // Sum up (maxSize - prefSize) over all children int sumDelta = 0; for (int i = 0; i < children.length; i++) { sumDelta += children[i].maximum - children[i].pre... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/SizeRequirements.java/clean/core/src/classpath/javax/javax/swing/SizeRequirements.java |
if (sumDelta < 0) sumDelta = Integer.MAX_VALUE; | private static void adjustGreater(int allocated, SizeRequirements[] children, int[] spans, int span) { // Sum up (maxSize - prefSize) over all children int sumDelta = 0; for (int i = 0; i < children.length; i++) { sumDelta += children[i].maximum - children[i].pre... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/SizeRequirements.java/clean/core/src/classpath/javax/javax/swing/SizeRequirements.java | |
spans[i] -= factor * (span - allocated); | spans[i] += factor * (allocated - span); | private static void adjustGreater(int allocated, SizeRequirements[] children, int[] spans, int span) { // Sum up (maxSize - prefSize) over all children int sumDelta = 0; for (int i = 0; i < children.length; i++) { sumDelta += children[i].maximum - children[i].pre... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/SizeRequirements.java/clean/core/src/classpath/javax/javax/swing/SizeRequirements.java |
SizeRequirements result = new SizeRequirements(); | long minimum = 0; long preferred = 0; long maximum = 0; | getTiledSizeRequirements(SizeRequirements[] children) { SizeRequirements result = new SizeRequirements(); for (int i = 0; i < children.length; i++) { result.minimum += children[i].minimum; result.preferred += children[i].preferred; result.maximum += children[i].maximum; } retu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/SizeRequirements.java/clean/core/src/classpath/javax/javax/swing/SizeRequirements.java |
result.minimum += children[i].minimum; result.preferred += children[i].preferred; result.maximum += children[i].maximum; | minimum += children[i].minimum; preferred += children[i].preferred; maximum += children[i].maximum; | getTiledSizeRequirements(SizeRequirements[] children) { SizeRequirements result = new SizeRequirements(); for (int i = 0; i < children.length; i++) { result.minimum += children[i].minimum; result.preferred += children[i].preferred; result.maximum += children[i].maximum; } retu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/SizeRequirements.java/clean/core/src/classpath/javax/javax/swing/SizeRequirements.java |
if (minimum > Integer.MAX_VALUE) minimum = Integer.MAX_VALUE; if (preferred > Integer.MAX_VALUE) preferred = Integer.MAX_VALUE; if (maximum > Integer.MAX_VALUE) maximum = Integer.MAX_VALUE; SizeRequirements result = new SizeRequirements((int) minimum, (int) preferred, (int) maximum, 0.5F); | getTiledSizeRequirements(SizeRequirements[] children) { SizeRequirements result = new SizeRequirements(); for (int i = 0; i < children.length; i++) { result.minimum += children[i].minimum; result.preferred += children[i].preferred; result.maximum += children[i].maximum; } retu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/SizeRequirements.java/clean/core/src/classpath/javax/javax/swing/SizeRequirements.java | |
private final boolean expect (String source, ParsePosition pos, char ch) | private boolean expect(String source, ParsePosition pos, char ch) | private final boolean expect (String source, ParsePosition pos, char ch) { int x = pos.getIndex(); boolean r = x < source.length() && source.charAt(x) == ch; if (r) pos.setIndex(x + 1); else pos.setErrorIndex(x); return r; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/SimpleDateFormat.java/clean/core/src/classpath/java/java/text/SimpleDateFormat.java |
final private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) | final private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (ite... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/65d557aae3161ec60d4823f7f7346efac0a8d663/SimpleDateFormat.java/clean/core/src/classpath/java/java/text/SimpleDateFormat.java |
public boolean equals (Object obj) | private static boolean equals (Object x, Object y) | public boolean equals (Object obj) { if (! (obj instanceof DateFormatSymbols)) return false; DateFormatSymbols other = (DateFormatSymbols) obj; return (equals(ampms, other.ampms) && equals(eras, other.eras) && equals(localPatternChars, other.localPatternChars) && equals(months, other.months... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/DateFormatSymbols.java/buggy/core/src/classpath/java/java/text/DateFormatSymbols.java |
if (! (obj instanceof DateFormatSymbols)) | if (x == y) return true; if (x == null || y == null) | public boolean equals (Object obj) { if (! (obj instanceof DateFormatSymbols)) return false; DateFormatSymbols other = (DateFormatSymbols) obj; return (equals(ampms, other.ampms) && equals(eras, other.eras) && equals(localPatternChars, other.localPatternChars) && equals(months, other.months... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/DateFormatSymbols.java/buggy/core/src/classpath/java/java/text/DateFormatSymbols.java |
DateFormatSymbols other = (DateFormatSymbols) obj; return (equals(ampms, other.ampms) && equals(eras, other.eras) && equals(localPatternChars, other.localPatternChars) && equals(months, other.months) && equals(shortMonths, other.shortMonths) && equals(shortWeekdays, other.shortWeekdays) && equals(weekdays, other.weekda... | if (! (x instanceof Object[]) || ! (y instanceof Object[])) return x.equals(y); Object[] xa = (Object[]) x; Object[] ya = (Object[]) y; if (xa.length != ya.length) return false; for (int i = xa.length; --i >= 0; ) { if (! equals(xa[i], ya[i])) return false; } return true; | public boolean equals (Object obj) { if (! (obj instanceof DateFormatSymbols)) return false; DateFormatSymbols other = (DateFormatSymbols) obj; return (equals(ampms, other.ampms) && equals(eras, other.eras) && equals(localPatternChars, other.localPatternChars) && equals(months, other.months... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/DateFormatSymbols.java/buggy/core/src/classpath/java/java/text/DateFormatSymbols.java |
public final String getDisplayName(boolean dst, int style) { return (getDisplayName(dst, style, Locale.getDefault())); | public final String getDisplayName() { return (getDisplayName(false, LONG, Locale.getDefault())); | public final String getDisplayName(boolean dst, int style) { return (getDisplayName(dst, style, Locale.getDefault())); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/16fc961d6a1c0f937611cc07e3cd784246a0a769/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java |
public int hashCode () | private static int hashCode (Object x) | public int hashCode () { return (hashCode(ampms) ^ hashCode(eras) ^ hashCode(localPatternChars) ^ hashCode(months) ^ hashCode(shortMonths) ^ hashCode(shortWeekdays) ^ hashCode(weekdays) ^ hashCode(zoneStrings)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/DateFormatSymbols.java/buggy/core/src/classpath/java/java/text/DateFormatSymbols.java |
return (hashCode(ampms) ^ hashCode(eras) ^ hashCode(localPatternChars) ^ hashCode(months) ^ hashCode(shortMonths) ^ hashCode(shortWeekdays) ^ hashCode(weekdays) ^ hashCode(zoneStrings)); | if (x == null) return 0; if (! (x instanceof Object[])) return x.hashCode(); Object[] xa = (Object[]) x; int hash = 0; for (int i = 0; i < xa.length; i++) hash = 37 * hashCode(xa[i]); return hash; | public int hashCode () { return (hashCode(ampms) ^ hashCode(eras) ^ hashCode(localPatternChars) ^ hashCode(months) ^ hashCode(shortMonths) ^ hashCode(shortWeekdays) ^ hashCode(weekdays) ^ hashCode(zoneStrings)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/DateFormatSymbols.java/buggy/core/src/classpath/java/java/text/DateFormatSymbols.java |
public abstract Date parse (String source, ParsePosition pos); | public Date parse (String source) throws ParseException { ParsePosition pos = new ParsePosition(0); Date result = parse (source, pos); if (result == null) { int index = pos.getErrorIndex(); if (index < 0) index = pos.getIndex(); throw new ParseException("invalid Date syntax in \"" + source + '\"', index); } return resu... | public abstract Date parse (String source, ParsePosition pos); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DateFormat.java/buggy/core/src/classpath/java/java/text/DateFormat.java |
for(int i = 0; i < components.length; i++) | Component lastComp = null; int cellx = 0; int celly = 0; int cellw = 0; int cellh = 0; for (int i = 0; i < components.length; i++) | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; // DEBUG //dumpLayoutInfo ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e93a3d254e0493fb3bd08b7a947349f11dd622ae/GridBagLayout.java/buggy/core/src/classpath/java/java/awt/GridBagLayout.java |
Component component = components [i]; | Component component = components[i]; | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; // DEBUG //dumpLayoutInfo ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e93a3d254e0493fb3bd08b7a947349f11dd622ae/GridBagLayout.java/buggy/core/src/classpath/java/java/awt/GridBagLayout.java |
if (!component.isVisible()) | if (! component.isVisible()) | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; // DEBUG //dumpLayoutInfo ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e93a3d254e0493fb3bd08b7a947349f11dd622ae/GridBagLayout.java/buggy/core/src/classpath/java/java/awt/GridBagLayout.java |
GridBagConstraints constraints = lookupInternalConstraints(component); | Dimension dim = component.getPreferredSize(); GridBagConstraints constraints = lookupInternalConstraints(component); if (lastComp != null && constraints.gridheight == GridBagConstraints.REMAINDER) celly += cellh; else celly = sumIntArray(info.rowHeights, constraints.gridy); if (lastComp != null && constraints.gridwid... | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; // DEBUG //dumpLayoutInfo ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e93a3d254e0493fb3bd08b7a947349f11dd622ae/GridBagLayout.java/buggy/core/src/classpath/java/java/awt/GridBagLayout.java |
int cellx = sumIntArray(info.colWidths, constraints.gridx); int celly = sumIntArray(info.rowHeights, constraints.gridy); int cellw = sumIntArray(info.colWidths, constraints.gridx + constraints.gridwidth) - cellx; int cellh = sumIntArray(info.rowHeights, constraints.gridy + constraints.gridheight) - celly; | cellw = sumIntArray(info.colWidths, constraints.gridx + constraints.gridwidth) - cellx; cellh = sumIntArray(info.rowHeights, constraints.gridy + constraints.gridheight) - celly; | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; // DEBUG //dumpLayoutInfo ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e93a3d254e0493fb3bd08b7a947349f11dd622ae/GridBagLayout.java/buggy/core/src/classpath/java/java/awt/GridBagLayout.java |
Dimension dim = component.getPreferredSize(); | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; // DEBUG //dumpLayoutInfo ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e93a3d254e0493fb3bd08b7a947349f11dd622ae/GridBagLayout.java/buggy/core/src/classpath/java/java/awt/GridBagLayout.java | |
switch(constraints.fill) | switch (constraints.fill) | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; // DEBUG //dumpLayoutInfo ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e93a3d254e0493fb3bd08b7a947349f11dd622ae/GridBagLayout.java/buggy/core/src/classpath/java/java/awt/GridBagLayout.java |
int x; int y; | int x = 0; int y = 0; | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; // DEBUG //dumpLayoutInfo ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e93a3d254e0493fb3bd08b7a947349f11dd622ae/GridBagLayout.java/buggy/core/src/classpath/java/java/awt/GridBagLayout.java |
switch(constraints.anchor) | switch (constraints.anchor) | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; // DEBUG //dumpLayoutInfo ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e93a3d254e0493fb3bd08b7a947349f11dd622ae/GridBagLayout.java/buggy/core/src/classpath/java/java/awt/GridBagLayout.java |
component.setBounds(info.pos_x + x, info.pos_y + y, dim.width, dim.height); | component.setBounds(info.pos_x + x, info.pos_y + y, dim.width, dim.height); lastComp = component; | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; // DEBUG //dumpLayoutInfo ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e93a3d254e0493fb3bd08b7a947349f11dd622ae/GridBagLayout.java/buggy/core/src/classpath/java/java/awt/GridBagLayout.java |
protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; // DEBUG //dumpLayoutInfo ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e93a3d254e0493fb3bd08b7a947349f11dd622ae/GridBagLayout.java/buggy/core/src/classpath/java/java/awt/GridBagLayout.java | ||
layoutInfo = getLayoutInfo (parent, PREFERREDSIZE); | layoutInfo = getLayoutInfo(parent, PREFERREDSIZE); | protected void ArrangeGrid (Container parent) { Component[] components = parent.getComponents(); if (components.length == 0) return; GridBagLayoutInfo info = getLayoutInfo (parent, PREFERREDSIZE); if (info.cols == 0 && info.rows == 0) return; // DEBUG //dumpLayoutInfo ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e93a3d254e0493fb3bd08b7a947349f11dd622ae/GridBagLayout.java/buggy/core/src/classpath/java/java/awt/GridBagLayout.java |
protected GridBagLayoutInfo GetLayoutInfo (Container parent, int sizeflag) { if (sizeflag != MINSIZE && sizeflag != PREFERREDSIZE) throw new IllegalArgumentException(); Dimension parentDim = parent.getSize (); Insets parentInsets = parent.getInsets (); parentDim.width -= parentInsets.l... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e93a3d254e0493fb3bd08b7a947349f11dd622ae/GridBagLayout.java/buggy/core/src/classpath/java/java/awt/GridBagLayout.java | ||
protected GridBagLayoutInfo GetLayoutInfo (Container parent, int sizeflag) { if (sizeflag != MINSIZE && sizeflag != PREFERREDSIZE) throw new IllegalArgumentException(); Dimension parentDim = parent.getSize (); Insets parentInsets = parent.getInsets (); parentDim.width -= parentInsets.l... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e93a3d254e0493fb3bd08b7a947349f11dd622ae/GridBagLayout.java/buggy/core/src/classpath/java/java/awt/GridBagLayout.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.