rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
return true; } | while (--i >= 0) if (toBeFound[i] != array[i + j]) return false; return true; } | public static final boolean endsWith(char[] array, char[] toBeFound) { int i = toBeFound.length; int j = array.length - i; if (j < 0) return false; while (--i >= 0) if (toBeFound[i] != array[i + j]) return false; return true;} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
public static final boolean fragmentEquals( char[] fragment, char[] name, int startIndex, boolean isCaseSensitive) { | public static final boolean fragmentEquals(char[] fragment, char[] name, int startIndex, boolean isCaseSensitive) { | public static final boolean fragmentEquals( char[] fragment, char[] name, int startIndex, boolean isCaseSensitive) { int max = fragment.length; if (name.length < max + startIndex) return false; if (isCaseSensitive) { for (int i = max; --i >= 0; ) // assumes the prefix is not larger than the name if (fragment[i]... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
int max = fragment.length; if (name.length < max + startIndex) return false; if (isCaseSensitive) { for (int i = max; --i >= 0; ) if (fragment[i] != name[i + startIndex]) | int max = fragment.length; if (name.length < max + startIndex) return false; if (isCaseSensitive) { for (int i = max; --i >= 0;) if (fragment[i] != name[i + startIndex]) return false; return true; } for (int i = max; --i >= 0;) if (Character.toLowerCase(fragment[i]) != Character .toLowerCase(name[i + startIndex])) | public static final boolean fragmentEquals( char[] fragment, char[] name, int startIndex, boolean isCaseSensitive) { int max = fragment.length; if (name.length < max + startIndex) return false; if (isCaseSensitive) { for (int i = max; --i >= 0; ) // assumes the prefix is not larger than the name if (fragment[i]... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
for (int i = max; --i >= 0; ) if (Character.toLowerCase(fragment[i]) != Character.toLowerCase(name[i + startIndex])) return false; return true; } | public static final boolean fragmentEquals( char[] fragment, char[] name, int startIndex, boolean isCaseSensitive) { int max = fragment.length; if (name.length < max + startIndex) return false; if (isCaseSensitive) { for (int i = max; --i >= 0; ) // assumes the prefix is not larger than the name if (fragment[i]... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java | |
int length = array.length; int hash = length == 0 ? 31 : array[0]; if (length < 8) { for (int i = length; --i > 0;) hash = (hash * 31) + array[i]; } else { for (int i = length - 1, last = i > 16 ? i - 16 : 0; i > last; i -= 2) hash = (hash * 31) + array[i]; | int length = array.length; int hash = length == 0 ? 31 : array[0]; if (length < 8) { for (int i = length; --i > 0;) hash = (hash * 31) + array[i]; } else { for (int i = length - 1, last = i > 16 ? i - 16 : 0; i > last; i -= 2) hash = (hash * 31) + array[i]; } return hash & 0x7FFFFFFF; | public static final int hashCode(char[] array) { int length = array.length; int hash = length == 0 ? 31 : array[0]; if (length < 8) { for (int i = length; --i > 0;) hash = (hash * 31) + array[i]; } else { // 8 characters is enough to compute a decent hash code, don't waste time examining every character for (int i... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
return hash & 0x7FFFFFFF; } | public static final int hashCode(char[] array) { int length = array.length; int hash = length == 0 ? 31 : array[0]; if (length < 8) { for (int i = length; --i > 0;) hash = (hash * 31) + array[i]; } else { // 8 characters is enough to compute a decent hash code, don't waste time examining every character for (int i... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java | |
return indexOf(toBeFound, array, 0); } | return indexOf(toBeFound, array, 0); } | public static final int indexOf(char toBeFound, char[] array) { return indexOf(toBeFound, array, 0);} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
return Character.isWhitespace(c); } | return Character.isWhitespace(c); } | public static boolean isWhitespace(char c) { return Character.isWhitespace(c);} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
for (int i = array.length; --i >= 0;) if (toBeFound == array[i]) return i; return -1; } | for (int i = array.length; --i >= 0;) if (toBeFound == array[i]) return i; return -1; } | public static final int lastIndexOf(char toBeFound, char[] array) { for (int i = array.length; --i >= 0;) if (toBeFound == array[i]) return i; return -1;} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
int pos = lastIndexOf(separator, array); if (pos < 0) return array; return subarray(array, pos + 1, array.length); } | int pos = lastIndexOf(separator, array); if (pos < 0) return array; return subarray(array, pos + 1, array.length); } | final static public char[] lastSegment(char[] array, char separator) { int pos = lastIndexOf(separator, array); if (pos < 0) return array; return subarray(array, pos + 1, array.length);} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
int count = 0; for (int i = 0; i < array.length; i++) if (toBeFound == array[i]) count++; return count; } | int count = 0; for (int i = 0; i < array.length; i++) if (toBeFound == array[i]) count++; return count; } | public static final int occurencesOf(char toBeFound, char[] array) { int count = 0; for (int i = 0; i < array.length; i++) if (toBeFound == array[i]) count++; return count;} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
public static final boolean pathMatch( char[] pattern, char[] filepath, boolean isCaseSensitive, char pathSeparator) { | public static final boolean pathMatch(char[] pattern, char[] filepath, boolean isCaseSensitive, char pathSeparator) { | public static final boolean pathMatch( char[] pattern, char[] filepath, boolean isCaseSensitive, char pathSeparator) { if (filepath == null) return false; // null name cannot match if (pattern == null) return true; // null pattern is equivalent to '*' // offsets inside pattern int pSegmentStart = pattern[0] == pathSe... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
if (filepath == null) return false; if (pattern == null) return true; | if (filepath == null) return false; if (pattern == null) return true; | public static final boolean pathMatch( char[] pattern, char[] filepath, boolean isCaseSensitive, char pathSeparator) { if (filepath == null) return false; // null name cannot match if (pattern == null) return true; // null pattern is equivalent to '*' // offsets inside pattern int pSegmentStart = pattern[0] == pathSe... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
int pSegmentStart = pattern[0] == pathSeparator ? 1 : 0; int pLength = pattern.length; int pSegmentEnd = CharOperation.indexOf(pathSeparator, pattern, pSegmentStart+1); if (pSegmentEnd < 0) pSegmentEnd = pLength; boolean freeTrailingDoubleStar = pattern[pLength - 1] == pathSeparator; int fSegmentStart, fLength = f... | int pSegmentStart = pattern[0] == pathSeparator ? 1 : 0; int pLength = pattern.length; int pSegmentEnd = CharOperation.indexOf(pathSeparator, pattern, pSegmentStart + 1); | public static final boolean pathMatch( char[] pattern, char[] filepath, boolean isCaseSensitive, char pathSeparator) { if (filepath == null) return false; // null name cannot match if (pattern == null) return true; // null pattern is equivalent to '*' // offsets inside pattern int pSegmentStart = pattern[0] == pathSe... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
fSegmentEnd = CharOperation.indexOf( pathSeparator, filepath, fSegmentStart = fSegmentEnd + 1); if (fSegmentEnd < 0) fSegmentEnd = fLength; } | boolean freeTrailingDoubleStar = pattern[pLength - 1] == pathSeparator; | public static final boolean pathMatch( char[] pattern, char[] filepath, boolean isCaseSensitive, char pathSeparator) { if (filepath == null) return false; // null name cannot match if (pattern == null) return true; // null pattern is equivalent to '*' // offsets inside pattern int pSegmentStart = pattern[0] == pathSe... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
/* check sequence of doubleStar+segment */ int pSegmentRestart; if ((pSegmentStart >= pLength && freeTrailingDoubleStar) || (pSegmentEnd == pSegmentStart + 2 && pattern[pSegmentStart] == '*' && pattern[pSegmentStart + 1] == '*')) { pSegmentEnd = CharOperation.indexOf( pathSeparator, pattern, pSegmentStart = pSegmentEnd... | int fSegmentStart, fLength = filepath.length; if (filepath[0] != pathSeparator) { fSegmentStart = 0; } else { fSegmentStart = 1; | public static final boolean pathMatch( char[] pattern, char[] filepath, boolean isCaseSensitive, char pathSeparator) { if (filepath == null) return false; // null name cannot match if (pattern == null) return true; // null pattern is equivalent to '*' // offsets inside pattern int pSegmentStart = pattern[0] == pathSe... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
/* path segment is ending */ if (pSegmentEnd == pSegmentStart + 2 && pattern[pSegmentStart] == '*' && pattern[pSegmentStart + 1] == '*') { pSegmentEnd = CharOperation.indexOf(pathSeparator, pattern, pSegmentStart = pSegmentEnd + 1); if (pSegmentEnd < 0) pSegmentEnd = pLength; pSegmentRestart = pSegmentStart; fSegment... | if (fSegmentStart != pSegmentStart) { return false; | public static final boolean pathMatch( char[] pattern, char[] filepath, boolean isCaseSensitive, char pathSeparator) { if (filepath == null) return false; // null name cannot match if (pattern == null) return true; // null pattern is equivalent to '*' // offsets inside pattern int pSegmentStart = pattern[0] == pathSe... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
/* chech current path segment */ if (!CharOperation.match( pattern, pSegmentStart, pSegmentEnd, filepath, fSegmentStart, fSegmentEnd, isCaseSensitive)) { pSegmentEnd = CharOperation.indexOf(pathSeparator, pattern, pSegmentStart = pSegmentRestart); if (pSegmentEnd < 0) pSegmentEnd = pLength; fSegmentRestart = CharOper... | int fSegmentEnd = CharOperation.indexOf(pathSeparator, filepath, fSegmentStart + 1); | public static final boolean pathMatch( char[] pattern, char[] filepath, boolean isCaseSensitive, char pathSeparator) { if (filepath == null) return false; // null name cannot match if (pattern == null) return true; // null pattern is equivalent to '*' // offsets inside pattern int pSegmentStart = pattern[0] == pathSe... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
return (pSegmentRestart >= pSegmentEnd) || (fSegmentStart >= fLength && pSegmentStart >= pLength) || (pSegmentStart == pLength - 2 && pattern[pSegmentStart] == '*' && pattern[pSegmentStart + 1] == '*') || (pSegmentStart == pLength && freeTrailingDoubleStar); } | public static final boolean pathMatch( char[] pattern, char[] filepath, boolean isCaseSensitive, char pathSeparator) { if (filepath == null) return false; // null name cannot match if (pattern == null) return true; // null pattern is equivalent to '*' // offsets inside pattern int pSegmentStart = pattern[0] == pathSe... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java | |
if (array == null) return null; int length = array.length; if (length == 0) return array; char[] result = null; int count = 0; for (int i = 0; i < length; i++) { char c = array[i]; if (c == toBeRemoved) { if (result == null) { result = new char[length]; System.arraycopy(array, 0, result, 0, i); count = i; | if (array == null) return null; int length = array.length; if (length == 0) return array; char[] result = null; int count = 0; for (int i = 0; i < length; i++) { char c = array[i]; if (c == toBeRemoved) { if (result == null) { result = new char[length]; System.arraycopy(array, 0, result, 0, i); count = i; } } else if (... | public static final char[] remove(char[] array, char toBeRemoved) { if (array == null) return null; int length = array.length; if (length == 0) return array; char[] result = null; int count = 0; for (int i = 0; i < length; i++) { char c = array[i]; if (c == toBeRemoved) { if (result == null) { result = new char[... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
} else if (result != null) { result[count++] = c; | public static final char[] remove(char[] array, char toBeRemoved) { if (array == null) return null; int length = array.length; if (length == 0) return array; char[] result = null; int count = 0; for (int i = 0; i < length; i++) { char c = array[i]; if (c == toBeRemoved) { if (result == null) { result = new char[... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java | |
if (result == null) return array; System.arraycopy(result, 0, result = new char[count], 0, count); return result; } | public static final char[] remove(char[] array, char toBeRemoved) { if (array == null) return null; int length = array.length; if (length == 0) return array; char[] result = null; int count = 0; for (int i = 0; i < length; i++) { char c = array[i]; if (c == toBeRemoved) { if (result == null) { result = new char[... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java | |
public static final void replace( char[] array, char toBeReplaced, char replacementChar) { if (toBeReplaced != replacementChar) { for (int i = 0, max = array.length; i < max; i++) { if (array[i] == toBeReplaced) array[i] = replacementChar; | public static final void replace(char[] array, char toBeReplaced, char replacementChar) { if (toBeReplaced != replacementChar) { for (int i = 0, max = array.length; i < max; i++) { if (array[i] == toBeReplaced) array[i] = replacementChar; } | public static final void replace( char[] array, char toBeReplaced, char replacementChar) { if (toBeReplaced != replacementChar) { for (int i = 0, max = array.length; i < max; i++) { if (array[i] == toBeReplaced) array[i] = replacementChar; } }} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
} | public static final void replace( char[] array, char toBeReplaced, char replacementChar) { if (toBeReplaced != replacementChar) { for (int i = 0, max = array.length; i < max; i++) { if (array[i] == toBeReplaced) array[i] = replacementChar; } }} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java | |
public static final char[] replaceOnCopy( char[] array, char toBeReplaced, char replacementChar) { char[] result = null; for (int i = 0, length = array.length; i < length; i++) { char c = array[i]; if (c == toBeReplaced) { if (result == null) { result = new char[length]; System.arraycopy(array, 0, result, 0, i); | public static final char[] replaceOnCopy(char[] array, char toBeReplaced, char replacementChar) { char[] result = null; for (int i = 0, length = array.length; i < length; i++) { char c = array[i]; if (c == toBeReplaced) { if (result == null) { result = new char[length]; System.arraycopy(array, 0, result, 0, i); } resu... | public static final char[] replaceOnCopy( char[] array, char toBeReplaced, char replacementChar) { char[] result = null; for (int i = 0, length = array.length; i < length; i++) { char c = array[i]; if (c == toBeReplaced) { if (result == null) { result = new char[length]; System.arraycopy(array, 0, result, 0,... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
result[i] = replacementChar; } else if (result != null) { result[i] = c; | public static final char[] replaceOnCopy( char[] array, char toBeReplaced, char replacementChar) { char[] result = null; for (int i = 0, length = array.length; i < length; i++) { char c = array[i]; if (c == toBeReplaced) { if (result == null) { result = new char[length]; System.arraycopy(array, 0, result, 0,... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java | |
if (result == null) return array; return result; } | public static final char[] replaceOnCopy( char[] array, char toBeReplaced, char replacementChar) { char[] result = null; for (int i = 0, length = array.length; i < length; i++) { char c = array[i]; if (c == toBeReplaced) { if (result == null) { result = new char[length]; System.arraycopy(array, 0, result, 0,... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java | |
int length = array == null ? 0 : array.length; if (length == 0) return NO_CHAR_CHAR; | int length = array == null ? 0 : array.length; if (length == 0) return NO_CHAR_CHAR; | public static final char[][] splitAndTrimOn(char divider, char[] array) { int length = array == null ? 0 : array.length; if (length == 0) return NO_CHAR_CHAR; int wordCount = 1; for (int i = 0; i < length; i++) if (array[i] == divider) wordCount++; char[][] split = new char[wordCount][]; int last = 0, currentWord =... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
int wordCount = 1; for (int i = 0; i < length; i++) if (array[i] == divider) wordCount++; char[][] split = new char[wordCount][]; int last = 0, currentWord = 0; for (int i = 0; i < length; i++) { if (array[i] == divider) { int start = last, end = i - 1; while (start < i && array[start] == ' ') start++; while (end > sta... | int wordCount = 1; for (int i = 0; i < length; i++) if (array[i] == divider) wordCount++; char[][] split = new char[wordCount][]; int last = 0, currentWord = 0; for (int i = 0; i < length; i++) { if (array[i] == divider) { int start = last, end = i - 1; while (start < i && array[start] == ' ') start++; while (end > sta... | public static final char[][] splitAndTrimOn(char divider, char[] array) { int length = array == null ? 0 : array.length; if (length == 0) return NO_CHAR_CHAR; int wordCount = 1; for (int i = 0; i < length; i++) if (array[i] == divider) wordCount++; char[][] split = new char[wordCount][]; int last = 0, currentWord =... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
int start = last, end = length - 1; while (start < length && array[start] == ' ') start++; while (end > start && array[end] == ' ') end--; split[currentWord] = new char[end - start + 1]; System.arraycopy( array, start, split[currentWord++], 0, end - start + 1); return split; } | public static final char[][] splitAndTrimOn(char divider, char[] array) { int length = array == null ? 0 : array.length; if (length == 0) return NO_CHAR_CHAR; int wordCount = 1; for (int i = 0; i < length; i++) if (array[i] == divider) wordCount++; char[][] split = new char[wordCount][]; int last = 0, currentWord =... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java | |
int length = array == null ? 0 : array.length; if (length == 0) return NO_CHAR_CHAR; | int length = array == null ? 0 : array.length; if (length == 0) return NO_CHAR_CHAR; | public static final char[][] splitOn(char divider, char[] array) { int length = array == null ? 0 : array.length; if (length == 0) return NO_CHAR_CHAR; int wordCount = 1; for (int i = 0; i < length; i++) if (array[i] == divider) wordCount++; char[][] split = new char[wordCount][]; int last = 0, currentWord = 0; for... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
int wordCount = 1; for (int i = 0; i < length; i++) if (array[i] == divider) wordCount++; char[][] split = new char[wordCount][]; int last = 0, currentWord = 0; for (int i = 0; i < length; i++) { if (array[i] == divider) { split[currentWord] = new char[i - last]; System.arraycopy( array, last, split[currentWord++], 0, ... | int wordCount = 1; for (int i = 0; i < length; i++) if (array[i] == divider) wordCount++; char[][] split = new char[wordCount][]; int last = 0, currentWord = 0; for (int i = 0; i < length; i++) { if (array[i] == divider) { split[currentWord] = new char[i - last]; System .arraycopy(array, last, split[currentWord++], 0, ... | public static final char[][] splitOn(char divider, char[] array) { int length = array == null ? 0 : array.length; if (length == 0) return NO_CHAR_CHAR; int wordCount = 1; for (int i = 0; i < length; i++) if (array[i] == divider) wordCount++; char[][] split = new char[wordCount][]; int last = 0, currentWord = 0; for... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
split[currentWord] = new char[length - last]; System.arraycopy(array, last, split[currentWord], 0, length - last); return split; } | public static final char[][] splitOn(char divider, char[] array) { int length = array == null ? 0 : array.length; if (length == 0) return NO_CHAR_CHAR; int wordCount = 1; for (int i = 0; i < length; i++) if (array[i] == divider) wordCount++; char[][] split = new char[wordCount][]; int last = 0, currentWord = 0; for... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java | |
if (end == -1) end = array.length; if (start > end) return null; if (start < 0) return null; if (end > array.length) return null; | if (end == -1) end = array.length; if (start > end) return null; if (start < 0) return null; if (end > array.length) return null; | public static final char[][] subarray(char[][] array, int start, int end) { if (end == -1) end = array.length; if (start > end) return null; if (start < 0) return null; if (end > array.length) return null; char[][] result = new char[end - start][]; System.arraycopy(array, start, result, 0, end - start); return resu... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
char[][] result = new char[end - start][]; System.arraycopy(array, start, result, 0, end - start); return result; } | char[][] result = new char[end - start][]; System.arraycopy(array, start, result, 0, end - start); return result; } | public static final char[][] subarray(char[][] array, int start, int end) { if (end == -1) end = array.length; if (start > end) return null; if (start < 0) return null; if (end > array.length) return null; char[][] result = new char[end - start][]; System.arraycopy(array, start, result, 0, end - start); return resu... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
char[] result = concatWith(array, '.'); return new String(result); } | char[] result = concatWith(array, '.'); return new String(result); } | final static public String toString(char[][] array) { char[] result = concatWith(array, '.'); return new String(result);} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
if (array == null) return NO_STRINGS; int length = array.length; if (length == 0) return NO_STRINGS; String[] result = new String[length]; for (int i = 0; i < length; i++) result[i] = new String(array[i]); return result; } | if (array == null) return NO_STRINGS; int length = array.length; if (length == 0) return NO_STRINGS; String[] result = new String[length]; for (int i = 0; i < length; i++) result[i] = new String(array[i]); return result; } | final static public String[] toStrings(char[][] array) { if (array == null) return NO_STRINGS; int length = array.length; if (length == 0) return NO_STRINGS; String[] result = new String[length]; for (int i = 0; i < length; i++) result[i] = new String(array[i]); return result;} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
if (chars == null) return null; | if (chars == null) return null; | final static public char[] trim(char[] chars) { if (chars == null) return null; int start = 0, length = chars.length, end = length - 1; while (start < length && chars[start] == ' ') { start++; } while (end > start && chars[end] == ' ') { end--; } if (start != 0 || end != length - 1) { return subarray(chars, start, ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
int start = 0, length = chars.length, end = length - 1; while (start < length && chars[start] == ' ') { start++; | int start = 0, length = chars.length, end = length - 1; while (start < length && chars[start] == ' ') { start++; } while (end > start && chars[end] == ' ') { end--; } if (start != 0 || end != length - 1) { return subarray(chars, start, end + 1); } return chars; | final static public char[] trim(char[] chars) { if (chars == null) return null; int start = 0, length = chars.length, end = length - 1; while (start < length && chars[start] == ' ') { start++; } while (end > start && chars[end] == ' ') { end--; } if (start != 0 || end != length - 1) { return subarray(chars, start, ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
while (end > start && chars[end] == ' ') { end--; } if (start != 0 || end != length - 1) { return subarray(chars, start, end + 1); } return chars; } | final static public char[] trim(char[] chars) { if (chars == null) return null; int start = 0, length = chars.length, end = length - 1; while (start < length && chars[start] == ' ') { start++; } while (end > start && chars[end] == ' ') { end--; } if (start != 0 || end != length - 1) { return subarray(chars, start, ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java | |
String userId = StringUtil.trimToZero(SessionManager.getCurrentSession().getUserEid()); | String userId = StringUtil.trimToZero(SessionManager.getCurrentSessionUserId()); | private String buildContextForTemplate (int index, VelocityPortlet portlet, Context context, RunData data, SessionState state) { String realmId = ""; String site_type = ""; String sortedBy = ""; String sortedAsc = ""; ParameterParser params = data.getParameters (); context.put("tlang",rb); context.put(... | 54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/3d5ba9e02e38bfd2f675ea6403d67ba2ecac02d6/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java |
Asserts.notReached(message.toString()); | assert false : message.toString(); return null; | protected IRubyObject invokeMethod(IRubyObject recv, Object[] methodArgs) { if (isRestArgs) { methodArgs = packageRestArgumentsForReflection(methodArgs); } try { return invokeMethod0(recv, methodArgs); } catch (InvocationTargetException e) { if (e.getTargetException() i... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/AbstractCallback.java/buggy/src/org/jruby/runtime/callback/AbstractCallback.java |
throw new AssertError("[BUG] Run again with Asserts.ENABLE_ASSERT=true"); | protected IRubyObject invokeMethod(IRubyObject recv, Object[] methodArgs) { if (isRestArgs) { methodArgs = packageRestArgumentsForReflection(methodArgs); } try { return invokeMethod0(recv, methodArgs); } catch (InvocationTargetException e) { if (e.getTargetException() i... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/AbstractCallback.java/buggy/src/org/jruby/runtime/callback/AbstractCallback.java | |
public Box calculateBoxes(int avail_width, TableBox box, Context c, Table table) { box.width = avail_width; box.height = 100; box.x = 5; box.y = 5; // create a dummy prev row RowBox prev_row = new RowBox(0,0,0,0); int max_width = 0; // loop thr... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e8e0eb314a46ddb6d7381b336fded7fb403ce0f5/TableLayout2.java/clean/src/java/org/joshy/html/TableLayout2.java | ||
public Box calculateBoxes(int avail_width, TableBox box, Context c, Table table) { box.width = avail_width; box.height = 100; box.x = 5; box.y = 5; // create a dummy prev row RowBox prev_row = new RowBox(0,0,0,0); int max_width = 0; // loop thr... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e8e0eb314a46ddb6d7381b336fded7fb403ce0f5/TableLayout2.java/clean/src/java/org/joshy/html/TableLayout2.java | ||
Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(c.getExtents().x,c.getExtents().y, cell_box.width, 100)); Layout layout = LayoutFactory.getLayout(cell.node); Box cell_contents = layout.layout(c,(Element)cell_box.node); cell_box.sub_box = cell_contents; cell_box.height = cell_box.sub_box.height; column_count... | Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(c.getExtents().x,c.getExtents().y, cell_box.width, 100)); Layout layout = LayoutFactory.getLayout(cell.node); c.setSubBlock(true); Box cell_contents = layout.layout(c,(Element)cell_box.node); c.setSubBlock(false); cell_box.sub_box = cell_contents; cell_box.... | public Box calculateBoxes(int avail_width, TableBox box, Context c, Table table) { box.width = avail_width; box.height = 100; box.x = 5; box.y = 5; // create a dummy prev row RowBox prev_row = new RowBox(0,0,0,0); int max_width = 0; // loop thr... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e8e0eb314a46ddb6d7381b336fded7fb403ce0f5/TableLayout2.java/clean/src/java/org/joshy/html/TableLayout2.java |
public Box calculateBoxes(int avail_width, TableBox box, Context c, Table table) { box.width = avail_width; box.height = 100; box.x = 5; box.y = 5; // create a dummy prev row RowBox prev_row = new RowBox(0,0,0,0); int max_width = 0; // loop thr... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e8e0eb314a46ddb6d7381b336fded7fb403ce0f5/TableLayout2.java/clean/src/java/org/joshy/html/TableLayout2.java | ||
try { | public Box layout(Context c, Element elem) { try { //u.p("\n====\nLayout"); // create the table box TableBox table_box = (TableBox)createBox(c, elem); // set up the border spacing float border_spacing = c.css.getFloatProperty(elem, ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e8e0eb314a46ddb6d7381b336fded7fb403ce0f5/TableLayout2.java/clean/src/java/org/joshy/html/TableLayout2.java | |
public Box layout(Context c, Element elem) { try { //u.p("\n====\nLayout"); // create the table box TableBox table_box = (TableBox)createBox(c, elem); // set up the border spacing float border_spacing = c.css.getFloatProperty(elem, ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e8e0eb314a46ddb6d7381b336fded7fb403ce0f5/TableLayout2.java/clean/src/java/org/joshy/html/TableLayout2.java | ||
fixed_width = (int)c.css.getFloatProperty(elem, "width", false); | fixed_width = (int)c.css.getFloatProperty(elem, "width", c.getExtents().width, false); | public Box layout(Context c, Element elem) { try { //u.p("\n====\nLayout"); // create the table box TableBox table_box = (TableBox)createBox(c, elem); // set up the border spacing float border_spacing = c.css.getFloatProperty(elem, ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e8e0eb314a46ddb6d7381b336fded7fb403ce0f5/TableLayout2.java/clean/src/java/org/joshy/html/TableLayout2.java |
} catch (Exception ex) { u.p(ex); return null; } | public Box layout(Context c, Element elem) { try { //u.p("\n====\nLayout"); // create the table box TableBox table_box = (TableBox)createBox(c, elem); // set up the border spacing float border_spacing = c.css.getFloatProperty(elem, ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e8e0eb314a46ddb6d7381b336fded7fb403ce0f5/TableLayout2.java/clean/src/java/org/joshy/html/TableLayout2.java | |
public RubyObject length() { | public RubyFixnum length() { | public RubyObject length() { long size = 0; if (begin.funcall(">", end).isTrue()) { return new RubyFixnum(getRuby(), 0); } if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { size = ((RubyNumeric) end).getLongValue() - ((RubyNumeric) begin).getLongValue(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e4c0a90262b62b83d3fc5717371745bcc928c2b/RubyRange.java/clean/org/jruby/RubyRange.java |
!oldCategoryId.equals(parentCategoryId)) { | !oldCategoryId.equals(parentCategoryId) && !parentCategoryId.equals(MBCategory.DEFAULT_PARENT_CATEGORY_ID)) { | public MBCategory updateCategory( String categoryId, String parentCategoryId, String name, String description, boolean mergeWithParentCategory) throws PortalException, SystemException { // Category MBCategory category = MBCategoryUtil.findByPrimaryKey(categoryId); String oldCategoryId = category.getParentCateg... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/8cf89411535659bb65ce6cbae0d4905bc73401b9/MBCategoryLocalServiceImpl.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/service/impl/MBCategoryLocalServiceImpl.java |
public static void breakText(Context c, InlineTextBox inline, InlineBox prev_align, int avail, int max, Font font) { | public static void breakText(Context c, InlineTextBox inline, InlineBox prev_align, int avail, Font font) { | public static void breakText(Context c, InlineTextBox inline, InlineBox prev_align, int avail, int max, Font font) { boolean db = false; if (db) { Uu.p("========================="); Uu.p("breaking: " + inline); //Uu.p("breaking : '" + inline.getSubstring() + "'"); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/Breaker.java/clean/src/java/org/xhtmlrenderer/layout/inline/Breaker.java |
if (selResource.equals(Group.class.getName())) { if (!GroupPermission.contains( permissionChecker, resourcePrimKey, ActionKeys.PERMISSIONS)) { | try { if (selResource.equals(Group.class.getName())) { GroupPermission.check( permissionChecker, resourcePrimKey, ActionKeys.PERMISSIONS); } else if (selResource.equals(Layout.class.getName())) { String layoutGroupId = StringUtil.split(resourcePrimKey, ".")[1]; | public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); PermissionChecker permissionChecker = themeDisplay.getPermissionChecker(); ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/be53c72e9aee71309f1997c632f2d99246fa10e8/EditPermissionsAction.java/buggy/portal-ejb/src/com/liferay/portlet/portletconfiguration/action/EditPermissionsAction.java |
SessionErrors.add(req, PrincipalException.class.getName()); | layoutGroupId = StringUtil.replace(layoutGroupId, "}", ""); | public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); PermissionChecker permissionChecker = themeDisplay.getPermissionChecker(); ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/be53c72e9aee71309f1997c632f2d99246fa10e8/EditPermissionsAction.java/buggy/portal-ejb/src/com/liferay/portlet/portletconfiguration/action/EditPermissionsAction.java |
setForward(req, "portlet.portlet_configuration.error"); | GroupPermission.check( permissionChecker, layoutGroupId, ActionKeys.MANAGE_LAYOUTS); | public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); PermissionChecker permissionChecker = themeDisplay.getPermissionChecker(); ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/be53c72e9aee71309f1997c632f2d99246fa10e8/EditPermissionsAction.java/buggy/portal-ejb/src/com/liferay/portlet/portletconfiguration/action/EditPermissionsAction.java |
} else if (selResource.equals(Layout.class.getName())) { String layoutGroupId = StringUtil.split(resourcePrimKey, ".")[1]; | else if (selResource.equals(User.class.getName())) { User user = UserLocalServiceUtil.getUserById(resourcePrimKey); | public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); PermissionChecker permissionChecker = themeDisplay.getPermissionChecker(); ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/be53c72e9aee71309f1997c632f2d99246fa10e8/EditPermissionsAction.java/buggy/portal-ejb/src/com/liferay/portlet/portletconfiguration/action/EditPermissionsAction.java |
layoutGroupId = StringUtil.replace(layoutGroupId, "}", ""); if (!GroupPermission.contains( permissionChecker, layoutGroupId, ActionKeys.MANAGE_LAYOUTS)) { SessionErrors.add(req, PrincipalException.class.getName()); setForward(req, "portlet.portlet_configuration.error"); } } else if (selResource.equals(User.class.get... | UserPermission.check( | public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); PermissionChecker permissionChecker = themeDisplay.getPermissionChecker(); ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/be53c72e9aee71309f1997c632f2d99246fa10e8/EditPermissionsAction.java/buggy/portal-ejb/src/com/liferay/portlet/portletconfiguration/action/EditPermissionsAction.java |
ActionKeys.PERMISSIONS)) { | ActionKeys.PERMISSIONS); } else if (resourcePrimKey.startsWith(ownerId)) { if (!permissionChecker.hasPermission( groupId, selResource, resourcePrimKey, ActionKeys.CONFIGURATION)) { | public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); PermissionChecker permissionChecker = themeDisplay.getPermissionChecker(); ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/be53c72e9aee71309f1997c632f2d99246fa10e8/EditPermissionsAction.java/buggy/portal-ejb/src/com/liferay/portlet/portletconfiguration/action/EditPermissionsAction.java |
SessionErrors.add(req, PrincipalException.class.getName()); | throw new PrincipalException(); } } else if (!permissionChecker.hasPermission( groupId, selResource, resourcePrimKey, ActionKeys.PERMISSIONS)) { | public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); PermissionChecker permissionChecker = themeDisplay.getPermissionChecker(); ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/be53c72e9aee71309f1997c632f2d99246fa10e8/EditPermissionsAction.java/buggy/portal-ejb/src/com/liferay/portlet/portletconfiguration/action/EditPermissionsAction.java |
setForward(req, "portlet.portlet_configuration.error"); | throw new PrincipalException(); | public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); PermissionChecker permissionChecker = themeDisplay.getPermissionChecker(); ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/be53c72e9aee71309f1997c632f2d99246fa10e8/EditPermissionsAction.java/buggy/portal-ejb/src/com/liferay/portlet/portletconfiguration/action/EditPermissionsAction.java |
else if (!permissionChecker.hasPermission( groupId, selResource, resourcePrimKey, ActionKeys.PERMISSIONS)) { | catch (PrincipalException pe) { | public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); PermissionChecker permissionChecker = themeDisplay.getPermissionChecker(); ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/be53c72e9aee71309f1997c632f2d99246fa10e8/EditPermissionsAction.java/buggy/portal-ejb/src/com/liferay/portlet/portletconfiguration/action/EditPermissionsAction.java |
if (!Layout.isPrivateLayout(layout.getOwnerId())) { Resource resource = ResourceLocalServiceUtil.getResource(resourceId); if (resource.getPrimKey().startsWith(layout.getOwnerId())) { LayoutCacheUtil.clearCache(layout.getCompanyId()); } } | protected void updateGroupPermissions(ActionRequest req) throws Exception { Layout layout = (Layout)req.getAttribute(WebKeys.LAYOUT); String resourceId = ParamUtil.getString(req, "resourceId"); String groupId = ParamUtil.getString(req, "groupId"); String[] actionIds = StringUtil.split( ParamUtil.getString(req, "... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/be53c72e9aee71309f1997c632f2d99246fa10e8/EditPermissionsAction.java/buggy/portal-ejb/src/com/liferay/portlet/portletconfiguration/action/EditPermissionsAction.java | |
Object target = new Object() { public int commandProc(int nextHandler, int theEvent, int userData) { if (OS.GetEventKind(theEvent) == OS.kEventProcessCommand) { HICommand command = new HICommand(); OS.GetEventParameter(theEvent, OS.kEventParamDirectObject, OS.typeHICommand, null, HICommand.sizeof, null, command); switc... | Object target = new Target(); | private void hookApplicationMenu(Display display) { // Callback target Object target = new Object() { public int commandProc(int nextHandler, int theEvent, int userData) { if (OS.GetEventKind(theEvent) == OS.kEventProcessCommand) { HICommand command = new H... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5c98aa0e8cc435294e5feea074dd69afb3623667/CarbonUIEnhancer.java/clean/bundles/org.eclipse.ui.carbon/src/org/eclipse/ui/carbon/CarbonUIEnhancer.java |
Object target = new Object() { public int toolbarProc (int nextHandler, int theEvent, int userData) { int eventKind = OS.GetEventKind (theEvent); if (eventKind != OS.kEventWindowToolbarSwitchMode) return OS.eventNotHandledErr; int [] theWindow = new int [1]; OS.GetEventParameter (theEvent, OS.kEventParamDirectObject, ... | Object target = new Target(); | protected void hookToolbarButtonCallback() { Object target = new Object() { public int toolbarProc (int nextHandler, int theEvent, int userData) { int eventKind = OS.GetEventKind (theEvent); if (eventKind != OS.kEventWindowToolbarSwitchMode) return OS.eventNotHandledErr; int [] theWindow = new i... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5c98aa0e8cc435294e5feea074dd69afb3623667/CarbonUIEnhancer.java/clean/bundles/org.eclipse.ui.carbon/src/org/eclipse/ui/carbon/CarbonUIEnhancer.java |
return (int) (RubyNumeric.fix2long(obj1) - RubyNumeric.fix2long(obj2)); | long diff = RubyNumeric.fix2long(obj1) - RubyNumeric.fix2long(obj2); return diff < 0 ? -1 : diff > 0 ? 1 : 0; | public int compare(Object o1, Object o2) { IRubyObject obj1 = (IRubyObject) o1; IRubyObject obj2 = (IRubyObject) o2; if (o1 instanceof RubyFixnum && o2 instanceof RubyFixnum) { return (int) (RubyNumeric.fix2long(obj1) - RubyNumeric.fix2long(obj2)); } ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/557d5a8d0dd3f2232933ecc9d751daf23bf85d5b/RubyArray.java/buggy/src/org/jruby/RubyArray.java |
if (dataTracker.isNew() || dataTracker.isModified()) { session = openSession(); if (dataTracker.isNew()) { DataTracker dataTrackerModel = new DataTracker(); dataTrackerModel.setDataTrackerId(dataTracker.getDataTrackerId()); dataTrackerModel.setCompanyId(dataTracker.getCompanyId()); dataTrackerModel.setCreatedOn(dataTr... | session = openSession(); session.saveOrUpdate(dataTracker); session.flush(); dataTracker.setNew(false); | public com.liferay.portal.model.DataTracker update( com.liferay.portal.model.DataTracker dataTracker) throws SystemException { Session session = null; try { if (dataTracker.isNew() || dataTracker.isModified()) { session = openSession(); if (dataTracker.isNew()) { DataTracker dataTrackerModel = new Data... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/DataTrackerPersistence.java/clean/portal-ejb/src/com/liferay/portal/service/persistence/DataTrackerPersistence.java |
runtime.getClasses().getIoClass()); | runtime.getClass("IO")); | public BasicSocketMetaClass(Ruby runtime) { super("BasicSocket", RubyBasicSocket.class, runtime.getClasses().getIoClass()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/BasicSocketMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/BasicSocketMetaClass.java |
if (extents.width == 0 && extents.height == 0) { extents = new Rectangle(0, 0, 1, 1); } | protected LayoutContext newLayoutContext(Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getSharedContext().setCanvas(this); Rectangle extents = getScreenExtents(); XRLog.layout(Level.FINEST, "new context end"); LayoutContext result = getSharedContext().newLayoutC... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ed328f65908386641e6e47c92a62593beded8848/RootPanel.java/clean/src/java/org/xhtmlrenderer/swing/RootPanel.java | |
animationStartJob = new WorkbenchJob(ProgressMessages .getString("AnimationManager.AnimationStart")) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { if(monitor.isCanceled()) return Status.CA... | AnimationManager() { animationProcessor = new ProgressAnimationProcessor(this); listener = getProgressListener(); ProgressManager.getInstance().addListener(listener); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3254473f6b332db5406f3cf7bc91aa2eaff67397/AnimationManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationManager.java | |
animationProcessor.animationStarted(); | if(monitor.isCanceled()) return Status.CANCEL_STATUS; animationProcessor.animationFinished(); | public IStatus runInUIThread(IProgressMonitor monitor) { animationProcessor.animationStarted(); return Status.OK_STATUS; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3254473f6b332db5406f3cf7bc91aa2eaff67397/AnimationManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationManager.java |
UIJob animationDoneJob = new WorkbenchJob(ProgressMessages.getString("AnimationManager.DoneJobName")) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { animationProcessor.animationFinished(); r... | animationStartJob.cancel(); | private void animationFinished() { UIJob animationDoneJob = new WorkbenchJob(ProgressMessages.getString("AnimationManager.DoneJobName")) { //$NON-NLS-1$ /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(I... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3254473f6b332db5406f3cf7bc91aa2eaff67397/AnimationManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationManager.java |
WorkbenchJob animationStartJob = new WorkbenchJob(ProgressMessages .getString("AnimationManager.AnimationStart")) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { animationProcessor.animationS... | animationDoneJob.cancel(); | private void animationStarted() { WorkbenchJob animationStartJob = new WorkbenchJob(ProgressMessages .getString("AnimationManager.AnimationStart")) {//$NON-NLS-1$ /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus ru... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3254473f6b332db5406f3cf7bc91aa2eaff67397/AnimationManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationManager.java |
public FCallNode(ISourcePosition position, String name, IListNode argsNode) { | public FCallNode(ISourcePosition position, String name, INode argsNode) { | public FCallNode(ISourcePosition position, String name, IListNode argsNode) { super(position); this.name = name.intern(); this.argsNode = argsNode; if (! (argsNode instanceof ArrayNode)) { if (argsNode != null) { System.out.println("" + argsNode.getClass()); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/FCallNode.java/buggy/src/org/jruby/ast/FCallNode.java |
if (! (argsNode instanceof ArrayNode)) { if (argsNode != null) { System.out.println("" + argsNode.getClass()); } } | public FCallNode(ISourcePosition position, String name, IListNode argsNode) { super(position); this.name = name.intern(); this.argsNode = argsNode; if (! (argsNode instanceof ArrayNode)) { if (argsNode != null) { System.out.println("" + argsNode.getClass()); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/FCallNode.java/buggy/src/org/jruby/ast/FCallNode.java | |
public IListNode getArgsNode() { | public INode getArgsNode() { | public IListNode getArgsNode() { return argsNode; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/FCallNode.java/buggy/src/org/jruby/ast/FCallNode.java |
Platform.getPlugin(PlatformUI.PLUGIN_ID).getLog().log( | IDEWorkbenchPlugin.getDefault().getLog().log( | private boolean updateNatures() { // define the operation to update natures WorkspaceModifyOperation op = new WorkspaceModifyOperation() { protected void execute(IProgressMonitor monitor) throws CoreException { try { IProjectDescription d... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b44617ebe568f7f4382cb371e3d1a291dd46bd17/RemoveCapabilityWizard.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/RemoveCapabilityWizard.java |
Context.PROVIDER_URL, LDAPUtil.getFullProviderURL(baseProviderURL, baseDN)); | Context.PROVIDER_URL, LDAPUtil.getFullProviderURL(baseProviderURL, baseDN)); | protected int authenticate( String companyId, String emailAddress, String userId, String password) throws Exception { boolean enabled = PrefsPropsUtil.getBoolean( companyId, PropsUtil.AUTH_IMPL_LDAP_ENABLED); if (!enabled) { if (_log.isDebugEnabled()) { _log.debug("Authenticator is not enabled"); } r... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/7801af04630465ed9f23d98718b807c01c3cbc96/LDAPAuth.java/clean/portal-ejb/src/com/liferay/portal/security/auth/LDAPAuth.java |
System.out.println("pulling from here: " + e.getAttribute("src")); | JComponent addComponent(Context c, Element e) { JComponent cc = (JComponent) components.get(e); if (cc != null) { return cc; } if (e.getNodeName().equals("input")) { String type = e.getAttribute("type"); if (type == null || type.equals("")) { ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/700deda900763fb4334d7a41940a307a33287ba5/XhtmlForm.java/clean/src/java/org/xhtmlrenderer/simple/extend/XhtmlForm.java | |
public WorkspaceOperationsTests() { super(); | public WorkspaceOperationsTests(String name) { super(name); | public WorkspaceOperationsTests() { super(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
private void execute(IUndoableOperation operation) | private void execute(AbstractWorkspaceOperation operation) | private void execute(IUndoableOperation operation) throws ExecutionException { assertTrue("Operation can be executed", operation.canExecute()); assertTrue("Execution should be OK status", history.execute(operation, getMonitor(), null).equals(Status.OK_STATUS)); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
assertTrue("Execution should be OK status", history.execute(operation, getMonitor(), null).equals(Status.OK_STATUS)); | IStatus status = history.execute(operation, getMonitor(), null); assertTrue("Execution should be OK status", status.isOK()); | private void execute(IUndoableOperation operation) throws ExecutionException { assertTrue("Operation can be executed", operation.canExecute()); assertTrue("Execution should be OK status", history.execute(operation, getMonitor(), null).equals(Status.OK_STATUS)); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
assertTrue("Redo should be OK status", history.redo(context, getMonitor(), null).equals(Status.OK_STATUS)); | IStatus status = history.redo(context, getMonitor(), null); assertTrue("Redo should be OK status", status.isOK()); | private void redo() throws ExecutionException { assertTrue("Operation can be redone", history.canRedo(context)); assertTrue("Redo should be OK status", history.redo(context, getMonitor(), null).equals(Status.OK_STATUS)); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
new IFile[] { testFile1, testFile2, testFile3 }, | new IFile[] { emptyTestFile, testFileWithContent, testLinkedFile }, | public void testCreateMarkerUndoInvalid() throws ExecutionException, CoreException { String[] types = new String[] { IMarker.BOOKMARK, IMarker.TASK, CUSTOM_TYPE }; Map[] attrs = new Map[] { getInitialMarkerAttributes(), getUpdatedMarkerAttributes(), getInitialMarkerAttributes() }; CreateMarkersOperation op ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
public void testCreateMarkerUndoInvalid() throws ExecutionException, CoreException { String[] types = new String[] { IMarker.BOOKMARK, IMarker.TASK, CUSTOM_TYPE }; Map[] attrs = new Map[] { getInitialMarkerAttributes(), getUpdatedMarkerAttributes(), getInitialMarkerAttributes() }; CreateMarkersOperation op ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java | ||
new IFile[] { testFile1, testFile2, testFile3 }, | new IFile[] { emptyTestFile, testFileWithContent, testLinkedFile }, | public void testCreateMarkerUndoInvalid2() throws ExecutionException, CoreException { String[] types = new String[] { IMarker.BOOKMARK, IMarker.TASK, CUSTOM_TYPE }; Map[] attrs = new Map[] { getInitialMarkerAttributes(), getUpdatedMarkerAttributes(), getInitialMarkerAttributes() }; CreateMarkersOperation op... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
testFile1.delete(true, getMonitor()); | emptyTestFile.delete(true, getMonitor()); | public void testCreateMarkerUndoInvalid2() throws ExecutionException, CoreException { String[] types = new String[] { IMarker.BOOKMARK, IMarker.TASK, CUSTOM_TYPE }; Map[] attrs = new Map[] { getInitialMarkerAttributes(), getUpdatedMarkerAttributes(), getInitialMarkerAttributes() }; CreateMarkersOperation op... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
public void testCreateMarkerUndoInvalid2() throws ExecutionException, CoreException { String[] types = new String[] { IMarker.BOOKMARK, IMarker.TASK, CUSTOM_TYPE }; Map[] attrs = new Map[] { getInitialMarkerAttributes(), getUpdatedMarkerAttributes(), getInitialMarkerAttributes() }; CreateMarkersOperation op... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java | ||
new IFile[] { testFile1, testFile2, testFile3 }, "Create Multiple Marker Types Test"); | new IFile[] { emptyTestFile, testFileWithContent, testLinkedFile }, "Create Multiple Marker Types Test"); | public void testCreateMultipleMarkerTypesUndoRedo() throws ExecutionException, CoreException { String[] types = new String[] { IMarker.BOOKMARK, IMarker.TASK, CUSTOM_TYPE }; Map[] attrs = new Map[] { getInitialMarkerAttributes(), getUpdatedMarkerAttributes(), getInitialMarkerAttributes() }; CreateMarkersOpe... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
attrs, new IFile[] { testFile1, testFile2, testFile3 }, | attrs, new IFile[] { emptyTestFile, testFileWithContent, testLinkedFile }, | public void testCreateMultipleMarkersSingleTypeUndoRedo() throws ExecutionException, CoreException { String[] types = new String[] { CUSTOM_TYPE, CUSTOM_TYPE, CUSTOM_TYPE }; Map[] attrs = new Map[] { getInitialMarkerAttributes(), getUpdatedMarkerAttributes(), getInitialMarkerAttributes() }; CreateMarkersOperat... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
IMarker.BOOKMARK, getInitialMarkerAttributes(), testFile1, | IMarker.BOOKMARK, getInitialMarkerAttributes(), emptyTestFile, | public void testCreateSingleMarkerUndoRedo() throws ExecutionException, CoreException { String[] types = new String[] { IMarker.BOOKMARK }; Map[] attrs = new Map[] { getInitialMarkerAttributes() }; CreateMarkersOperation op = new CreateMarkersOperation( IMarker.BOOKMARK, getInitialMarkerAttributes(), testFile1... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
new IFile[] { testFile1, testFile2, testFile3 }, | new IFile[] { emptyTestFile, testFileWithContent, testLinkedFile }, | public void testDeleteMarkersUndoRedo() throws ExecutionException, CoreException { String[] types = new String[] { IMarker.BOOKMARK, IMarker.TASK, CUSTOM_TYPE }; Map[] attrs = new Map[] { getInitialMarkerAttributes(), getUpdatedMarkerAttributes(), getInitialMarkerAttributes() }; CreateMarkersOperation op = ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
new IFile[] { testFile1, testFile2, testFile3 }, | new IFile[] { emptyTestFile, testFileWithContent, testLinkedFile }, | public void testUpdateAndMergeMultipleMarkerUndoRedo() throws ExecutionException, CoreException { String[] types = new String[] { IMarker.BOOKMARK, IMarker.TASK, CUSTOM_TYPE }; Map[] attrs = new Map[] { getInitialMarkerAttributes(), getInitialMarkerAttributes(), getInitialMarkerAttributes() }; CreateMarkers... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
IMarker.BOOKMARK, getInitialMarkerAttributes(), testFile1, | IMarker.BOOKMARK, getInitialMarkerAttributes(), testLinkedFile, | public void testUpdateAndMergeSingleMarkerUndoRedo() throws ExecutionException, CoreException { CreateMarkersOperation op = new CreateMarkersOperation( IMarker.BOOKMARK, getInitialMarkerAttributes(), testFile1, "Create Marker Test"); execute(op); UpdateMarkersOperation updateOp = new UpdateMarkersOperation(... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
new IFile[] { testFile1, testFile2, testFile3 }, | new IFile[] { emptyTestFile, testFileWithContent, testLinkedFile }, | public void testUpdateMarkersInvalid() throws ExecutionException, CoreException { String[] types = new String[] { IMarker.BOOKMARK, IMarker.TASK, CUSTOM_TYPE }; Map[] attrs = new Map[] { getInitialMarkerAttributes(), getInitialMarkerAttributes(), getInitialMarkerAttributes() }; CreateMarkersOperation op = n... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
public void testUpdateMarkersInvalid() throws ExecutionException, CoreException { String[] types = new String[] { IMarker.BOOKMARK, IMarker.TASK, CUSTOM_TYPE }; Map[] attrs = new Map[] { getInitialMarkerAttributes(), getInitialMarkerAttributes(), getInitialMarkerAttributes() }; CreateMarkersOperation op = n... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java | ||
new IFile[] { testFile1, testFile2, testFile3 }, | new IFile[] { emptyTestFile, testFileWithContent, testLinkedFile }, | public void testUpdateMarkersInvalid2() throws ExecutionException, CoreException { String[] types = new String[] { IMarker.BOOKMARK, IMarker.TASK, CUSTOM_TYPE }; Map[] attrs = new Map[] { getInitialMarkerAttributes(), getInitialMarkerAttributes(), getInitialMarkerAttributes() }; CreateMarkersOperation op = ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
testFile3.delete(true, getMonitor()); | testFileWithContent.delete(true, getMonitor()); | public void testUpdateMarkersInvalid2() throws ExecutionException, CoreException { String[] types = new String[] { IMarker.BOOKMARK, IMarker.TASK, CUSTOM_TYPE }; Map[] attrs = new Map[] { getInitialMarkerAttributes(), getInitialMarkerAttributes(), getInitialMarkerAttributes() }; CreateMarkersOperation op = ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
public void testUpdateMarkersInvalid2() throws ExecutionException, CoreException { String[] types = new String[] { IMarker.BOOKMARK, IMarker.TASK, CUSTOM_TYPE }; Map[] attrs = new Map[] { getInitialMarkerAttributes(), getInitialMarkerAttributes(), getInitialMarkerAttributes() }; CreateMarkersOperation op = ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3de75189b6b769855f0fc9efca2440b7173c759e/WorkspaceOperationsTests.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/operations/WorkspaceOperationsTests.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.