File path: /jEdit-4.2/src/org/gjt/sp/jedit/Buffer.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/Buffer.java | |||
Method name: void fireContentInserted(int, int, int, int)
|
Method name: void fireContentRemoved(int, int, int, int)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | try↵ | 1 | try↵ | |
2 | {↵ | 2 | {↵ | |
3 | getListener(i).contentInserted(this,startLine,↵ | 3 | getListener(i).contentRemoved(this,startLine,↵ | |
4 | offset,numLines,length);↵ | 4 | offset,numLines,length);↵ | |
5 | }↵ | 5 | }↵ | |
6 | catch(Throwable t)↵ | 6 | catch(Throwable t)↵ | |
7 | {↵ | 7 | {↵ | |
8 | Log.log(Log.ERROR,this,"Exception while sending buffer event to "+getListener(i)+" :");↵ | 8 | Log.log(Log.ERROR,this,"Exception while sending buffer event to "+getListener(i)+" :");↵ | |
9 | Log.log(Log.ERROR,this,t);↵ | 9 | Log.log(Log.ERROR,this,t);↵ | |
10 | } | 10 |
| |
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.8 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 5 |
Number of mapped statements | 2 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | try | 2 | try | |||||||||||||
3 | getListener(i).contentInserted(this, startLine, offset, numLines, length); |
| 3 | getListener(i).contentRemoved(this, startLine, offset, numLines, length); |
Row | Violation |
---|---|
1 | Expression getListener(i).contentInserted(this,startLine,offset,numLines,length) is a void method call, and thus it cannot be parameterized |
2 | Expression getListener(i).contentRemoved(this,startLine,offset,numLines,length) is a void method call, and thus it cannot be parameterized |