CloneSet123


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17620.996statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117176
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java
217222
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java
318286
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java
417486
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java
518510
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java
617532
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java
Clone Instance
1
Line Count
17
Source Line
176
Source File
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);
                }


Clone Instance
2
Line Count
17
Source Line
222
Source File
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_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);
                }


Clone Instance
3
Line Count
18
Source Line
286
Source File
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_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);
                }


Clone Instance
4
Line Count
17
Source Line
486
Source File
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);
                        }


Clone Instance
5
Line Count
18
Source Line
510
Source File
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_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);
                        }


Clone Instance
6
Line Count
17
Source Line
532
Source File
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_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);
                }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b6b58f80]]
K_CLASS_BODY_DECLARATIONS 
12[[#b6b58f80]]
K_COMPILATION_UNIT 
13[[#b6b58f80]]
K_STATEMENTS 
14[[#b6b58f80]]
K_CLASS_BODY_DECLARATIONS 
15[[#b6b58f80]]
K_STATEMENTS 
16[[#b6b58f80]]
K_COMPILATION_UNIT 
21[[#b6b58f20]]
AbstractTypeDeclaration 
22[[#b6b58f20]]
CompilationUnit 
23[[#b6b58f20]]
Block 
24[[#b6b58f20]]
AbstractTypeDeclaration 
25[[#b6b58f20]]
Block 
26[[#b6b58f20]]
CompilationUnit