this.eventType = eventType;
this.oldSimplePrimitiveValue = oldCharValue;
this.newSimplePrimitiveValue = newCharValue;
this.position = Notification.NO_INDEX;
this.eventType = eventType;
this.oldSimplePrimitiveValue = oldShortValue;
this.newSimplePrimitiveValue = newShortValue;
this.position = Notification.NO_INDEX;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/common/notify/impl/NotificationImpl.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/common/notify/impl/NotificationImpl.java
|
Method name: void NotificationImpl(int, char, char)
|
|
Method name: void NotificationImpl(int, short, short)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | this.eventType = eventType;↵ | | 1 | this.eventType = eventType;↵
|
2 | this.oldSimplePrimitiveValue = oldCharValue;↵ | | 2 | this.oldSimplePrimitiveValue = oldShortValue;↵
|
3 | this.newSimplePrimitiveValue = newCharValue;↵ | | 3 | this.newSimplePrimitiveValue = newShortValue;↵
|
4 | this.position = Notification.NO_INDEX; | | 4 | this.position = Notification.NO_INDEX;
|
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 11 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | this.eventType = eventType; | | 1 | this.eventType = eventType; |
| | | 2 | this.oldSimplePrimitiveValue = oldShortValue; |
2 | this.oldSimplePrimitiveValue = oldCharValue; | | | |
| | | 3 | this.newSimplePrimitiveValue = newShortValue; |
3 | this.newSimplePrimitiveValue = newCharValue; | | | |
4 | this.position = Notification.NO_INDEX; | | 4 | this.position = Notification.NO_INDEX; |
Precondition Violations (0)
Row |
Violation |