CloneSet2549


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7350.955statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16529
plugins/org.eclipse.jdt.core/antadapter/org/eclipse/jdt/core/JDTCompilerAdapter.java
2674
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/SourceRange.java
37693
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractTempRefactoring.java
Clone Instance
1
Line Count
6
Source Line
529
Source File
plugins/org.eclipse.jdt.core/antadapter/org/eclipse/jdt/core/JDTCompilerAdapter.java

                        //we need the directories sorted, longest first,since sub directories can
                        //override encodings for their parent directories
                        Comparator comparator = new Comparator() {
                                public int compare(Object o1, Object o2) {
                                        return ((String) o2).length() - ((String) o1).length();
                                }
                                                };
                        Arrays.sort(encodedDirs, comparator);


Clone Instance
2
Line Count
6
Source Line
74
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/SourceRange.java

                Comparator comparator = new Comparator() {
                         public int compare(Object o1, Object o2) {
                                 return ((ISourceRange) o2).getOffset() - ((ISourceRange) o1).getOffset();
                         }
                                        };
                Arrays.sort(ranges, comparator);


Clone Instance
3
Line Count
7
Source Line
693
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractTempRefactoring.java

                Comparator comparator = new Comparator() {

                         public int compare(Object o1, Object o2) {
                                 return ((IASTFragment) o1).getStartPosition() - ((IASTFragment) o2).getStartPosition();
                         }
                                        };
                Arrays.sort(nodesToReplace, comparator);


Clone AbstractionParameter Count: 5Parameter Bindings

//we need the directories sorted, longest first,since sub directories can
//override encodings for their parent directories
Comparator comparator = new Comparator() {
                          public int compare(Object o1, Object o2) {
                            return (( [[#variable77a37960]])  [[#variable77a37920]]). [[#variable77a378e0]]() - (( [[#variable77a37960]])  [[#variable77a37840]]). [[#variable77a378e0]]();
                          }
                        };
Arrays.sort( [[#variable77a377c0]], comparator);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#77a37960]]
IASTFragment 
12[[#77a37960]]
ISourceRange 
13[[#77a37960]]
String 
21[[#77a37920]]
o1 
22[[#77a37920]]
o2 
23[[#77a37920]]
o2 
31[[#77a378e0]]
getStartPosition 
32[[#77a378e0]]
getOffset 
33[[#77a378e0]]
length 
41[[#77a37840]]
o2 
42[[#77a37840]]
o1 
43[[#77a37840]]
o1 
51[[#77a377c0]]
nodesToReplace 
52[[#77a377c0]]
ranges 
53[[#77a377c0]]
encodedDirs