CloneSet2458


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12230.950statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112522
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java
212559
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java
Clone Instance
1
Line Count
12
Source Line
522
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java

                        while (true) {
                                start = scanForward(start + 1, UNBOUND, new CharacterMatch(new char[] {
                                                                                                       openingPeer, closingPeer
                                                                                                      } ));
                                if (start == NOT_FOUND)
                                        return NOT_FOUND;
                                if (fDocument.getChar(start) == openingPeer)
                                        depth++;
                                else
                                        depth--;
                                if (depth == 0)
                                        return start;
                        }


Clone Instance
2
Line Count
12
Source Line
559
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java

                        while (true) {
                                start = scanBackward(start - 1, UNBOUND, new CharacterMatch(new char[] {
                                                                                                        openingPeer, closingPeer
                                                                                                       } ));
                                if (start == NOT_FOUND)
                                        return NOT_FOUND;
                                if (fDocument.getChar(start) == closingPeer)
                                        depth++;
                                else
                                        depth--;
                                if (depth == 0)
                                        return start;
                        }


Clone AbstractionParameter Count: 3Parameter Bindings

while (true) {
  start = [[#variablea4b47bc0]]( [[#variablea4b47b00]], UNBOUND, new CharacterMatch(new char[] {
                                                                                                 openingPeer,
                                                                                                 closingPeer
                                                                                               } ));
  if (start == NOT_FOUND)
    return NOT_FOUND;
  if (fDocument.getChar(start) == [[#variablea4b47a80]])
    depth++;
  else
    depth--;
  if (depth == 0)
    return start;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a4b47bc0]]
scanBackward 
12[[#a4b47bc0]]
scanForward 
21[[#a4b47b00]]
start - 1 
22[[#a4b47b00]]
start + 1 
31[[#a4b47a80]]
closingPeer 
32[[#a4b47a80]]
openingPeer