CloneSet999


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10220.958statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110244
plugins/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java
21089
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/DefaultProblem.java
Clone Instance
1
Line Count
10
Source Line
244
Source File
plugins/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java

                        //the next code tries to underline the token.....
                        //it assumes (for a good display) that token source does not
                        //contain any \r \n. This is false on statements ! 
                        //(the code still works but the display is not optimal !)
                        // expand to line limits
                        int length = unitSource.length, begin, end;
                        for (begin = startPosition >= length ? length - 1:  startPosition; begin > 0; begin--) {
                                if ((c = unitSource[begin - 1]) == '\n' || c == '\r') break;
                        }
                        for (end = endPosition >= length ? length - 1:  endPosition;  end + 1 < length; end++) {
                                if ((c = unitSource[end + 1]) == '\r' || c == '\n') break;
                        }

                        // trim left and right spaces/tabs
                        while ((c = unitSource[begin]) == ' ' || c == '\t') begin++;


Clone Instance
2
Line Count
10
Source Line
89
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/DefaultProblem.java

        //the next code tries to underline the token.....
        //it assumes (for a good display) that token source does not
        //contain any \r \n. This is false on statements ! 
        //(the code still works but the display is not optimal !)
        // expand to line limits
        int length = unitSource.length, begin, end;
        for (begin = this.startPosition >= length ? length - 1:  this.startPosition; begin > 0; begin--) {
                if ((c = unitSource[begin - 1]) == '\n' || c == '\r') break;
        }
        for (end = this.endPosition >= length ? length - 1:  this.endPosition;  end + 1 < length; end++) {
                if ((c = unitSource[end + 1]) == '\r' || c == '\n') break;
        }

        // trim left and right spaces/tabs
        while ((c = unitSource[begin]) == ' ' || c == '\t') begin++;


Clone AbstractionParameter Count: 2Parameter Bindings

//the next code tries to underline the token.....
//it assumes (for a good display) that token source does not
//contain any \r \n. This is false on statements ! 
//(the code still works but the display is not optimal !)
// expand to line limits
int length = unitSource.length, begin, end;
for (begin = [[#variable50351000]]>= length ? length - 1: [[#variable50351000]]; begin > 0; begin--) {
  if ((c = unitSource[begin - 1]) == '\n' || c == '\r')
    break;
}
for (end = [[#variable50351040]]>= length ? length - 1: [[#variable50351040]]; end + 1 < length; end++) {
  if ((c = unitSource[end + 1]) == '\r' || c == '\n')
    break;
}
// trim left and right spaces/tabs
while ((c = unitSource[begin]) == ' ' || c == '\t')
  begin++;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#50351000]]
startPosition 
12[[#50351000]]
this.startPosition 
21[[#50351040]]
endPosition 
22[[#50351040]]
this.endPosition