File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/sessioninfo/SessionInfoPanel.java | File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/SGAtrace/SGATracePanel.java | |||
Method name: void createGUI()
|
Method name: void createGUI()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | setLayout(new BorderLayout());↵ | 1 | setLayout(new BorderLayout());↵ | |
2 | _sessionInfo = new AutoWidthResizeTable(new DefaultTableModel());↵ | 2 | _sgaTrace = new AutoWidthResizeTable(new DefaultTableModel());↵ | |
3 | _sessionInfo.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);↵ | 3 | _sgaTrace.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);↵ | |
4 | add(new JScrollPane(_sessionInfo));↵ | 4 | add(new JScrollPane(_sgaTrace));↵ | |
5 | populateSessionInfo(); | 5 | populateSGATrace(); | |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 17 |
Number of mapped statements | 5 |
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 | setLayout(new BorderLayout()); | 1 | setLayout(new BorderLayout()); | |||||||||||||||
2 | _sessionInfo = new AutoWidthResizeTable(new DefaultTableModel()); |
| 2 | _sgaTrace = new AutoWidthResizeTable(new DefaultTableModel()); | ||||||||||||||
3 | _sessionInfo.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); |
| 3 | _sgaTrace.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); | ||||||||||||||
4 | add(new JScrollPane(_sessionInfo)); |
| 4 | add(new JScrollPane(_sgaTrace)); | ||||||||||||||
5 | populateSessionInfo(); |
| 5 | populateSGATrace(); |
Row | Violation |
---|---|
1 | Expression _sessionInfo is a field being modified, and thus it cannot be parameterized |
2 | Expression _sgaTrace is a field being modified, and thus it cannot be parameterized |
3 | Expression _sessionInfo cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression _sgaTrace cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression _sessionInfo cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression _sgaTrace cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression populateSessionInfo() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression populateSGATrace() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression populateSessionInfo() is a void method call, and thus it cannot be parameterized |
10 | Expression populateSGATrace() is a void method call, and thus it cannot be parameterized |