Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
25 | 2 | 2 | 0.993 | class_body_declarations[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 25 | 28 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/Location.java |
2 | 25 | 27 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/Location2.java |
| ||||
public int numberOfIndentations; // chunk management public int lastNumberOfNewLines; // edits management int editsIndex; OptimizedReplaceEdit textEdit; public Location(Scribe scribe, int sourceRestart) { update(scribe, sourceRestart); } public void update(Scribe scribe, int sourceRestart) { this.outputColumn = scribe.column; this.outputLine = scribe.line; this.inputOffset = sourceRestart; this.outputIndentationLevel = scribe.indentationLevel; this.lastNumberOfNewLines = scribe.lastNumberOfNewLines; this.needSpace = scribe.needSpace; this.pendingSpace = scribe.pendingSpace; this.editsIndex = scribe.editsIndex; this.nlsTagCounter = scribe.nlsTagCounter; this.numberOfIndentations = scribe.numberOfIndentations; textEdit = scribe.getLastEdit(); } |
| ||||
public int numberOfIndentations; // chunk management public int lastNumberOfNewLines; // edits management int editsIndex; OptimizedReplaceEdit textEdit; public Location2(Scribe2 scribe, int sourceRestart) { update(scribe, sourceRestart); } public void update(Scribe2 scribe, int sourceRestart) { this.outputColumn = scribe.column; this.outputLine = scribe.line; this.inputOffset = sourceRestart; this.outputIndentationLevel = scribe.indentationLevel; this.lastNumberOfNewLines = scribe.lastNumberOfNewLines; this.needSpace = scribe.needSpace; this.pendingSpace = scribe.pendingSpace; this.editsIndex = scribe.editsIndex; this.nlsTagCounter = scribe.nlsTagCounter; this.numberOfIndentations = scribe.numberOfIndentations; textEdit = scribe.getLastEdit(); } |
| |||
public int numberOfIndentations; // chunk management public int lastNumberOfNewLines; // edits management int editsIndex; OptimizedReplaceEdit textEdit; public [[#variablebabccc00]]( [[#variablebabccb60]] scribe, int sourceRestart) { update(scribe, sourceRestart); } public void update( [[#variablebabccb60]] scribe, int sourceRestart) { this.outputColumn = scribe.column; this.outputLine = scribe.line; this.inputOffset = sourceRestart; this.outputIndentationLevel = scribe.indentationLevel; this.lastNumberOfNewLines = scribe.lastNumberOfNewLines; this.needSpace = scribe.needSpace; this.pendingSpace = scribe.pendingSpace; this.editsIndex = scribe.editsIndex; this.nlsTagCounter = scribe.nlsTagCounter; this.numberOfIndentations = scribe.numberOfIndentations; textEdit = scribe.getLastEdit(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#babccc00]] | Location |
1 | 2 | [[#babccc00]] | Location2 |
2 | 1 | [[#babccb60]] | Scribe |
2 | 2 | [[#babccb60]] | Scribe2 |