File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/sqlfilter/SQLFilterSheet.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/sqlfilter/SQLFilterSheet.java | |||
Method name: void performOk()
|
Method name: void setVisible(boolean)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | ISQLFilterPanel pnl = it.next();↵ | 1 | ISQLFilterPanel pnl = it.next();↵ | |
2 | if (isDebug)↵ | 2 | if (isDebug)↵ | |
3 | {↵ | 3 | ↵ | |
4 | {↵ | |||
4 | start = System.currentTimeMillis();↵ | 5 | start = System.currentTimeMillis();↵ | |
5 | }↵ | 6 | }↵ | |
6 | pnl.applyChanges();↵ | 7 | pnl.initialize(tab.getSQLFilterClauses());↵ | |
7 | if (isDebug)↵ | 8 | if (isDebug)↵ | |
8 | {↵ | 9 | ↵ | |
10 | {↵ | |||
9 | s_log.debug("Panel " + pnl.getTitle() + " app↵ | 11 | s_log.debug("Panel " + pnl.getTitle()↵ | |
10 | lied changes in "↵ | 12 | + " initialized in "↵ | |
11 | + (System.currentTimeMillis() - start) + "ms");↵ | 13 | + (System.currentTimeMillis() - start) + "ms");↵ | |
12 | } | 14 | } | |
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.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 18 |
Number of mapped statements | 6 |
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) | 30.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | ISQLFilterPanel pnl = it.next(); | 12 | ISQLFilterPanel pnl = it.next(); | ||||||||||||||||||||||
5 | if (isDebug) | 13 | if (isDebug) | ||||||||||||||||||||||
6 | start = System.currentTimeMillis(); | 14 | start = System.currentTimeMillis(); | ||||||||||||||||||||||
7 | pnl.applyChanges(); |
| 15 | pnl.initialize(tab.getSQLFilterClauses()); | |||||||||||||||||||||
8 | if (isDebug) | 16 | if (isDebug) | ||||||||||||||||||||||
9 | s_log.debug("Panel " + pnl.getTitle() + " applied changes in " + (System.currentTimeMillis() - start) + "ms"); |
| 17 | s_log.debug("Panel " + pnl.getTitle() + " initialized in " + (System.currentTimeMillis() - start) + "ms"); |
Row | Violation |
---|---|
1 | Expression pnl.applyChanges() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression pnl.initialize(tab.getSQLFilterClauses()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression pnl.applyChanges() is a void method call, and thus it cannot be parameterized |
4 | Expression pnl.initialize(tab.getSQLFilterClauses()) is a void method call, and thus it cannot be parameterized |
5 | Expression pnl.applyChanges() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression pnl.initialize(tab.getSQLFilterClauses()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression pnl.applyChanges() is a void method call, and thus it cannot be parameterized |
8 | Expression pnl.initialize(tab.getSQLFilterClauses()) is a void method call, and thus it cannot be parameterized |