CloneSet864


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20230.985statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1201009
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTParser.java
2201032
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTParser.java
Clone Instance
1
Line Count
20
Source Line
1009
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTParser.java

                                recordedParsingInformation = codeSnippetParsingUtil.recordedParsingInformation;
                                comments = recordedParsingInformation.commentPositions;
                                if (comments != null) {
                                        converter.buildCommentsTable(compilationUnit, comments);
                                }
                                compilationUnit.setLineEndTable(recordedParsingInformation.lineEnds);
                                if (expression != null) {
                                        Expression expression2 = converter.convert(expression);
                                        rootNodeToCompilationUnit(expression2.getAST(), compilationUnit, expression2, codeSnippetParsingUtil.recordedParsingInformation, null);
                                        ast.setDefaultNodeFlag(0);
                                        ast.setOriginalModificationCount(ast.modificationCount());
                                        return expression2;
                                }
                                else   {
                                        CategorizedProblem[] problems = recordedParsingInformation.problems;
                                        if (problems != null) {
                                                compilationUnit.setProblems(problems);
                                        }
                                        ast.setDefaultNodeFlag(0);
                                        ast.setOriginalModificationCount(ast.modificationCount());
                                        return compilationUnit;
                                }


Clone Instance
2
Line Count
20
Source Line
1032
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTParser.java

                                recordedParsingInformation = codeSnippetParsingUtil.recordedParsingInformation;
                                comments = recordedParsingInformation.commentPositions;
                                if (comments != null) {
                                        converter.buildCommentsTable(compilationUnit, comments);
                                }
                                compilationUnit.setLineEndTable(recordedParsingInformation.lineEnds);
                                if (nodes != null) {
                                        TypeDeclaration typeDeclaration = converter.convert(nodes);
                                        rootNodeToCompilationUnit(typeDeclaration.getAST(), compilationUnit, typeDeclaration, codeSnippetParsingUtil.recordedParsingInformation, null);
                                        ast.setDefaultNodeFlag(0);
                                        ast.setOriginalModificationCount(ast.modificationCount());
                                        return typeDeclaration;
                                }
                                else   {
                                        CategorizedProblem[] problems = recordedParsingInformation.problems;
                                        if (problems != null) {
                                                compilationUnit.setProblems(problems);
                                        }
                                        ast.setDefaultNodeFlag(0);
                                        ast.setOriginalModificationCount(ast.modificationCount());
                                        return compilationUnit;
                                }


Clone AbstractionParameter Count: 3Parameter Bindings

recordedParsingInformation = codeSnippetParsingUtil.recordedParsingInformation;
comments = recordedParsingInformation.commentPositions;
if (comments != null) {
  converter.buildCommentsTable(compilationUnit, comments);
}
compilationUnit.setLineEndTable(recordedParsingInformation.lineEnds);
if ( [[#variable52d4f920]]!= null) {
   [[#variableb820d420]]  [[#variable53855d60]]= converter.convert( [[#variable52d4f920]]);
  rootNodeToCompilationUnit( [[#variable53855d60]].getAST(), compilationUnit,  [[#variable53855d60]], codeSnippetParsingUtil.recordedParsingInformation, null);
  ast.setDefaultNodeFlag(0);
  ast.setOriginalModificationCount(ast.modificationCount());
  return [[#variable53855d60]];
}
else {
  CategorizedProblem[] problems = recordedParsingInformation.problems;
  if (problems != null) {
    compilationUnit.setProblems(problems);
  }
  ast.setDefaultNodeFlag(0);
  ast.setOriginalModificationCount(ast.modificationCount());
  return compilationUnit;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#52d4f920]]
expression 
12[[#52d4f920]]
nodes 
21[[#b820d420]]
Expression 
22[[#b820d420]]
TypeDeclaration 
31[[#53855d60]]
expression2 
32[[#53855d60]]
typeDeclaration