Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 2 | 0.967 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 89 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/env/NameEnvironmentAnswer.java |
2 | 13 | 64 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/NameLookup.java |
| ||||
public boolean ignoreIfBetter() { return this.accessRestriction != null && this.accessRestriction.ignoreIfBetter(); } /* * Returns whether this answer is better than the other awswer. * (accessible is better than discouraged, which is better than * non-accessible) */ public boolean isBetter(NameEnvironmentAnswer otherAnswer) { if (otherAnswer == null) return true; if (this.accessRestriction == null) return true; return otherAnswer.accessRestriction != null && this.accessRestriction.getProblemId() < otherAnswer.accessRestriction.getProblemId(); } |
| ||||
public boolean ignoreIfBetter() { return this.restriction != null && this.restriction.ignoreIfBetter(); } /* * Returns whether this answer is better than the other awswer. * (accessible is better than discouraged, which is better than * non-accessible) */ public boolean isBetter(Answer otherAnswer) { if (otherAnswer == null) return true; if (this.restriction == null) return true; return otherAnswer.restriction != null && this.restriction.getProblemId() < otherAnswer.restriction.getProblemId(); } |
| |||
public boolean ignoreIfBetter() { return this. [[#variablea06057a0]]!= null && this. [[#variablea06057a0]].ignoreIfBetter(); } /* * Returns whether this answer is better than the other awswer. * (accessible is better than discouraged, which is better than * non-accessible) */ /* * Returns whether this answer is better than the other awswer. * (accessible is better than discouraged, which is better than * non-accessible) */ public boolean isBetter( [[#variablea0605720]] otherAnswer) { if (otherAnswer == null) return true; if (this. [[#variablea06057a0]]== null) return true; return otherAnswer. [[#variablea06057a0]]!= null && this. [[#variablea06057a0]].getProblemId() < otherAnswer. [[#variablea06057a0]].getProblemId(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a06057a0]] | accessRestriction |
1 | 2 | [[#a06057a0]] | restriction |
2 | 1 | [[#a0605720]] | NameEnvironmentAnswer |
2 | 2 | [[#a0605720]] | Answer |