Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 2 | 0.989 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 150 | plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/EvaluationResult.java |
2 | 10 | 177 | plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/EvaluationResult.java |
| ||||
/** * Returns whether there are errors in the code snippet or the global variable definition. */ public boolean hasErrors() { if (this.problems == null) { return false; } else { for (int i = 0; i < this.problems.length; i++) { if (this.problems[i].isError()) { return true; } } return false; } } |
| ||||
/** * Returns whether there are warnings in the code snippet or the global variable definition. */ public boolean hasWarnings() { if (this.problems == null) { return false; } else { for (int i = 0; i < this.problems.length; i++) { if (this.problems[i].isWarning()) { return true; } } return false; } } |
| |||
/** * Returns whether there are errors in the code snippet or the global variable definition. */ /** * Returns whether there are warnings in the code snippet or the global variable definition. */ public boolean [[#variable76c35a00]]() { if (this.problems == null) { return false; } else { for (int i = 0; i < this.problems.length; i++) { if (this.problems[i]. [[#variable76c358e0]]()) { return true; } } return false; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#76c35a00]] | hasErrors |
1 | 2 | [[#76c35a00]] | hasWarnings |
2 | 1 | [[#76c358e0]] | isError |
2 | 2 | [[#76c358e0]] | isWarning |