File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/extension/Extension.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/extension/Specification.java | |||
Method name: String toString()
|
Method name: String toString()
|
|||
Number of AST nodes: 29 | Number of AST nodes: 29 | |||
1 | final StringBuffer sb↵ | 1 | final StringBuffer sb↵ | |
2 | = new StringBuffer(EXTENSION_NAME.toString());↵ | 2 | = new StringBuffer(SPECIFICATION_TITLE.toString());↵ | |
3 | sb.append(brace);↵ | 3 | sb.append(brace);↵ | |
4 | sb.append(extensionName);↵ | 4 | sb.append(specificationTitle);↵ | |
5 | sb.append(StringUtils.LINE_SEP);↵ | 5 | sb.append(StringUtils.LINE_SEP);↵ | |
6 | if (null != specificationVersion) {↵ | 6 | if (null != specificationVersion) {↵ | |
7 | sb.append(SPECIFICATION_VERSION);↵ | 7 | sb.append(SPECIFICATION_VERSION);↵ | |
8 | sb.append(brace);↵ | 8 | sb.append(brace);↵ | |
9 | sb.append(specificationVersion);↵ | 9 | sb.append(specificationVersion);↵ | |
10 | sb.append(StringUtils.LINE_SEP);↵ | 10 | sb.append(StringUtils.LINE_SEP);↵ | |
11 | }↵ | 11 | }↵ | |
12 | if (null != specificationVendor) {↵ | 12 | if (null != specificationVendor) {↵ | |
13 | sb.append(SPECIFICATION_VENDOR);↵ | 13 | sb.append(SPECIFICATION_VENDOR);↵ | |
14 | sb.append(brace);↵ | 14 | sb.append(brace);↵ | |
15 | sb.append(specificationVendor);↵ | 15 | sb.append(specificationVendor);↵ | |
16 | sb.append(StringUtils.LINE_SEP);↵ | 16 | sb.append(StringUtils.LINE_SEP);↵ | |
17 | }↵ | 17 | }↵ | |
18 | if (null != implementationVersion) {↵ | 18 | if (null != implementationTitle) {↵ | |
19 | sb.append(IMPLEMENTATION_VERSION);↵ | 19 | sb.append(IMPLEMENTATION_TITLE);↵ | |
20 | sb.append(brace);↵ | 20 | sb.append(brace);↵ | |
21 | sb.append(implementationVersion);↵ | 21 | sb.append(implementationTitle);↵ | |
22 | sb.append(StringUtils.LINE_SEP);↵ | 22 | sb.append(StringUtils.LINE_SEP);↵ | |
23 | }↵ | 23 | }↵ | |
24 | if (null != implementationVendorID) {↵ | 24 | if (null != implementationVersion) {↵ | |
25 | sb.append(IMPLEMENTATION_VENDOR_ID);↵ | 25 | sb.append(IMPLEMENTATION_VERSION);↵ | |
26 | sb.append(brace);↵ | 26 | sb.append(brace);↵ | |
27 | sb.append(implementationVendorID);↵ | 27 | sb.append(implementationVersion);↵ | |
28 | sb.append(StringUtils.LINE_SEP);↵ | 28 | sb.append(StringUtils.LINE_SEP);↵ | |
29 | }↵ | 29 | }↵ | |
30 | if (null != implementationVendor) {↵ | 30 | if (null != implementationVendor) {↵ | |
31 | sb.append(IMPLEMENTATION_VENDOR);↵ | 31 | sb.append(IMPLEMENTATION_VENDOR);↵ | |
32 | sb.append(brace);↵ | 32 | sb.append(brace);↵ | |
33 | sb.append(implementationVendor);↵ | 33 | sb.append(implementationVendor);↵ | |
34 | sb.append(StringUtils.LINE_SEP);↵ | 34 | sb.append(StringUtils.LINE_SEP);↵ | |
35 | } | 35 |
| |
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) | 1.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 401 |
Number of mapped statements | 29 |
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) | 55.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | final StringBuffer sb = new StringBuffer(EXTENSION_NAME.toString()); |
| 2 | final StringBuffer sb = new StringBuffer(SPECIFICATION_TITLE.toString()); | |||||||||||
3 | sb.append(brace); | 3 | sb.append(brace); | ||||||||||||
4 | sb.append(extensionName); |
| 4 | sb.append(specificationTitle); | |||||||||||
5 | sb.append(StringUtils.LINE_SEP); | 5 | sb.append(StringUtils.LINE_SEP); | ||||||||||||
6 | if (null != specificationVersion) | 6 | if (null != specificationVersion) | ||||||||||||
7 | sb.append(SPECIFICATION_VERSION); | 7 | sb.append(SPECIFICATION_VERSION); | ||||||||||||
8 | sb.append(brace); | 8 | sb.append(brace); | ||||||||||||
9 | sb.append(specificationVersion); | 9 | sb.append(specificationVersion); | ||||||||||||
10 | sb.append(StringUtils.LINE_SEP); | 10 | sb.append(StringUtils.LINE_SEP); | ||||||||||||
11 | if (null != specificationVendor) | 11 | if (null != specificationVendor) | ||||||||||||
12 | sb.append(SPECIFICATION_VENDOR); | 12 | sb.append(SPECIFICATION_VENDOR); | ||||||||||||
13 | sb.append(brace); | 13 | sb.append(brace); | ||||||||||||
14 | sb.append(specificationVendor); | 14 | sb.append(specificationVendor); | ||||||||||||
15 | sb.append(StringUtils.LINE_SEP); | 15 | sb.append(StringUtils.LINE_SEP); | ||||||||||||
16 | if (null != implementationVersion) |
| 21 | if (null != implementationVersion) | |||||||||||
17 | sb.append(IMPLEMENTATION_VERSION); | 22 | sb.append(IMPLEMENTATION_VERSION); | ||||||||||||
18 | sb.append(brace); | 23 | sb.append(brace); | ||||||||||||
19 | sb.append(implementationVersion); |
| 24 | sb.append(implementationVersion); | |||||||||||
20 | sb.append(StringUtils.LINE_SEP); | 25 | sb.append(StringUtils.LINE_SEP); | ||||||||||||
21 | if (null != implementationVendorID) |
| 26 | if (null != implementationVendor) | |||||||||||
22 | sb.append(IMPLEMENTATION_VENDOR_ID); |
| 27 | sb.append(IMPLEMENTATION_VENDOR); | |||||||||||
23 | sb.append(brace); | 28 | sb.append(brace); | ||||||||||||
24 | sb.append(implementationVendorID); |
| 29 | sb.append(implementationVendor); | |||||||||||
25 | sb.append(StringUtils.LINE_SEP); | 30 | sb.append(StringUtils.LINE_SEP); | ||||||||||||
26 | if (null != implementationVendor) |
| 16 | if (null != implementationTitle) | |||||||||||
27 | sb.append(IMPLEMENTATION_VENDOR); |
| 17 | sb.append(IMPLEMENTATION_TITLE); | |||||||||||
28 | sb.append(brace); | 18 | sb.append(brace); | ||||||||||||
29 | sb.append(implementationVendor); |
| 19 | sb.append(implementationTitle); | |||||||||||
30 | sb.append(StringUtils.LINE_SEP); | 20 | sb.append(StringUtils.LINE_SEP); |
Row | Violation |
---|---|
1 | Type org.apache.tools.ant.taskdefs.optional.extension.DeweyDecimal of variable implementationVersion does not match with type java.lang.String of variable implementationVersion |
2 | Type org.apache.tools.ant.taskdefs.optional.extension.DeweyDecimal of variable implementationVersion does not match with type java.lang.String of variable implementationVersion |