File path: /apache-ant-1.7.0/src/org/apache/tools/ant/AntClassLoader.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/AntClassLoader.java | |||
Method name: void definePackage(File, String, Manifest)
|
Method name: void definePackage(File, String, Manifest)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (specificationTitle == null) {↵ | 1 | if (implementationVendor == null) {↵ | |
2 | specificationTitle↵ | 2 | implementationVendor↵ | |
3 | = mainAttributes.getValue(Name.SPECIFICATION_TITLE);↵ | 3 | = mainAttributes.getValue(Name.IMPLEMENTATION_VENDOR);↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (specificationVendor == null) {↵ | 5 | if (implementationVersion == null) {↵ | |
6 | specificationVendor↵ | 6 | implementationVersion↵ | |
7 | = mainAttributes.getValue(Name.SPECIFICATION_VENDOR);↵ | 7 | = mainAttributes.getValue(Name.IMPLEMENTATION_VERSION);↵ | |
8 | }↵ | 8 | }↵ | |
9 | if (specificationVersion == null) {↵ | 9 | if (sealedString == null) {↵ | |
10 | specificationVersion↵ | 10 | sealedString↵ | |
11 | = mainAttributes.getValue(Name.SPECIFICATION_VERSION);↵ | 11 | = mainAttributes.getValue(Name.SEALED);↵ | |
12 | } | 12 |
| |
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 | 28 |
Number of mapped statements | 6 |
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) | 6.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21 | if (specificationTitle == null) |
| 29 | if (implementationVendor == null) | |||||||||||||
22 | specificationTitle = mainAttributes.getValue(Name.SPECIFICATION_TITLE); |
| 30 | implementationVendor = mainAttributes.getValue(Name.IMPLEMENTATION_VENDOR); | |||||||||||||
23 | if (specificationVendor == null) |
| 31 | if (implementationVersion == null) | |||||||||||||
24 | specificationVendor = mainAttributes.getValue(Name.SPECIFICATION_VENDOR); |
| 32 | implementationVersion = mainAttributes.getValue(Name.IMPLEMENTATION_VERSION); | |||||||||||||
25 | if (specificationVersion == null) |
| 33 | if (sealedString == null) | |||||||||||||
26 | specificationVersion = mainAttributes.getValue(Name.SPECIFICATION_VERSION); |
| 34 | sealedString = mainAttributes.getValue(Name.SEALED); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables specificationTitle, specificationVendor, specificationVersion , while Clone fragment #2 returns variables sealedString, implementationVendor, implementationVersion |