File path: /columba-1.4-src/core/src/main/java/org/columba/core/context/base/StructureValue.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/frame/FrameMediatorDockable.java | |||
Method name: void setObject(String, String, Object)
|
Method name: void FrameMediatorDockable(String, String, JComponent, JPopupMenu)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (theName == null) {↵ | 1 | if (id == null)↵ | |
2 | throw new IllegalArgumentException("name == null");↵ | 2 | throw new IllegalArgumentException("id == null");↵ | |
3 | }↵ | 3 | ↵ | |
4 | if (theNamespace == null) {↵ | 4 | if (name == null)↵ | |
5 | throw new IllegalArgumentException("namespace");↵ | 5 | throw new IllegalArgumentException("name↵ | |
6 | }↵ | |||
7 | if (value↵ | 6 | == null");↵ | |
8 | == null) {↵ | 7 | if (comp == null)↵ | |
9 | throw new IllegalArgumentException("value == null");↵ | 8 | throw new IllegalArgumentException("comp == null"); | |
10 | } | |||
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.4 |
Clones location | Clones are in different classes |
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) | 0.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (theName == null) |
| 3 | if (name == null) | ||||||||||||||
2 | throw new IllegalArgumentException("name == null"); | 4 | throw new IllegalArgumentException("name == null"); | |||||||||||||||
3 | if (theNamespace == null) |
| 5 | if (comp == null) | ||||||||||||||
4 | throw new IllegalArgumentException("namespace"); |
| 6 | throw new IllegalArgumentException("comp == null"); | ||||||||||||||
5 | if (value == null) |
| 1 | if (id == null) | ||||||||||||||
6 | throw new IllegalArgumentException("value == null"); |
| 2 | throw new IllegalArgumentException("id == null"); |
Row | Violation |
---|---|
1 | Type java.lang.String of variable theNamespace does not match with type javax.swing.JComponent of variable comp |
2 | Type java.lang.Object of variable value does not match with type java.lang.String of variable id |