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/ftp/config/gui/FtpConfigGui.java | |||
Method name: void init()
|
Method name: void init()
|
|||
Number of AST nodes: 12 | Number of AST nodes: 11 | |||
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 | // MAIN PANEL↵ | |||
6 | VerticalPanel mainPanel = new VerticalPanel();↵ | 7 | VerticalPanel mainPanel = new VerticalPanel();↵ | |
7 | mainPanel.add(createServerPanel());↵ | 8 | mainPanel.add(createServerPanel());↵ | |
8 | mainPanel.add(createClosePortPanel());↵ | 9 | mainPanel.add(create↵ | |
9 | mainPanel.add(createPortPanel());↵ | 10 | RemoteFilenamePanel());↵ | |
10 | mainPanel.add(createTimeoutPanel());↵ | 11 | mainPanel.add(createLocalFilenamePanel());↵ | |
11 | mainPanel.add(createNoDelayPanel());↵ | 12 | mainPanel.add(create↵ | |
12 | mainPanel.add(createRequestPanel());↵ | 13 | LocalFileContentsPanel());↵ | |
13 | // mainPanel.add(createFilenamePanel());↵ | 14 | mainPanel.add(createOptionsPanel());↵ | |
14 | add(mainPanel, BorderLayout.CENTER); | 15 |
| |
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 | 66 |
Number of mapped statements | 11 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 8.8 |
Clone type | Type 3 |
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(createServerPanel()); | |||||||||||||
7 | mainPanel.add(createClosePortPanel()); |
| 7 | mainPanel.add(createRemoteFilenamePanel()); | ||||||||||||
8 | mainPanel.add(createPortPanel()); |
| 8 | mainPanel.add(createLocalFilenamePanel()); | ||||||||||||
9 | mainPanel.add(createTimeoutPanel()); |
| 9 | mainPanel.add(createLocalFileContentsPanel()); | ||||||||||||
10 | mainPanel.add(createNoDelayPanel()); |
| 10 | mainPanel.add(createOptionsPanel()); | ||||||||||||
11 | mainPanel.add(createRequestPanel()); |
| | |||||||||||||
12 | add(mainPanel, BorderLayout.CENTER); | 11 | add(mainPanel, BorderLayout.CENTER); |
Row | Violation |
---|---|
1 | Expression createClosePortPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression createRemoteFilenamePanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression createPortPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression createLocalFilenamePanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression createTimeoutPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression createLocalFileContentsPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression createNoDelayPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression createOptionsPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Unmatched statement mainPanel.add(createRequestPanel()); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |