File path: /jEdit-4.2/src/bsh/TargetError.java | File path: /jEdit-4.2/src/org/objectweb/asm/CodeWriter.java | |||
Method name: void TargetError(String, Throwable, SimpleNode, CallStack, boolean)
|
Method name: void CodeWriter(ClassWriter, boolean)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 4 | |||
1 | super( msg, node, callstack );↵ | |||
2 | target = t;↵ | |||
3 | this.inNativeCode = inNativeCode; | 1 | if (computeMaxs) {↵ | |
2 | // pushes the first block onto the stack of blocks to be visited↵ | |||
3 | currentBlock = new Label();↵ | |||
4 | currentBlock.pushed = true;↵ | |||
5 | blockStack = currentBlock;↵ | |||
6 |
| |||
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super(msg, node, callstack); | | ||||||||||||||||
2 | target = t; | | ||||||||||||||||
| 9 | currentBlock = new Label(); | ||||||||||||||||
3 | this.inNativeCode = inNativeCode; |
| 10 | currentBlock.pushed = true; | ||||||||||||||
| 11 | blockStack = currentBlock; |
Row | Violation |
---|---|
1 | Expression this.inNativeCode is a field being modified, and thus it cannot be parameterized |