CloneSet1085


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12240.985class_body_declarations[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112172
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
21463
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java
Clone Instance
1
Line Count
12
Source Line
172
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java

        private Scanner localScanner;

        public DefaultCodeFormatterOptions preferences;

        public Scribe scribe;

        public CodeFormatterVisitor(DefaultCodeFormatterOptions preferences, Map settings, int offset, int length, CodeSnippetParsingUtil codeSnippetParsingUtil) {
                long sourceLevel = settings == null ?
                          ClassFileConstants.JDK1_3:
                          CompilerOptions.versionToJdkLevel(settings.get(JavaCore.COMPILER_SOURCE));
                this.localScanner = new Scanner(true, false, false
                                                                  /*nls*/
                                                                  ,        sourceLevel
                                                                                      /*sourceLevel*/
                                                                                      ,                null
                                                                                                           /*taskTags*/
                                                                                                           ,             null
                                                                                                                             /*taskPriorities*/
                                                                                                                             ,                   true
                                                                                                                                                     /*taskCaseSensitive*/
                                                                                                                                                     );
                this.preferences = preferences;
                this.scribe = new Scribe(this, sourceLevel, offset, length, codeSnippetParsingUtil);
        }


Clone Instance
2
Line Count
14
Source Line
63
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java

        private Scanner localScanner;

        public DefaultCodeFormatterOptions preferences;

        public Scribe2 scribe;

        public CodeFormatterVisitor2(DefaultCodeFormatterOptions preferences, Map settings, int offset, int length, CompilationUnit unit) {
                long sourceLevel = settings == null ?
                          ClassFileConstants.JDK1_3:
                          CompilerOptions.versionToJdkLevel(settings.get(JavaCore.COMPILER_SOURCE));
                this.localScanner = new Scanner(true, false, false
                                                                  /*nls*/
                                                                  ,        sourceLevel
                                                                                      /*sourceLevel*/
                                                                                      ,                null
                                                                                                           /*taskTags*/
                                                                                                           ,             null
                                                                                                                             /*taskPriorities*/
                                                                                                                             ,                   true
                                                                                                                                                     /*taskCaseSensitive*/
                                                                                                                                                     );
                this.preferences = preferences;
                this.scribe = new Scribe2(this, sourceLevel, offset, length, unit);
        }


Clone AbstractionParameter Count: 4Parameter Bindings

private Scanner localScanner;

public DefaultCodeFormatterOptions preferences;

public [[#variablebdb10ba0]] scribe;

public [[#variablebdb10b20]](DefaultCodeFormatterOptions preferences, Map settings, int offset, int length, [[#variablebdb10ae0]]  [[#variablebdb109a0]]) {
  long sourceLevel = settings == null ? ClassFileConstants.JDK1_3: CompilerOptions.versionToJdkLevel(settings.get(JavaCore.COMPILER_SOURCE));
  this.localScanner = new Scanner(true, false, false
                                                    /*nls*/
                                                    , sourceLevel
                                                                 /*sourceLevel*/
                                                                 , null
                                                                       /*taskTags*/
                                                                       , null
                                                                             /*taskPriorities*/
                                                                             , true
                                                                                   /*taskCaseSensitive*/
                                                                                   );
  this.preferences = preferences;
  this.scribe = new [[#variablebdb10ba0]](this, sourceLevel, offset, length,  [[#variablebdb109a0]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bdb10ba0]]
Scribe 
12[[#bdb10ba0]]
Scribe2 
21[[#bdb10b20]]
CodeFormatterVisitor 
22[[#bdb10b20]]
CodeFormatterVisitor2 
31[[#bdb10ae0]]
CodeSnippetParsingUtil 
32[[#bdb10ae0]]
CompilationUnit 
41[[#bdb109a0]]
codeSnippetParsingUtil 
42[[#bdb109a0]]
unit