| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 26 | 2 | 3 | 0.985 | statement_sequence[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 27 | 1663 | plugins/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java |
| 2 | 26 | 1719 | plugins/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java |
| ||||
/*
* Feed extdirsClasspath with the entries found into the directories listed by
* extdirsNames.
*/
if (extdirsClasspaths.size() != 0) {
File[] directoriesToCheck = new File[extdirsClasspaths.size()];
for (int i = 0; i < directoriesToCheck.length; i++)
directoriesToCheck[i] = new File((String) extdirsClasspaths.get(i));
extdirsClasspaths.clear();
File[][] extdirsJars = getLibrariesFiles(directoriesToCheck);
if (extdirsJars != null) {
for (int i = 0, max = extdirsJars.length; i < max; i++) {
File[] current = extdirsJars[i];
if (current != null) {
for (int j = 0, max2 = current.length; j < max2; j++) {
FileSystem.Classpath classpath =
FileSystem.getClasspath(
current[j].getAbsolutePath(),
null, null);
if (classpath != null) {
extdirsClasspaths.add(classpath);
}
}
}
else if (directoriesToCheck[i].isFile()) {
this.logger.logIncorrectExtDirsEntry(directoriesToCheck[i].getAbsolutePath());
}
}
}
}
return extdirsClasspaths;
|
| ||||
/*
* Feed extdirsClasspath with the entries found into the directories listed by
* extdirsNames.
*/
if (endorsedDirClasspaths.size() != 0) {
File[] directoriesToCheck = new File[endorsedDirClasspaths.size()];
for (int i = 0; i < directoriesToCheck.length; i++)
directoriesToCheck[i] = new File((String) endorsedDirClasspaths.get(i));
endorsedDirClasspaths.clear();
File[][] endorsedDirsJars = getLibrariesFiles(directoriesToCheck);
if (endorsedDirsJars != null) {
for (int i = 0, max = endorsedDirsJars.length; i < max; i++) {
File[] current = endorsedDirsJars[i];
if (current != null) {
for (int j = 0, max2 = current.length; j < max2; j++) {
FileSystem.Classpath classpath =
FileSystem.getClasspath(
current[j].getAbsolutePath(),
null, null);
if (classpath != null) {
endorsedDirClasspaths.add(classpath);
}
}
}
else if (directoriesToCheck[i].isFile()) {
this.logger.logIncorrectEndorsedDirsEntry(directoriesToCheck[i].getAbsolutePath());
}
}
}
}
return endorsedDirClasspaths;
|
| |||
/*
* Feed extdirsClasspath with the entries found into the directories listed by
* extdirsNames.
*/
if ( [[#variablebc354360]].size() != 0) {
File[] directoriesToCheck = new File[ [[#variablebc354360]].size()];
for (int i = 0; i < directoriesToCheck.length; i++)
directoriesToCheck[i] = new File((String) [[#variablebc354360]].get(i));
[[#variablebc354360]].clear();
File[][] [[#variablec200b6c0]]= getLibrariesFiles(directoriesToCheck);
if ( [[#variablec200b6c0]]!= null) {
for (int i = 0, max = [[#variablec200b6c0]].length; i < max; i++) {
File[] current = [[#variablec200b6c0]][i];
if (current != null) {
for (int j = 0, max2 = current.length; j < max2; j++) {
FileSystem.Classpath classpath = FileSystem.getClasspath(current[j].getAbsolutePath(), null, null);
if (classpath != null) {
[[#variablebc354360]].add(classpath);
}
}
}
else
if (directoriesToCheck[i].isFile()) {
this.logger. [[#variablec200b6e0]](directoriesToCheck[i].getAbsolutePath());
}
}
}
}
return [[#variablebc354360]];
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#bc354360]] | endorsedDirClasspaths |
| 1 | 2 | [[#bc354360]] | extdirsClasspaths |
| 2 | 1 | [[#c200b6c0]] | endorsedDirsJars |
| 2 | 2 | [[#c200b6c0]] | extdirsJars |
| 3 | 1 | [[#c200b6e0]] | logIncorrectEndorsedDirsEntry |
| 3 | 2 | [[#c200b6e0]] | logIncorrectExtDirsEntry |