File path: /emf-2.4.1/src/org/eclipse/emf/ecore/change/provider/ResourceChangeItemProvider.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EClassItemProvider.java | |||
Method name: List
|
Method name: List
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (itemPropertyDescriptors == null)↵ | 1 | if (itemPropertyDescriptors == null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | super.getPropertyDescriptors(object);↵ | 3 | super.getPropertyDescriptors(object);↵ | |
4 | addResourceURIPropertyDescriptor(object);↵ | 4 | addAbstractPropertyDescriptor(object);↵ | |
5 | addResourcePropertyDescriptor(object);↵ | 5 | addInterfacePropertyDescriptor(object);↵ | |
6 | addValuePropertyDescriptor(object);↵ | 6 | addESuperTypesPropertyDescriptor(object);↵ | |
7 | }↵ | 7 | }↵ | |
8 | return itemPropertyDescriptors; | 8 |
| |
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 26 |
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) | 15.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (itemPropertyDescriptors == null) | 1 | if (itemPropertyDescriptors == null) | |||||||||||||||
2 | super.getPropertyDescriptors(object); | 2 | super.getPropertyDescriptors(object); | |||||||||||||||
3 | addResourceURIPropertyDescriptor(object); |
| 3 | addAbstractPropertyDescriptor(object); | ||||||||||||||
4 | addResourcePropertyDescriptor(object); |
| 4 | addInterfacePropertyDescriptor(object); | ||||||||||||||
5 | addValuePropertyDescriptor(object); |
| 5 | addESuperTypesPropertyDescriptor(object); | ||||||||||||||
6 | return itemPropertyDescriptors; | 6 | return itemPropertyDescriptors; |
Row | Violation |
---|---|
1 | Expression addResourceURIPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression addAbstractPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression addResourceURIPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized |
4 | Expression addAbstractPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized |
5 | Expression addResourcePropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression addInterfacePropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression addResourcePropertyDescriptor(object) is a void method call, and thus it cannot be parameterized |
8 | Expression addInterfacePropertyDescriptor(object) is a void method call, and thus it cannot be parameterized |
9 | Expression addValuePropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression addESuperTypesPropertyDescriptor(object) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression addValuePropertyDescriptor(object) is a void method call, and thus it cannot be parameterized |
12 | Expression addESuperTypesPropertyDescriptor(object) is a void method call, and thus it cannot be parameterized |