File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/importfilter/LocationStep.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/mailboximport/LocationStep.java | |||
Method name: void LocationStep(DataModel)
|
Method name: void LocationStep(IFrameMediator, DataModel)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | data.registerDataLookup("Location.source",↵ | 1 | data.registerDataLookup("Location.source",↵ | |
2 | new DataLookup() {↵ | 2 | new DataLookup() {↵ | |
3 | public Object lookupData() {↵ | 3 | public Object lookupData() {↵ | |
4 | return sourceFile;↵ | 4 | return sourceFiles;↵ | |
5 | }↵ | 5 | }↵ | |
6 | });↵ | 6 | });↵ | |
7 | data.registerDataLookup("Location.destination",↵ | 7 | data.registerDataLookup("Location.destination",↵ | |
8 | new DataLookup() {↵ | 8 | new DataLookup() {↵ | |
9 | public Object lookupData() {↵ | 9 | public Object lookupData() {↵ | |
10 | return destinationFolder;↵ | 10 | return destinationFolder;↵ | |
11 | }↵ | 11 | }↵ | |
12 | });↵ | 12 | });↵ | |
13 | setCanGoNext(false); | 13 |
| |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 9 |
Number of mapped statements | 2 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | data.registerDataLookup("Location.source", new DataLookup() {...}); | | ||||||||||||
| 3 | data.registerDataLookup("Location.source", new DataLookup() {...}); | ||||||||||||
3 | data.registerDataLookup("Location.destination", new DataLookup() {...}); |
| 4 | data.registerDataLookup("Location.destination", new DataLookup() {...}); | ||||||||||
4 | setCanGoNext(false); | 5 | setCanGoNext(false); |
Row | Violation |
---|