if ( value == Special.NULL_VALUE )
return null;
else
if ( value == Special.VOID_TYPE )
throw new InterpreterError("attempt to unwrap void type");
else
return value;
NameSpace parent = super.getParent();
if ( parent instanceof BlockNameSpace )
return ((BlockNameSpace)parent).getNonBlockParent();
else
return parent;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/bsh/Primitive.java
|
|
File path: /jEdit-4.2/src/bsh/BlockNameSpace.java
|
Method name: Object getValue()
|
|
Method name: NameSpace getNonBlockParent()
|
Number of AST nodes: 5
|
|
Number of AST nodes: 4
|
|
1 | if ( value == Special.NULL_VALUE )↵ | | |
|
2 | return null;↵ | | |
|
3 | else ↵ | | |
|
4 | if ( value == Special.VOID_TYPE )↵ | | |
|
5 | throw new InterpreterError("attempt to unwrap void type");↵ | | |
|
6 | else↵ | | |
|
7 | ↵ | | 1 | NameSpace parent = super.getParent();↵
|
| | | 2 | if ( parent instanceof BlockNameSpace )↵
|
| | | 3 | return ((BlockNameSpace)parent).getNonBlockParent();↵
|
| | | 4 | else↵
|
8 | return value; | | 5 | return parent;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 2 |