CloneSet1011


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17240.978statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11758
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/CodeSnippetParsingUtil.java
216170
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/CodeSnippetParsingUtil.java
Clone Instance
1
Line Count
17
Source Line
58
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/CodeSnippetParsingUtil.java

                CompilerOptions compilerOptions = new CompilerOptions(settings);
                final ProblemReporter problemReporter = new ProblemReporter(
                                        DefaultErrorHandlingPolicies.proceedWithAllProblems(), 
                                        compilerOptions, 
                                        new DefaultProblemFactory(Locale.getDefault()));

                CommentRecorderParser parser = new CommentRecorderParser(problemReporter, false);
                parser.setStatementsRecovery(false);

                ICompilationUnit sourceUnit =
                        new CompilationUnit(
                                source, 
                                "", //$NON-NLS-1$
                                 compilerOptions.defaultEncoding);

                CompilationResult compilationResult = new CompilationResult(sourceUnit, 0, 0, compilerOptions.maxProblemsPerUnit);
                final CompilationUnitDeclaration compilationUnitDeclaration = new CompilationUnitDeclaration(problemReporter, compilationResult, source.length);


Clone Instance
2
Line Count
16
Source Line
170
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/CodeSnippetParsingUtil.java

                CompilerOptions compilerOptions = new CompilerOptions(settings);
                final ProblemReporter problemReporter = new ProblemReporter(
                                        DefaultErrorHandlingPolicies.proceedWithAllProblems(), 
                                        compilerOptions, 
                                        new DefaultProblemFactory(Locale.getDefault()));
                CommentRecorderParser parser = new CommentRecorderParser(problemReporter, false);
                parser.setStatementsRecovery(enabledStatementRecovery);

                ICompilationUnit sourceUnit =
                        new CompilationUnit(
                                source, 
                                "", //$NON-NLS-1$
                                 compilerOptions.defaultEncoding);

                final CompilationResult compilationResult = new CompilationResult(sourceUnit, 0, 0, compilerOptions.maxProblemsPerUnit);
                CompilationUnitDeclaration compilationUnitDeclaration = new CompilationUnitDeclaration(problemReporter, compilationResult, length);


Clone AbstractionParameter Count: 4Parameter Bindings

CompilerOptions compilerOptions = new CompilerOptions(settings);
final ProblemReporter problemReporter = new ProblemReporter(DefaultErrorHandlingPolicies.proceedWithAllProblems(), compilerOptions, new DefaultProblemFactory(Locale.getDefault()));
CommentRecorderParser parser = new CommentRecorderParser(problemReporter, false);
parser.setStatementsRecovery( [[#variable59c2f180]]);
ICompilationUnit sourceUnit = new CompilationUnit(source, "", //$NON-NLS-1$
                                                   compilerOptions.defaultEncoding);
 [[#variable59c2f9a0]]CompilationResult compilationResult = new CompilationResult(sourceUnit, 0, 0, compilerOptions.maxProblemsPerUnit);
 [[#variable59c2fa20]]CompilationUnitDeclaration compilationUnitDeclaration = new CompilationUnitDeclaration(problemReporter, compilationResult,  [[#variablec0d6c820]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#59c2f180]]
false 
12[[#59c2f180]]
enabledStatementRecovery 
21[[#59c2f9a0]]
22[[#59c2f9a0]]
final 
31[[#59c2fa20]]
final 
32[[#59c2fa20]]
41[[#c0d6c820]]
source.length 
42[[#c0d6c820]]
length