CloneSet1935


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10240.972statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110397
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCodeScanner.java
210407
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCodeScanner.java
Clone Instance
1
Line Count
10
Source Line
397
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCodeScanner.java

                VersionedWordMatcher j14Matcher = new VersionedWordMatcher(token, JavaCore.VERSION_1_4, version);

                token = getToken(IJavaColorConstants.JAVA_KEYWORD);
                for (int i = 0; i < fgJava14Keywords.length; i++)
                        j14Matcher.addWord(fgJava14Keywords[i], token);

                combinedWordRule.addWordMatcher(j14Matcher);
                fVersionDependentRules.add(j14Matcher);

                token = getToken(IJavaColorConstants.JAVA_DEFAULT);


Clone Instance
2
Line Count
10
Source Line
407
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCodeScanner.java

                VersionedWordMatcher j15Matcher = new VersionedWordMatcher(token, JavaCore.VERSION_1_5, version);
                token = getToken(IJavaColorConstants.JAVA_KEYWORD);
                for (int i = 0; i < fgJava15Keywords.length; i++)
                        j15Matcher.addWord(fgJava15Keywords[i], token);

                combinedWordRule.addWordMatcher(j15Matcher);
                fVersionDependentRules.add(j15Matcher);

                // Add rule for operators and brackets
                token = getToken(IJavaColorConstants.JAVA_OPERATOR);


Clone AbstractionParameter Count: 4Parameter Bindings

VersionedWordMatcher  [[#variable9759bc40]]= new VersionedWordMatcher(token, JavaCore. [[#variable9759bc20]], version);
token = getToken(IJavaColorConstants.JAVA_KEYWORD);
for (int i = 0; i <  [[#variableb1a83400]].length; i++)
   [[#variable9759bc40]].addWord( [[#variableb1a83400]][i], token);
combinedWordRule.addWordMatcher( [[#variable9759bc40]]);
fVersionDependentRules.add( [[#variable9759bc40]]);
// Add rule for operators and brackets
token = getToken(IJavaColorConstants. [[#variable9759b6a0]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9759bc40]]
j14Matcher 
12[[#9759bc40]]
j15Matcher 
21[[#9759bc20]]
VERSION_1_4 
22[[#9759bc20]]
VERSION_1_5 
31[[#b1a83400]]
fgJava14Keywords 
32[[#b1a83400]]
fgJava15Keywords 
41[[#9759b6a0]]
JAVA_DEFAULT 
42[[#9759b6a0]]
JAVA_OPERATOR