File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/ResourceImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/ResourceImpl.java | |||
Method name: void setTimeStamp(long)
|
Method name: Notification setLoaded(boolean)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | Notification notification =↵ | 1 | Notification notification =↵ | |
2 | new NotificationImpl(Notification.SET, oldTimeStamp, timeStamp)↵ | 2 | new NotificationImpl(Notification.SET, oldIsLoaded, isLoaded)↵ | |
3 | {↵ | 3 | {↵ | |
4 | @Override↵ | 4 | @Override↵ | |
5 | public Object getNotifier()↵ | 5 | public Object getNotifier()↵ | |
6 | {↵ | 6 | {↵ | |
7 | return ResourceImpl.this;↵ | 7 | return ResourceImpl.this;↵ | |
8 | }↵ | 8 | }↵ | |
9 | @Override↵ | 9 | @Override↵ | |
10 | public int getFeatureID(Class<?> expectedClass)↵ | 10 | public int getFeatureID(Class<?> expectedClass)↵ | |
11 | {↵ | 11 | {↵ | |
12 | return RESOURCE__TIME_STAMP;↵ | 12 | return RESOURCE__IS_LOADED;↵ | |
13 | }↵ | 13 | }↵ | |
14 | };↵ | 14 | };↵ | |
15 | eNotify(notification); | 15 | return notification; | |
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 4 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | Notification notification = new NotificationImpl(Notification.SET, oldTimeStamp, timeStamp) {...}; |
| 4 | Notification notification = new NotificationImpl(Notification.SET, oldIsLoaded, isLoaded) {...}; | |||||||||||||||||
| 5 | return notification; | |||||||||||||||||||
5 | eNotify(notification); | |
Row | Violation |
---|---|
1 | Type long of variable oldTimeStamp does not match with type boolean of variable oldIsLoaded |