boolean currentlyVisible = _stackTraceScroller.isVisible();
if (!currentlyVisible)
{
if (_moreErrorsScroller != null)
{
_moreErrorsScroller.setVisible(false);
}
}
_stackTraceScroller.setVisible(!currentlyVisible);
ErrorDialog.this.validate();
boolean currentlyVisible = _moreErrorsScroller.isVisible();
if (!currentlyVisible)
{
_stackTraceScroller.setVisible(false);
}
_moreErrorsScroller.setVisible(!currentlyVisible);
ErrorDialog.this.validate();
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/ErrorDialog.java
|
|
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/ErrorDialog.java
|
Method name: void actionPerformed(ActionEvent)
|
|
Method name: void actionPerformed(ActionEvent)
|
Number of AST nodes: 6
|
|
Number of AST nodes: 5
|
|
1 | boolean currentlyVisible = _stackTraceScroller.isVisible();↵ | | 1 | boolean currentlyVisible = _moreErrorsScroller.isVisible();↵
|
2 | if (!currentlyVisible)↵ | | 2 | if (!currentlyVisible)↵
|
3 | {↵ | | 3 | {↵
|
4 | if (_moreErrorsScroller != null)↵ | | 4 | ↵
|
5 | {↵ | | |
|
6 | _moreErrorsScroller.setVisible(false);↵ | | 5 | _stackTraceScroller.setVisible(false);↵
|
7 | }↵ | | 6 | ↵
|
8 | }↵ | | |
|
9 | _stackTrace↵ | | 7 | }↵
|
10 | Scroller.setVisible(!currentlyVisible);↵ | | 8 | _moreErrorsScroller.setVisible(!currentlyVisible);↵
|
11 | ErrorDialog.this.validate(); | | 9 | ErrorDialog.this.validate();
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same java file |
Number of node comparisons | 4 |