Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 4 | 0.985 | class_body_declarations[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 172 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java |
2 | 14 | 63 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.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); } |
| ||||
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); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bdb10ba0]] | Scribe |
1 | 2 | [[#bdb10ba0]] | Scribe2 |
2 | 1 | [[#bdb10b20]] | CodeFormatterVisitor |
2 | 2 | [[#bdb10b20]] | CodeFormatterVisitor2 |
3 | 1 | [[#bdb10ae0]] | CodeSnippetParsingUtil |
3 | 2 | [[#bdb10ae0]] | CompilationUnit |
4 | 1 | [[#bdb109a0]] | codeSnippetParsingUtil |
4 | 2 | [[#bdb109a0]] | unit |