if(Debug.DUMP_KEY_EVENTS
&& from != VIEW)
{
Log.log(Log.DEBUG,this,
"Translated: "
+ keyStroke);
}
if(inputHandler.handleKey(keyStroke))
evt.consume();
if(Debug.DUMP_KEY_EVENTS
&& from != VIEW)
{
Log.log(Log.DEBUG,this,
"Translated: "
+ keyStroke);
}
if(inputHandler.handleKey(keyStroke))
evt.consume();
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/View.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/View.java
|
Method name: void processKeyEvent(KeyEvent, int)
|
|
Method name: void processKeyEvent(KeyEvent, int)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if(Debug.DUMP_KEY_EVENTS↵ | | 1 | if(Debug.DUMP_KEY_EVENTS↵
|
2 | && from != VIEW)↵ | | 2 | && from != VIEW)↵
|
3 | {↵ | | 3 | {↵
|
4 | Log.log(Log.DEBUG,this,↵ | | 4 | Log.log(Log.DEBUG,this,↵
|
5 | "Translated: "↵ | | 5 | "Translated: "↵
|
6 | + keyStroke);↵ | | 6 | + keyStroke);↵
|
7 | }↵ | | 7 | }↵
|
8 | if(inputHandler.handleKey(keyStroke))↵ | | 8 | if(inputHandler.handleKey(keyStroke))↵
|
9 | evt.consume(); | | 9 | evt.consume();
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.5 |
Clones location | Clones are in the same method |
Number of node comparisons | 11 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
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) | 6.0 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
48 | if (Debug.DUMP_KEY_EVENTS && from != VIEW) | | 22 | if (Debug.DUMP_KEY_EVENTS && from != VIEW) |
49 | Log.log(Log.DEBUG, this, "Translated: " + keyStroke); | | 23 | Log.log(Log.DEBUG, this, "Translated: " + keyStroke); |
50 | if (inputHandler.handleKey(keyStroke)) | | 24 | if (inputHandler.handleKey(keyStroke)) |
51 | | | 25 | |
Precondition Violations (0)
Row |
Violation |