File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java | |||
Method name: JPanel createExcludePanel()
|
Method name: JPanel createIncludePanel()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | excludeModel = new PowerTableModel(new String[] { EXCLUDE_COL }, new Class[] { String.class });↵ | 1 | includeModel = new PowerTableModel(new String[] { INCLUDE_COL }, new Class[] { String.class });↵ | |
2 | excludeTable = new JTable(excludeModel);↵ | 2 | includeTable = new JTable(includeModel);↵ | |
3 | excludeTable.setPreferredScrollableViewportSize(new Dimension(100, 30));↵ | 3 | includeTable.setPreferredScrollableViewportSize(new Dimension(100, 30));↵ | |
4 | JPanel panel = new JPanel(new BorderLayout());↵ | 4 | JPanel panel = new JPanel(new BorderLayout());↵ | |
5 | panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils↵ | 5 | panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils↵ | |
6 | .getResString("patterns_to_exclude"))); // $NON-NLS-1$↵ | 6 | .getResString("patterns_to_include"))); // $NON-NLS-1$↵ | |
7 | panel.add(new JScrollPane(excludeTable), BorderLayout.CENTER); | 7 | panel.add(new JScrollPane(includeTable), BorderLayout.CENTER); | |
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 declared in the same class |
Number of node comparisons | 19 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | excludeModel = new PowerTableModel(new String[] {EXCLUDE_COL}, new Class[] {String.class}); |
| 1 | includeModel = new PowerTableModel(new String[] {INCLUDE_COL}, new Class[] {String.class}); | |||||||||||||||||
2 | excludeTable = new JTable(excludeModel); |
| 2 | includeTable = new JTable(includeModel); | |||||||||||||||||
3 | excludeTable.setPreferredScrollableViewportSize(new Dimension(100, 30)); |
| 3 | includeTable.setPreferredScrollableViewportSize(new Dimension(100, 30)); | |||||||||||||||||
4 | JPanel panel = new JPanel(new BorderLayout()); | 4 | JPanel panel = new JPanel(new BorderLayout()); | ||||||||||||||||||
5 | panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("patterns_to_exclude"))); |
| 5 | panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("patterns_to_include"))); | |||||||||||||||||
6 | panel.add(new JScrollPane(excludeTable), BorderLayout.CENTER); |
| 6 | panel.add(new JScrollPane(includeTable), BorderLayout.CENTER); |
Row | Violation |
---|---|
1 | Expression excludeModel is a field being modified, and thus it cannot be parameterized |
2 | Expression includeModel is a field being modified, and thus it cannot be parameterized |
3 | Expression excludeTable is a field being modified, and thus it cannot be parameterized |
4 | Expression includeTable is a field being modified, and thus it cannot be parameterized |
5 | Expression excludeModel cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression includeModel cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression excludeTable cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression includeTable cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression excludeTable cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression includeTable cannot be parameterized, because it has dependencies to/from statements that will be extracted |