CloneSet2029


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7220.982class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1759
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/AbortCompilation.java
2768
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/AbortCompilation.java
Clone Instance
1
Line Count
7
Source Line
59
Source File
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;
        }


Clone Instance
2
Line Count
7
Source Line
68
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/AbortCompilation.java

        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;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bad55320]]
InvocationSite 
12[[#bad55320]]
ASTNode 
21[[#bad55220]]
invocationSite 
22[[#bad55220]]
astNode