if(kind == INCR || kind == DECR) { if(operandType == Byte.TYPE) return new Byte((byte)result); if(operandType == Short.TYPE) return new Short((short)result); if(operandType == Character.TYPE) return new Character((char)result); }
if(kind == INCR || kind == DECR) { if(operandType == Byte.TYPE) return new Primitive((byte)result); if(operandType == Short.TYPE) return new Primitive((short)result); if(operandType == Character.TYPE) return new Primitive((char)result); }
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/bsh/BSHUnaryExpression.java File path: /jEdit-4.2/src/bsh/Primitive.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if(kind == INCR || kind == DECR)
1
if(kind == INCR || kind == DECR)
2
            {
2
            {
3
                if(operandType == Byte.TYPE)
3
                if(operandType == Byte.TYPE)
4
                    return new Byte((byte)result);
4
                    return new Primitive((byte)result);
5
                if(operandType == Short.TYPE)
5
                if(operandType == Short.TYPE)
6
                    return new Short((short)result);
6
                    return new Primitive((short)result);
7
                if(operandType == Character.TYPE)
7
                if(operandType == Character.TYPE)
8
                    return new Character((char)result);
8
                    return new Primitive((char)result);
9
            }
9
            }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0