CloneSet1125


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25220.993class_body_declarations[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12528
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/Location.java
22527
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/Location2.java
Clone Instance
1
Line Count
25
Source Line
28
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/Location.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();
        }


Clone Instance
2
Line Count
25
Source Line
27
Source File
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 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();
        }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#babccc00]]
Location 
12[[#babccc00]]
Location2 
21[[#babccb60]]
Scribe 
22[[#babccb60]]
Scribe2