File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/parser/CalendarImporter.java | File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/parser/CalendarImporter.java | |||
Method name: Iterator
|
Method name: Iterator
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | if (summary != null)↵ | 1 | if (priority != null)↵ | |
2 | event.setSummary(summary);↵ | 2 | event.setPriority(priority);↵ | |
3 | if (eventClass != null)↵ | 3 | if (status != null)↵ | |
4 | event.setEventClass(eventClass);↵ | 4 | event.setStatus(status);↵ | |
5 | if (location != null)↵ | 5 | if (url != null)↵ | |
6 | event.setLocation(location);↵ | 6 | event.setUrl(url);↵ | |
7 | if (priority != null)↵ | 7 | if (description != null)↵ | |
8 | event.setPriority(priority); | 8 | event.setDescription(description); | |
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.6 |
Clones location | Clones are in the same method |
Number of node comparisons | 49 |
Number of mapped statements | 7 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 2.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
107 | if (summary != null) |
| 113 | if (priority != null) | |||||||||||||||
108 | event.setSummary(summary); |
| 114 | event.setPriority(priority); | |||||||||||||||
109 | if (eventClass != null) |
| 115 | if (status != null) | |||||||||||||||
110 | event.setEventClass(eventClass); |
| 116 | event.setStatus(status); | |||||||||||||||
111 | if (location != null) |
| 119 | if (description != null) | |||||||||||||||
112 | event.setLocation(location); |
| 120 | event.setDescription(description); | |||||||||||||||
113 | if (priority != null) |
| 117 | if (url != null) | |||||||||||||||
114 | event.setPriority(priority); | | |||||||||||||||||
| 118 | event.setUrl(url); |
Row | Violation |
---|---|
1 | Expression event.setSummary(summary) is a void method call, and thus it cannot be parameterized |
2 | Expression event.setPriority(priority) is a void method call, and thus it cannot be parameterized |
3 | Expression event.setEventClass(eventClass) is a void method call, and thus it cannot be parameterized |
4 | Expression event.setStatus(status) is a void method call, and thus it cannot be parameterized |
5 | Expression event.setLocation(location) is a void method call, and thus it cannot be parameterized |
6 | Expression event.setDescription(description) is a void method call, and thus it cannot be parameterized |
7 | Type java.lang.String of variable priority does not match with type java.net.URL of variable url |