if ((access & Constants.ACC_SYNTHETIC) != 0) {
++attributeCount;
}
if ((access & Constants.ACC_DEPRECATED) != 0) {
++attributeCount;
}
fields.put2(attributeCount);
if ((access & Constants.ACC_SYNTHETIC) != 0) {
++attributeCount;
}
if ((access & Constants.ACC_DEPRECATED) != 0) {
++attributeCount;
}
out.put2(attributeCount);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/objectweb/asm/ClassWriter.java
|
|
File path: /jEdit-4.2/src/org/objectweb/asm/CodeWriter.java
|
Method name: void visitField(int, String, String, Object)
|
|
Method name: void put(ByteVector)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | if ((access & Constants.ACC_SYNTHETIC) != 0) {↵ | | 1 | if ((access & Constants.ACC_SYNTHETIC) != 0) {↵
|
2 | ++attributeCount;↵ | | 2 | ++attributeCount;↵
|
3 | }↵ | | 3 | }↵
|
4 | if ((access & Constants.ACC_DEPRECATED) != 0) {↵ | | 4 | if ((access & Constants.ACC_DEPRECATED) != 0) {↵
|
5 | ++attributeCount;↵ | | 5 | ++attributeCount;↵
|
6 | }↵ | | 6 | }↵
|
7 | fields.put2(attributeCount); | | 7 | out.put2(attributeCount);
|
See real code fragment |
|
See real code fragment |
Summary
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.9 |
Clones location | Clones are in different classes |
Number of node comparisons | 14 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 5 |
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) | 1.1 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
8 | if ((access & Constants.ACC_SYNTHETIC) != 0) | | 7 | if ((access & Constants.ACC_SYNTHETIC) != 0) |
9 | | | 8 | |
10 | if ((access & Constants.ACC_DEPRECATED) != 0) | | 9 | if ((access & Constants.ACC_DEPRECATED) != 0) |
11 | | | 10 | |
12 | fields.put2(attributeCount); | | 11 | out.put2(attributeCount); |
Precondition Violations (0)
Row |
Violation |