Event model = new Event(uuid);
model.setSummary("summary");
model.setDescription("description");
EventInfo eventInfo = new EventInfo(uuid, "calendar1", model);
storage.add(eventInfo);
Event model = new Event(uuid);
model.setSummary("summary");
model.setDescription("description");
EventInfo eventInfo = new EventInfo(uuid, "calendar1", model);
storage.add(eventInfo);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/test/java/org/columba/calendar/store/LocalCalendarStoreTest.java
|
|
File path: /columba-1.4-src/calendar/src/test/java/org/columba/calendar/store/LocalCalendarStoreTest.java
|
Method name: void testAddGet()
|
|
Method name: void testRemove()
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | Event model = new Event(uuid);↵ | | 1 | Event model = new Event(uuid);↵
|
2 | model.setSummary("summary");↵ | | 2 | model.setSummary("summary");↵
|
3 | model.setDescription("description");↵ | | 3 | model.setDescription("description");↵
|
4 | ↵ | | 4 | ↵
|
5 | EventInfo eventInfo = new EventInfo(uuid, "calendar1", model);↵ | | 5 | EventInfo eventInfo = new EventInfo(uuid, "calendar1", model);↵
|
|
6 | storage.add(eventInfo); | | 6 | storage.add(eventInfo);
|
See real code fragment |
|
See real code fragment |
Summary
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 11 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 5 |
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.0 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
2 | Event model = new Event(uuid); | | 2 | Event model = new Event(uuid); |
3 | model.setSummary("summary"); | | 3 | model.setSummary("summary"); |
4 | model.setDescription("description"); | | 4 | model.setDescription("description"); |
5 | EventInfo eventInfo = new EventInfo(uuid, "calendar1", model); | | 5 | EventInfo eventInfo = new EventInfo(uuid, "calendar1", model); |
6 | storage.add(eventInfo); | | 6 | storage.add(eventInfo); |
Precondition Violations (0)
Row |
Violation |