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 createNoDelayPanel()
|
Method name: JPanel createClosePortPanel()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | JLabel label = new JLabel(JMeterUtils.getResString("tcp_nodelay")); // $NON-NLS-1$↵ | 1 | JLabel label = new JLabel(JMeterUtils.getResString("reuseconnection")); //$NON-NLS-1$↵ | |
2 | setNoDelay = new JCheckBox();↵ | 2 | reUseConnection = new JCheckBox(↵ | |
3 | setNoDelay.setName(NODELAY↵ | 3 | "", true);↵ | |
4 | );↵ | 4 | reUseConnection.setName(RE_USE_CONNECTION);↵ | |
5 | label.setLabelFor(setNoDelay);↵ | 5 | label.setLabelFor(reUseConnection);↵ | |
6 | JPanel nodelayPanel = new JPanel(new BorderLayout(5, 0));↵ | 6 | JPanel closePortPanel = new JPanel(new BorderLayout(5, 0));↵ | |
7 | nodelayPanel.add(label, BorderLayout.WEST);↵ | 7 | closePortPanel.add(label, BorderLayout.WEST);↵ | |
8 | nodelayPanel.add(setNoDelay, BorderLayout.CENTER);↵ | 8 | closePortPanel.add(reUseConnection, BorderLayout.CENTER);↵ | |
9 | return nodelayPanel; | 9 | 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_nodelay")); |
| 1 | JLabel label = new JLabel(JMeterUtils.getResString("reuseconnection")); | |||||||||||||
2 | setNoDelay = new JCheckBox(); |
| 2 | reUseConnection = new JCheckBox("", true); | |||||||||||||
3 | setNoDelay.setName(NODELAY); |
| 3 | reUseConnection.setName(RE_USE_CONNECTION); | |||||||||||||
4 | label.setLabelFor(setNoDelay); |
| 4 | label.setLabelFor(reUseConnection); | |||||||||||||
5 | JPanel nodelayPanel = new JPanel(new BorderLayout(5, 0)); |
| 5 | JPanel closePortPanel = new JPanel(new BorderLayout(5, 0)); | |||||||||||||
6 | nodelayPanel.add(label, BorderLayout.WEST); |
| 6 | closePortPanel.add(label, BorderLayout.WEST); | |||||||||||||
7 | nodelayPanel.add(setNoDelay, BorderLayout.CENTER); |
| 7 | closePortPanel.add(reUseConnection, BorderLayout.CENTER); | |||||||||||||
8 | return nodelayPanel; |
| 8 | return closePortPanel; |
Row | Violation |
---|