Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 3 | 0.976 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 779 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ImportRewriteAnalyzer.java |
2 | 9 | 859 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ImportRewriteAnalyzer.java |
| ||||
public int compareTo(String fullName, boolean isStaticImport) { int cmp = this.elementName.compareTo(fullName); if (cmp == 0) { if (this.isStatic == isStaticImport) { return 0; } return this.isStatic ? -1: 1; } return cmp; } |
| ||||
public int compareTo(String otherName, boolean isOtherStatic) { int cmp = this.name.compareTo(otherName); if (cmp == 0) { if (this.isStatic == isOtherStatic) { return 0; } return this.isStatic ? -1: 1; } return cmp; } |
| |||
public int compareTo(String [[#variable94ac0b40]], boolean [[#variable94ac0ac0]]) { int cmp = this. [[#variable94ac0a40]].compareTo( [[#variable94ac0b40]]); if (cmp == 0) { if (this.isStatic == [[#variable94ac0ac0]]) { return 0; } return this.isStatic ? -1: 1; } return cmp; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#94ac0b40]] | fullName |
1 | 2 | [[#94ac0b40]] | otherName |
2 | 1 | [[#94ac0ac0]] | isStaticImport |
2 | 2 | [[#94ac0ac0]] | isOtherStatic |
3 | 1 | [[#94ac0a40]] | elementName |
3 | 2 | [[#94ac0a40]] | name |