File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/KeyEventTranslator.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/KeyEventTranslator.java | |||
Method name: void setModifierMapping(int, int, int, int)
|
Method name: void setModifierMapping(int, int, int, int)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if((duplicateMapping & InputEvent.CTRL_MASK) != 0) {↵ | |||
2 | throw new IllegalArgumentException(↵ | |||
3 | "CTRL is mapped to more than one modifier");↵ | |||
4 | }↵ | |||
5 | if((duplicateMapping & InputEvent.ALT_MASK) != 0) {↵ | 1 | if((duplicateMapping & InputEvent.ALT_MASK) != 0) {↵ | |
6 | throw new IllegalArgumentException(↵ | 2 | throw new IllegalArgumentException(↵ | |
7 | "ALT is mapped to more than one modifier");↵ | 3 | "ALT is mapped to more than one modifier");↵ | |
8 | }↵ | 4 | }↵ | |
9 | if((duplicateMapping & InputEvent.META_MASK) != 0) {↵ | 5 | if((duplicateMapping & InputEvent.META_MASK) != 0) {↵ | |
10 | throw new IllegalArgumentException(↵ | 6 | throw new IllegalArgumentException(↵ | |
11 | "META is mapped to more than one modifier");↵ | 7 | "META is mapped to more than one modifier");↵ | |
12 | } | 8 | }↵ | |
9 | if((duplicateMapping & InputEvent.SHIFT_MASK) != 0) {↵ | |||
10 | throw new IllegalArgumentException(↵ | |||
11 | "SHIFT is mapped to more than one modifier");↵ | |||
12 |
| |||
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) | 1.5 |
Clones location | Clones are in the same method |
Number of node comparisons | 27 |
Number of mapped statements | 6 |
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) | 1.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | if ((duplicateMapping & InputEvent.CTRL_MASK) != 0) |
| 4 | if ((duplicateMapping & InputEvent.ALT_MASK) != 0) | ||||||||||
3 | throw new IllegalArgumentException("CTRL is mapped to more than one modifier"); |
| 5 | throw new IllegalArgumentException("ALT is mapped to more than one modifier"); | ||||||||||
4 | if ((duplicateMapping & InputEvent.ALT_MASK) != 0) |
| 6 | if ((duplicateMapping & InputEvent.META_MASK) != 0) | ||||||||||
5 | throw new IllegalArgumentException("ALT is mapped to more than one modifier"); |
| 7 | throw new IllegalArgumentException("META is mapped to more than one modifier"); | ||||||||||
6 | if ((duplicateMapping & InputEvent.META_MASK) != 0) |
| 8 | if ((duplicateMapping & InputEvent.SHIFT_MASK) != 0) | ||||||||||
7 | throw new IllegalArgumentException("META is mapped to more than one modifier"); |
| 9 | throw new IllegalArgumentException("SHIFT is mapped to more than one modifier"); |
Row | Violation |
---|