CloneSet453


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
26230.985statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1271663
plugins/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java
2261719
plugins/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java
Clone Instance
1
Line Count
27
Source Line
1663
Source File
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;


Clone Instance
2
Line Count
26
Source Line
1719
Source File
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 (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;


Clone AbstractionParameter Count: 3Parameter Bindings

/*
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bc354360]]
endorsedDirClasspaths 
12[[#bc354360]]
extdirsClasspaths 
21[[#c200b6c0]]
endorsedDirsJars 
22[[#c200b6c0]]
extdirsJars 
31[[#c200b6e0]]
logIncorrectEndorsedDirsEntry 
32[[#c200b6e0]]
logIncorrectExtDirsEntry