File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/gui/SmarttoolFindBadNullValuesFrame.java | File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/gui/SmarttoolMissingIndicesFrame.java | |||
Method name: JPanel createPanelButton()
|
Method name: JPanel createpanelButton()
|
|||
Number of AST nodes: 14 | Number of AST nodes: 14 | |||
1 | JPanel jpanel1 = new JPanel();↵ | 1 | JPanel panelButton = new JPanel();↵ | |
2 | jpanel1.setName("panelButton");↵ | 2 | panelButton.setName("panelButton");↵ | |
3 | FormLayout formlayout1 = new FormLayout(↵ | 3 | FormLayout formlayout1 = new FormLayout(↵ | |
4 | "FILL:DEFAULT:NONE",↵ | 4 | "FILL:DEFAULT:NONE",↵ | |
5 | "CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");↵ | 5 | "CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");↵ | |
6 | CellConstraints cc = new CellConstraints();↵ | 6 | CellConstraints cc = new CellConstraints();↵ | |
7 | jpanel1.setLayout(formlayout1);↵ | 7 | panelButton.setLayout(formlayout1);↵ | |
8 | btnStart.setActionCommand("Start");↵ | 8 | btnStart.setActionCommand("Start");↵ | |
9 | btnStart.setName("btnStart");↵ | 9 | btnStart.setName("btnStart");↵ | |
10 | btnStart.setText("Start");↵ | 10 | btnStart.setText("Start");↵ | |
11 | jpanel1.add(btnStart, cc.xy(1, 1));↵ | 11 | panelButton.add(btnStart, cc.xy(1, 1));↵ | |
12 | btnStop.setActionCommand("Stop");↵ | 12 | btnStop.setActionCommand("Stop");↵ | |
13 | btnStop.setName("btnStop");↵ | 13 | btnStop.setName("btnStop");↵ | |
14 | btnStop.setText("Stop");↵ | 14 | btnStop.setText("Stop");↵ | |
15 | jpanel1.add(btnStop, cc.xy(1, 3));↵ | 15 | panelButton.add(btnStop, cc.xy(1, 3));↵ | |
16 | return jpanel1; | 16 | return panelButton; | |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 127 |
Number of mapped statements | 14 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | JPanel jpanel1 = new JPanel(); |
| 1 | JPanel panelButton = new JPanel(); | ||||||||||
2 | jpanel1.setName("panelButton"); |
| 2 | panelButton.setName("panelButton"); | ||||||||||
3 | FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE"); | 3 | FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE", "CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE"); | |||||||||||
4 | CellConstraints cc = new CellConstraints(); | 4 | CellConstraints cc = new CellConstraints(); | |||||||||||
5 | jpanel1.setLayout(formlayout1); |
| 5 | panelButton.setLayout(formlayout1); | ||||||||||
6 | btnStart.setActionCommand("Start"); | 6 | btnStart.setActionCommand("Start"); | |||||||||||
7 | btnStart.setName("btnStart"); | 7 | btnStart.setName("btnStart"); | |||||||||||
8 | btnStart.setText("Start"); | 8 | btnStart.setText("Start"); | |||||||||||
9 | jpanel1.add(btnStart, cc.xy(1, 1)); |
| 9 | panelButton.add(btnStart, cc.xy(1, 1)); | ||||||||||
10 | btnStop.setActionCommand("Stop"); | 10 | btnStop.setActionCommand("Stop"); | |||||||||||
11 | btnStop.setName("btnStop"); | 11 | btnStop.setName("btnStop"); | |||||||||||
12 | btnStop.setText("Stop"); | 12 | btnStop.setText("Stop"); | |||||||||||
13 | jpanel1.add(btnStop, cc.xy(1, 3)); |
| 13 | panelButton.add(btnStop, cc.xy(1, 3)); | ||||||||||
14 | return jpanel1; |
| 14 | return panelButton; |
Row | Violation |
---|