Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 4 | 0.972 | statement_sequence[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 397 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCodeScanner.java |
2 | 10 | 407 | 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); |
| ||||
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); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9759bc40]] | j14Matcher |
1 | 2 | [[#9759bc40]] | j15Matcher |
2 | 1 | [[#9759bc20]] | VERSION_1_4 |
2 | 2 | [[#9759bc20]] | VERSION_1_5 |
3 | 1 | [[#b1a83400]] | fgJava14Keywords |
3 | 2 | [[#b1a83400]] | fgJava15Keywords |
4 | 1 | [[#9759b6a0]] | JAVA_DEFAULT |
4 | 2 | [[#9759b6a0]] | JAVA_OPERATOR |