if(displayManager != null && !bufferChanging)
{
displayManager.firstLine.callReset = true;
displayManager.scrollLineCount.callReset = true;
}
invalidateCachedScreenLineCounts = true;
if(displayManager != null && !bufferChanging)
{
displayManager.firstLine.callReset = true;
displayManager.scrollLineCount.callReset = true;
}
invalidateCachedScreenLineCounts = true;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java
|
Method name: void propertiesChanged()
|
|
Method name: void propertiesChanged()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if(displayManager != null && !bufferChanging)↵ | | 1 | if(displayManager != null && !bufferChanging)↵
|
2 | {↵ | | 2 | {↵
|
3 | displayManager.firstLine.callReset = true;↵ | | 3 | displayManager.firstLine.callReset = true;↵
|
4 | displayManager.scrollLineCount.callReset = true;↵ | | 4 | displayManager.scrollLineCount.callReset = true;↵
|
5 | }↵ | | 5 | }↵
|
6 | invalidateCachedScreenLineCounts = true; | | 6 | invalidateCachedScreenLineCounts = true;
|
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.3 |
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) | 1.0 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
14 | if (displayManager != null && !bufferChanging) | | 21 | if (displayManager != null && !bufferChanging) |
15 | displayManager.firstLine.callReset = true; | | 22 | displayManager.firstLine.callReset = true; |
16 | displayManager.scrollLineCount.callReset = true; | | 23 | displayManager.scrollLineCount.callReset = true; |
17 | invalidateCachedScreenLineCounts = true; | | 24 | invalidateCachedScreenLineCounts = true; |
Precondition Violations (0)
Row |
Violation |