File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/tcp/config/gui/TCPConfigGui.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/tcp/config/gui/TCPConfigGui.java | |||
Method name: JPanel createTimeoutPanel()
|
Method name: JPanel createClosePortPanel()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | JLabel label = new JLabel(JMeterUtils.getResString("tcp_timeout")); // $NON-NLS-1$↵ | 1 | JLabel label = new JLabel(JMeterUtils.getResString("reuseconnection")); //$NON-NLS-1$↵ | |
2 | timeout = new JTextField(10);↵ | |||
3 | timeout.setName(TIMEOUT↵ | 2 | reUseConnection = new JCheckBox("", true);↵ | |
4 | );↵ | 3 | reUseConnection.setName(RE_USE_CONNECTION);↵ | |
5 | label.setLabelFor(timeout);↵ | 4 | label.setLabelFor(reUseConnection);↵ | |
6 | JPanel timeoutPanel = new JPanel(new BorderLayout(5, 0));↵ | 5 | JPanel closePortPanel = new JPanel(new BorderLayout(5, 0));↵ | |
7 | timeoutPanel.add(label, BorderLayout.WEST);↵ | 6 | closePortPanel.add(label, BorderLayout.WEST);↵ | |
8 | timeoutPanel.add(timeout, BorderLayout.CENTER);↵ | 7 | closePortPanel.add(reUseConnection, BorderLayout.CENTER);↵ | |
9 | return timeoutPanel; | 8 | return closePortPanel; | |
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 declared in the same class |
Number of node comparisons | 25 |
Number of mapped statements | 8 |
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 | JLabel label = new JLabel(JMeterUtils.getResString("tcp_timeout")); |
| 1 | JLabel label = new JLabel(JMeterUtils.getResString("reuseconnection")); | |||||||||||||||||||
2 | timeout = new JTextField(10); |
| 2 | reUseConnection = new JCheckBox("", true); | |||||||||||||||||||
3 | timeout.setName(TIMEOUT); |
| 3 | reUseConnection.setName(RE_USE_CONNECTION); | |||||||||||||||||||
4 | label.setLabelFor(timeout); |
| 4 | label.setLabelFor(reUseConnection); | |||||||||||||||||||
5 | JPanel timeoutPanel = new JPanel(new BorderLayout(5, 0)); |
| 5 | JPanel closePortPanel = new JPanel(new BorderLayout(5, 0)); | |||||||||||||||||||
6 | timeoutPanel.add(label, BorderLayout.WEST); |
| 6 | closePortPanel.add(label, BorderLayout.WEST); | |||||||||||||||||||
7 | timeoutPanel.add(timeout, BorderLayout.CENTER); |
| 7 | closePortPanel.add(reUseConnection, BorderLayout.CENTER); | |||||||||||||||||||
8 | return timeoutPanel; |
| 8 | return closePortPanel; |
Row | Violation |
---|