Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 4 | 2 | 0.987 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 583 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java |
2 | 13 | 1556 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java |
3 | 13 | 2709 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java |
4 | 13 | 3024 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java |
| ||||
Alignment assignmentAlignment = this.scribe.createAlignment("fieldDeclarationAssignmentAlignment", this.preferences.alignment_for_assignment, Alignment.R_OUTERMOST, 1, this.scribe.scanner.currentPosition); //$NON-NLS-1$ this.scribe.enterAlignment(assignmentAlignment); boolean ok = false; do { try { this.scribe.alignFragment(assignmentAlignment, 0); initialization.traverse(this, scope); ok = true; } catch (AlignmentException e) { this.scribe.redoAlignment(e); } } while ( !ok); this.scribe.exitAlignment(assignmentAlignment, true); |
| ||||
Alignment assignmentAlignment = this.scribe.createAlignment("localDeclarationAssignmentAlignment", this.preferences.alignment_for_assignment, Alignment.R_OUTERMOST, 1, this.scribe.scanner.currentPosition); //$NON-NLS-1$ this.scribe.enterAlignment(assignmentAlignment); boolean ok = false; do { try { this.scribe.alignFragment(assignmentAlignment, 0); initialization.traverse(this, scope); ok = true; } catch (AlignmentException e) { this.scribe.redoAlignment(e); } } while ( !ok); this.scribe.exitAlignment(assignmentAlignment, true); |
| ||||
Alignment assignmentAlignment = this.scribe.createAlignment("assignmentAlignment", this.preferences.alignment_for_assignment, Alignment.R_OUTERMOST, 1, this.scribe.scanner.currentPosition); //$NON-NLS-1$ this.scribe.enterAlignment(assignmentAlignment); boolean ok = false; do { try { this.scribe.alignFragment(assignmentAlignment, 0); assignment.expression.traverse(this, scope); ok = true; } catch (AlignmentException e) { this.scribe.redoAlignment(e); } } while ( !ok); this.scribe.exitAlignment(assignmentAlignment, true); |
| ||||
Alignment assignmentAlignment = this.scribe.createAlignment("compoundAssignmentAlignment", this.preferences.alignment_for_assignment, Alignment.R_OUTERMOST, 1, this.scribe.scanner.currentPosition); //$NON-NLS-1$ this.scribe.enterAlignment(assignmentAlignment); boolean ok = false; do { try { this.scribe.alignFragment(assignmentAlignment, 0); compoundAssignment.expression.traverse(this, scope); ok = true; } catch (AlignmentException e) { this.scribe.redoAlignment(e); } } while ( !ok); this.scribe.exitAlignment(assignmentAlignment, true); |
| |||
Alignment assignmentAlignment = this.scribe.createAlignment( [[#variable574f6a20]], this.preferences.alignment_for_assignment, Alignment.R_OUTERMOST, 1, this.scribe.scanner.currentPosition); //$NON-NLS-1$ this.scribe.enterAlignment(assignmentAlignment); boolean ok = false; do { try { this.scribe.alignFragment(assignmentAlignment, 0); [[#variableb8ec55c0]].traverse(this, scope); ok = true; } catch (AlignmentException e) { this.scribe.redoAlignment(e); } } while ( !ok); this.scribe.exitAlignment(assignmentAlignment, true); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#574f6a20]] | "fieldDeclarationAssignmentAlignment" |
1 | 2 | [[#574f6a20]] | "localDeclarationAssignmentAlignment" |
1 | 3 | [[#574f6a20]] | "assignmentAlignment" |
1 | 4 | [[#574f6a20]] | "compoundAssignmentAlignment" |
2 | 1 | [[#b8ec55c0]] | initialization |
2 | 2 | [[#b8ec55c0]] | initialization |
2 | 3 | [[#b8ec55c0]] | assignment.expression |
2 | 4 | [[#b8ec55c0]] | compoundAssignment.expression |