EditAction action = jEdit.getAction(actionName);
if(action == null)
continue;
String label = action.getLabel();
if(label == null)
continue;
EditAction action = jEdit.getAction(actionName);
if(action == null)
continue;
String label = action.getLabel();
if(label == null)
continue;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/ContextOptionPane.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/ToolBarOptionPane.java
|
Method name: void _init()
|
|
Method name: void _init()
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | EditAction action = jEdit.getAction(actionName);↵ | | 1 | EditAction action = jEdit.getAction(actionName);↵
|
2 | if(action == null)↵ | | 2 | if(action == null)↵
|
3 | continue;↵ | | 3 | continue;↵
|
4 | String label = action.getLabel();↵ | | 4 | String label = action.getLabel();↵
|
5 | if(label == null)↵ | | 5 | if(label == null)↵
|
6 | continue; | | 6 | continue;
|
See real code fragment |
|
See real code fragment |
Summary
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.5 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 19 |
-
{Non-refactorable}
Mapping Summary
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) | 1.1 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
11 | EditAction action = jEdit.getAction(actionName); | | 15 | EditAction action = jEdit.getAction(actionName); |
12 | if (action == null) | | 16 | if (action == null) |
13 | | | 17 | |
14 | String label = action.getLabel(); | | 18 | String label = action.getLabel(); |
15 | if (label == null) | | 19 | if (label == null) |
16 | | | 20 | |
Precondition Violations (4)
Row |
Violation |
1 | Statement continue; without innermost loop |
2 | Statement continue; without innermost loop |
3 | Statement continue; without innermost loop |
4 | Statement continue; without innermost loop |