File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/util/ThreadCheckingRepaintManager.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/util/ThreadCheckingRepaintManager.java | |||
Method name: void addInvalidComponent(JComponent)
|
Method name: void addDirtyRegion(JComponent, int, int, int, int)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | try↵ | 1 | try↵ | |
2 | {↵ | 2 | {↵ | |
3 | checkThread(comp);↵ | 3 | checkThread(comp);↵ | |
4 | }↵ | 4 | }↵ | |
5 | catch (Exception ex)↵ | 5 | catch (Exception ex)↵ | |
6 | {↵ | 6 | {↵ | |
7 | // i18n[ThreadCheckingRepaintManager.workinwrongthread=GUI work done in wrong thread]↵ | 7 | // i18n[ThreadCheckingRepaintManager.workinwrongthread=GUI work done in wrong thread]↵ | |
8 | s_log.debug(s_stringMgr.getString("ThreadCheckingRepaintManager.workinwrongthread"), ex);↵ | 8 | s_log.debug(s_stringMgr.getString("ThreadCheckingRepaintManager.workinwrongthread"), ex);↵ | |
9 | }↵ | 9 | }↵ | |
10 | super.addInvalidComponent(comp); | 10 | super.addDirtyRegion(comp, i, i1, i2, i3); | |
See real code fragment | See real code fragment |
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 5 |
Number of mapped statements | 3 |
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.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | try | 1 | try | ||||||||||||||||||||
2 | checkThread(comp); | 2 | checkThread(comp); | ||||||||||||||||||||
3 | super.addInvalidComponent(comp); |
| 3 | super.addDirtyRegion(comp, i, i1, i2, i3); |
Row | Violation |
---|---|
1 | Expression super.addInvalidComponent(comp) is a void method call, and thus it cannot be parameterized |
2 | Expression super.addDirtyRegion(comp,i,i1,i2,i3) is a void method call, and thus it cannot be parameterized |
3 | Expression super.addInvalidComponent(comp) is a void method call, and thus it cannot be parameterized |
4 | Expression super.addDirtyRegion(comp,i,i1,i2,i3) is a void method call, and thus it cannot be parameterized |
5 | Super method call super.addInvalidComponent(comp); cannot be extracted from method |
6 | Super method call super.addDirtyRegion(comp,i,i1,i2,i3); cannot be extracted from method |