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/ldap/config/gui/LdapConfigGui.java | |||
Method name: void init()
|
Method name: void init()
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | setLayout(new BorderLayout(0, 5));↵ | 1 | setLayout(new BorderLayout(0, 5));↵ | |
2 | if (displayName) {↵ | 2 | if (displayName) {↵ | |
3 | setBorder(makeBorder());↵ | 3 | setBorder(makeBorder());↵ | |
4 | add(makeTitlePanel(), BorderLayout.NORTH);↵ | 4 | add(makeTitlePanel(), BorderLayout.NORTH);↵ | |
5 | }↵ | 5 | }↵ | |
6 | VerticalPanel mainPanel = new VerticalPanel();↵ | 6 | VerticalPanel mainPanel = new VerticalPanel();↵ | |
7 | mainPanel.add(createServerPanel());↵ | 7 | mainPanel.add(createServernamePanel());↵ | |
8 | mainPanel.add(createClosePortPanel());↵ | 8 | mainPanel.add(createPortPanel());↵ | |
9 | mainPanel.add(createPortPanel());↵ | 9 | mainPanel.add(createRootdnPanel());↵ | |
10 | mainPanel.add(createTimeoutPanel()); | 10 | mainPanel.add(createTestPanel()); | |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 35 |
Number of mapped statements | 9 |
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) | 17.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | setLayout(new BorderLayout(0, 5)); | 1 | setLayout(new BorderLayout(0, 5)); | |||||||||||||
2 | if (displayName) | 2 | if (displayName) | |||||||||||||
3 | setBorder(makeBorder()); | 3 | setBorder(makeBorder()); | |||||||||||||
4 | add(makeTitlePanel(), BorderLayout.NORTH); | 4 | add(makeTitlePanel(), BorderLayout.NORTH); | |||||||||||||
5 | VerticalPanel mainPanel = new VerticalPanel(); | 5 | VerticalPanel mainPanel = new VerticalPanel(); | |||||||||||||
6 | mainPanel.add(createServerPanel()); |
| 6 | mainPanel.add(createServernamePanel()); | ||||||||||||
7 | mainPanel.add(createClosePortPanel()); |
| 7 | mainPanel.add(createPortPanel()); | ||||||||||||
8 | mainPanel.add(createPortPanel()); |
| 8 | mainPanel.add(createRootdnPanel()); | ||||||||||||
9 | mainPanel.add(createTimeoutPanel()); |
| 9 | mainPanel.add(createTestPanel()); |
Row | Violation |
---|---|
1 | Expression createServerPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression createServernamePanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression createClosePortPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression createPortPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression createPortPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression createRootdnPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression createTimeoutPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression createTestPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |