File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/CompleteWord.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/CompleteWord.java | |||
Method name: void getCompletions(Buffer, String, KeywordMap, String, int, Set)
|
Method name: void getCompletions(Buffer, String, KeywordMap, String, int, Set)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | Completion comp = new Completion(_word,false);↵ | 1 | Completion comp = new Completion(_word,false);↵ | |
2 | // remove duplicates↵ | 2 | // remove duplicates↵ | |
3 | if(!completions.contains(comp))↵ | 3 | if(!completions.contains(comp))↵ | |
4 | {↵ | 4 | {↵ | |
5 | completions.add(comp);↵ | 5 | completions.add(comp);↵ | |
6 | } | 6 | } | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.5 |
Clones location | Clones are in the same method |
Number of node comparisons | 12 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 3.3 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
15 | Completion comp = new Completion(_word, false); | 24 | Completion comp = new Completion(_word, false); | |
16 | if (!completions.contains(comp)) | 25 | if (!completions.contains(comp)) | |
17 | completions.add(comp); | 26 | completions.add(comp); |
Row | Violation |
---|