File path: /emf-2.4.1/src/org/eclipse/emf/mapping/command/CreateMappingCommand.java | File path: /emf-2.4.1/src/org/eclipse/emf/mapping/command/CreateMappingCommand.java | |||
Method name: String getLabel()
|
Method name: String getDescription()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (inputs == null || inputs.isEmpty() || outputs == null || outputs.isEmpty())↵ | 1 | if (inputs == null || inputs.isEmpty() || outputs == null || outputs.isEmpty())↵ | |
2 | {↵ | 2 | {↵ | |
3 | return MappingPlugin.getPlugin().getString("_UI_CreateMappingCommand_onesided_label");↵ | 3 | return MappingPlugin.getPlugin().getString("_UI_CreateMappingCommand_onesided_description");↵ | |
4 | }↵ | 4 | }↵ | |
5 | else↵ | 5 | else↵ | |
6 | {↵ | 6 | {↵ | |
7 | return super.getLabel();↵ | 7 | return super.getDescription();↵ | |
8 | } | 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.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
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) | 0.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (inputs == null || inputs.isEmpty() || outputs == null || outputs.isEmpty()) |
| 1 | if (inputs == null || inputs.isEmpty() || outputs == null || outputs.isEmpty()) | |||||||||||||||||||||||
2 | return MappingPlugin.getPlugin().getString("_UI_CreateMappingCommand_onesided_label"); |
| 2 | return MappingPlugin.getPlugin().getString("_UI_CreateMappingCommand_onesided_description"); | |||||||||||||||||||||||
else | else | ||||||||||||||||||||||||||
3 | return super.getLabel(); |
| 3 | return super.getDescription(); |
Row | Violation |
---|---|
1 | Type java.util.Collection<> of variable inputs does not match with type java.util.Collection<> of variable inputs |
2 | Type java.util.Collection<> of variable inputs does not match with type java.util.Collection<> of variable inputs |
3 | Type java.util.Collection<> of variable outputs does not match with type java.util.Collection<> of variable outputs |
4 | Type java.util.Collection<> of variable outputs does not match with type java.util.Collection<> of variable outputs |