Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 6 | 2 | 0.996 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 176 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java |
2 | 17 | 222 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java |
3 | 18 | 286 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java |
4 | 17 | 486 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java |
5 | 18 | 510 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java |
6 | 17 | 532 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java |
| ||||
if (USE_NEW_FORMATTER) { ASTParser parser = ASTParser.newParser(AST.JLS3); parser.setSource(source.toCharArray()); parser.setKind(ASTParser.K_CLASS_BODY_DECLARATIONS); parser.setCompilerOptions(getDefaultCompilerOptions()); parser.setResolveBindings(false); parser.setUnitName(""); //$NON-NLS-1$ org.eclipse.jdt.core.dom.ASTNode node = parser.createAST(null); if (lineSeparator != null) { this.preferences.line_separator = lineSeparator; } else { this.preferences.line_separator = System.getProperty("line.separator"); //$NON-NLS-1$ } this.preferences.initial_indentation_level = indentationLevel; this.newCodeFormatter2 = new CodeFormatterVisitor2(this.preferences, this.options, offset, length, (CompilationUnit) node.getRoot()); return this.newCodeFormatter2.format(source, (AbstractTypeDeclaration) node); } |
| ||||
if (USE_NEW_FORMATTER) { ASTParser parser = ASTParser.newParser(AST.JLS3); parser.setSource(source.toCharArray()); parser.setKind(ASTParser.K_COMPILATION_UNIT); parser.setCompilerOptions(getDefaultCompilerOptions()); parser.setResolveBindings(false); parser.setUnitName(""); //$NON-NLS-1$ org.eclipse.jdt.core.dom.ASTNode node = parser.createAST(null); if (lineSeparator != null) { this.preferences.line_separator = lineSeparator; } else { this.preferences.line_separator = System.getProperty("line.separator"); //$NON-NLS-1$ } this.preferences.initial_indentation_level = indentationLevel; this.newCodeFormatter2 = new CodeFormatterVisitor2(this.preferences, this.options, offset, length, (CompilationUnit) node.getRoot()); return this.newCodeFormatter2.format(source, (CompilationUnit) node); } |
| ||||
if (USE_NEW_FORMATTER) { ASTParser parser = ASTParser.newParser(AST.JLS3); parser.setSource(source.toCharArray()); parser.setKind(ASTParser.K_STATEMENTS); parser.setCompilerOptions(getDefaultCompilerOptions()); parser.setResolveBindings(false); parser.setUnitName(""); //$NON-NLS-1$ org.eclipse.jdt.core.dom.ASTNode node = parser.createAST(null); if (lineSeparator != null) { this.preferences.line_separator = lineSeparator; } else { this.preferences.line_separator = System.getProperty("line.separator"); //$NON-NLS-1$ } this.preferences.initial_indentation_level = indentationLevel; this.newCodeFormatter2 = new CodeFormatterVisitor2(this.preferences, this.options, offset, length, (CompilationUnit) node.getRoot()); return this.newCodeFormatter2.format(source, (Block) node); } |
| ||||
if (USE_NEW_FORMATTER) { ASTParser parser = ASTParser.newParser(AST.JLS3); parser.setSource(source.toCharArray()); parser.setKind(ASTParser.K_CLASS_BODY_DECLARATIONS); parser.setCompilerOptions(getDefaultCompilerOptions()); parser.setResolveBindings(false); parser.setUnitName(""); //$NON-NLS-1$ org.eclipse.jdt.core.dom.ASTNode node = parser.createAST(null); if (lineSeparator != null) { this.preferences.line_separator = lineSeparator; } else { this.preferences.line_separator = System.getProperty("line.separator"); //$NON-NLS-1$ } this.preferences.initial_indentation_level = indentationLevel; this.newCodeFormatter2 = new CodeFormatterVisitor2(this.preferences, this.options, offset, length, (CompilationUnit) node.getRoot()); return this.newCodeFormatter2.format(source, (AbstractTypeDeclaration) node); } |
| ||||
if (USE_NEW_FORMATTER) { ASTParser parser = ASTParser.newParser(AST.JLS3); parser.setSource(source.toCharArray()); parser.setKind(ASTParser.K_STATEMENTS); parser.setCompilerOptions(getDefaultCompilerOptions()); parser.setResolveBindings(false); parser.setUnitName(""); //$NON-NLS-1$ org.eclipse.jdt.core.dom.ASTNode node = parser.createAST(null); if (lineSeparator != null) { this.preferences.line_separator = lineSeparator; } else { this.preferences.line_separator = System.getProperty("line.separator"); //$NON-NLS-1$ } this.preferences.initial_indentation_level = indentationLevel; this.newCodeFormatter2 = new CodeFormatterVisitor2(this.preferences, this.options, offset, length, (CompilationUnit) node.getRoot()); return this.newCodeFormatter2.format(source, (Block) node); } |
| ||||
if (USE_NEW_FORMATTER) { ASTParser parser = ASTParser.newParser(AST.JLS3); parser.setSource(source.toCharArray()); parser.setKind(ASTParser.K_COMPILATION_UNIT); parser.setCompilerOptions(getDefaultCompilerOptions()); parser.setResolveBindings(false); parser.setUnitName(""); //$NON-NLS-1$ org.eclipse.jdt.core.dom.ASTNode node = parser.createAST(null); if (lineSeparator != null) { this.preferences.line_separator = lineSeparator; } else { this.preferences.line_separator = System.getProperty("line.separator"); //$NON-NLS-1$ } this.preferences.initial_indentation_level = indentationLevel; this.newCodeFormatter2 = new CodeFormatterVisitor2(this.preferences, this.options, offset, length, (CompilationUnit) node.getRoot()); return this.newCodeFormatter2.format(source, (CompilationUnit) node); } |
| |||
if (USE_NEW_FORMATTER) { ASTParser parser = ASTParser.newParser(AST.JLS3); parser.setSource(source.toCharArray()); parser.setKind(ASTParser. [[#variableb6b58f80]]); parser.setCompilerOptions(getDefaultCompilerOptions()); parser.setResolveBindings(false); parser.setUnitName(""); //$NON-NLS-1$ org.eclipse.jdt.core.dom.ASTNode node = parser.createAST(null); if (lineSeparator != null) { this.preferences.line_separator = lineSeparator; } else { this.preferences.line_separator = System.getProperty("line.separator"); //$NON-NLS-1$ } this.preferences.initial_indentation_level = indentationLevel; this.newCodeFormatter2 = new CodeFormatterVisitor2(this.preferences, this.options, offset, length, (CompilationUnit) node.getRoot()); return this.newCodeFormatter2.format(source, ( [[#variableb6b58f20]]) node); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b6b58f80]] | K_CLASS_BODY_DECLARATIONS |
1 | 2 | [[#b6b58f80]] | K_COMPILATION_UNIT |
1 | 3 | [[#b6b58f80]] | K_STATEMENTS |
1 | 4 | [[#b6b58f80]] | K_CLASS_BODY_DECLARATIONS |
1 | 5 | [[#b6b58f80]] | K_STATEMENTS |
1 | 6 | [[#b6b58f80]] | K_COMPILATION_UNIT |
2 | 1 | [[#b6b58f20]] | AbstractTypeDeclaration |
2 | 2 | [[#b6b58f20]] | CompilationUnit |
2 | 3 | [[#b6b58f20]] | Block |
2 | 4 | [[#b6b58f20]] | AbstractTypeDeclaration |
2 | 5 | [[#b6b58f20]] | Block |
2 | 6 | [[#b6b58f20]] | CompilationUnit |