File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/sos/SOSTest.java | File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/sos/SOSTest.java | |||
Method name: void testGetFileFlags()
|
Method name: void testGetProjectFlags()
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | SOSGet sosGet = new SOSGet();↵ | 1 | SOSGet sosGet = new SOSGet();↵ | |
2 | sosGet.setProject(project);↵ | 2 | sosGet.setProject(project);↵ | |
3 | sosGet.setVssServerPath(VSS_SERVER_PATH);↵ | 3 | sosGet.setVssServerPath(VSS_SERVER_PATH);↵ | |
4 | sosGet.setSosServerPath(SOS_SERVER_PATH);↵ | 4 | sosGet.setSosServerPath(SOS_SERVER_PATH);↵ | |
5 | sosGet.setProjectPath(VSS_PROJECT_PATH);↵ | 5 | sosGet.setProjectPath(DS_VSS_PROJECT_PATH);↵ | |
6 | sosGet.setFile(SRC_FILE);↵ | 6 | sosGet.setLabel(SRC_LABEL);↵ | |
7 | sosGet.setUsername(SOS_USERNAME); | 7 |
| |
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 declared in the same class |
Number of node comparisons | 49 |
Number of mapped statements | 7 |
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 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | SOSGet sosGet = new SOSGet(); | 2 | SOSGet sosGet = new SOSGet(); | ||||||||||||||||||
3 | sosGet.setProject(project); | 3 | sosGet.setProject(project); | ||||||||||||||||||
4 | sosGet.setVssServerPath(VSS_SERVER_PATH); | 4 | sosGet.setVssServerPath(VSS_SERVER_PATH); | ||||||||||||||||||
5 | sosGet.setSosServerPath(SOS_SERVER_PATH); | 5 | sosGet.setSosServerPath(SOS_SERVER_PATH); | ||||||||||||||||||
6 | sosGet.setProjectPath(VSS_PROJECT_PATH); |
| 6 | sosGet.setProjectPath(DS_VSS_PROJECT_PATH); | |||||||||||||||||
7 | sosGet.setFile(SRC_FILE); |
| 7 | sosGet.setLabel(SRC_LABEL); | |||||||||||||||||
8 | sosGet.setUsername(SOS_USERNAME); | 8 | sosGet.setUsername(SOS_USERNAME); |
Row | Violation |
---|---|
1 | Expression sosGet.setFile(SRC_FILE) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression sosGet.setLabel(SRC_LABEL) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression sosGet.setFile(SRC_FILE) is a void method call, and thus it cannot be parameterized |
4 | Expression sosGet.setLabel(SRC_LABEL) is a void method call, and thus it cannot be parameterized |