Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 2 | 0.982 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 59 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/AbortCompilation.java |
2 | 7 | 68 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/AbortCompilation.java |
| ||||
public void updateContext(InvocationSite invocationSite, CompilationResult unitResult) { if (this.problem == null) return; if (this.problem.getSourceStart() != 0 || this.problem.getSourceEnd() != 0) return; this.problem.setSourceStart(invocationSite.sourceStart()); this.problem.setSourceEnd(invocationSite.sourceEnd()); this.problem.setSourceLineNumber(Util.searchLineNumber(unitResult.getLineSeparatorPositions(), invocationSite.sourceStart())); this.compilationResult = unitResult; } |
| ||||
public void updateContext(ASTNode astNode, CompilationResult unitResult) { if (this.problem == null) return; if (this.problem.getSourceStart() != 0 || this.problem.getSourceEnd() != 0) return; this.problem.setSourceStart(astNode.sourceStart()); this.problem.setSourceEnd(astNode.sourceEnd()); this.problem.setSourceLineNumber(Util.searchLineNumber(unitResult.getLineSeparatorPositions(), astNode.sourceStart())); this.compilationResult = unitResult; } |
| |||
public void updateContext( [[#variablebad55320]] [[#variablebad55220]], CompilationResult unitResult) { if (this.problem == null) return; if (this.problem.getSourceStart() != 0 || this.problem.getSourceEnd() != 0) return; this.problem.setSourceStart( [[#variablebad55220]].sourceStart()); this.problem.setSourceEnd( [[#variablebad55220]].sourceEnd()); this.problem.setSourceLineNumber(Util.searchLineNumber(unitResult.getLineSeparatorPositions(), [[#variablebad55220]].sourceStart())); this.compilationResult = unitResult; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bad55320]] | InvocationSite |
1 | 2 | [[#bad55320]] | ASTNode |
2 | 1 | [[#bad55220]] | invocationSite |
2 | 2 | [[#bad55220]] | astNode |