Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 3 | 0.950 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 522 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java |
2 | 12 | 559 | 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; } |
| ||||
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; } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a4b47bc0]] | scanBackward |
1 | 2 | [[#a4b47bc0]] | scanForward |
2 | 1 | [[#a4b47b00]] | start - 1 |
2 | 2 | [[#a4b47b00]] | start + 1 |
3 | 1 | [[#a4b47a80]] | closingPeer |
3 | 2 | [[#a4b47a80]] | openingPeer |