File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/GeneralPreferencesPanel.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/SQLPreferencesPanel.java | |||
Method name: Component getPanelComponent()
|
Method name: Component getPanelComponent()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (_myPanel == null)↵ | 1 | if (_myPanel == null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | _myPanel = new MyPanel();↵ | 3 | _myPanel = new SQLPrefsPanel();↵ | |
4 | _myScrollPane = new JScrollPane(_myPanel);↵ | 4 | _myScrollPane = new JScrollPane(_myPanel);↵ | |
5 | }↵ | 5 | }↵ | |
6 | return _myScrollPane; | 6 |
| |
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.5 |
Clones location | Clones are in different classes |
Number of node comparisons | 10 |
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) | 3.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (_myPanel == null) |
| 1 | if (_myPanel == null) | |||||||||||||||
2 | _myPanel = new MyPanel(); |
| 2 | _myPanel = new SQLPrefsPanel(); | |||||||||||||||
3 | _myScrollPane = new JScrollPane(_myPanel); |
| 3 | _myScrollPane = new JScrollPane(_myPanel); | |||||||||||||||
4 | return _myScrollPane; | 4 | return _myScrollPane; |
Row | Violation |
---|---|
1 | Expression new MyPanel() is a method call throwing exception(s) that should be caught by a try block that will be extracted |
2 | Expression new SQLPrefsPanel() is a method call throwing exception(s) that should be caught by a try block that will be extracted |