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 | 0 |
Number of non-refactorable cases | 1 |
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 | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 3 | data.registerDataLookup("Location.source", new DataLookup() {...}); | ||||||||||||||||||||||
2 | data.registerDataLookup("Location.source", new DataLookup() {...}); |
| 5 | setCanGoNext(false); | ||||||||||||||||||||
3 | data.registerDataLookup("Location.destination", new DataLookup() {...}); | | ||||||||||||||||||||||
4 | setCanGoNext(false); |
| 4 | data.registerDataLookup("Location.destination", new DataLookup() {...}); |
Row | Violation |
---|---|
1 | Expression data.registerDataLookup("Location.source",new DataLookup(){ public Object lookupData(){ return sourceFile; } } ) is a void method call, and thus it cannot be parameterized |
2 | Expression setCanGoNext(false) is a void method call, and thus it cannot be parameterized |
3 | Expression data.registerDataLookup("Location.source",new DataLookup(){ public Object lookupData(){ return sourceFile; } } ) is a void method call, and thus it cannot be parameterized |
4 | Expression setCanGoNext(false) is a void method call, and thus it cannot be parameterized |
5 | Expression setCanGoNext(false) is a void method call, and thus it cannot be parameterized |
6 | Expression data.registerDataLookup("Location.destination",new DataLookup(){ public Object lookupData(){ return destinationFolder; } } ) is a void method call, and thus it cannot be parameterized |
7 | Expression setCanGoNext(false) is a void method call, and thus it cannot be parameterized |
8 | Expression data.registerDataLookup("Location.destination",new DataLookup(){ public Object lookupData(){ return destinationFolder; } } ) is a void method call, and thus it cannot be parameterized |