File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/control/gui/JMSPublisherGui.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/control/gui/JMSSubscriberGui.java | |||
Method name: void init()
|
Method name: void init()
|
|||
Number of AST nodes: 22 | Number of AST nodes: 22 | |||
1 | this.setLayout(new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP));↵ | 1 | this.setLayout(new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP));↵ | |
2 | // MAIN PANEL↵ | 2 | // MAIN PANEL↵ | |
3 | JPanel mainPanel = new JPanel();↵ | 3 | JPanel mainPanel = new JPanel();↵ | |
4 | Border margin = new EmptyBorder(10, 10, 5, 10);↵ | 4 | Border margin = new EmptyBorder(10, 10, 5, 10);↵ | |
5 | mainPanel.setBorder(margin);↵ | 5 | mainPanel.setBorder(margin);↵ | |
6 | mainPanel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));↵ | 6 | mainPanel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT));↵ | |
7 | // TITLE↵ | 7 | // TITLE↵ | |
8 | JLabel panelTitleLabel = new JLabel(getStaticLabel());↵ | 8 | JLabel panelTitleLabel = new JLabel(getStaticLabel());↵ | |
9 | Font curFont = panelTitleLabel.getFont();↵ | 9 | Font curFont = panelTitleLabel.getFont();↵ | |
10 | int curFontSize = curFont.getSize();↵ | 10 | int curFontSize = curFont.getSize();↵ | |
11 | curFontSize += 4;↵ | 11 | curFontSize += 4;↵ | |
12 | panelTitleLabel.setFont(new Font(curFont.getFontName(), curFont.getStyle(), curFontSize));↵ | 12 | panelTitleLabel.setFont(new Font(curFont.getFontName(), curFont.getStyle(), curFontSize));↵ | |
13 | mainPanel.add(panelTitleLabel);↵ | 13 | mainPanel.add(panelTitleLabel);↵ | |
14 | // NAME↵ | 14 | // NAME↵ | |
15 | mainPanel.add(getNamePanel());↵ | 15 | mainPanel.add(getNamePanel());↵ | |
16 | // Button for browsing webservice wsdl↵ | 16 | // Button for browsing webservice wsdl↵ | |
17 | lookup = new JPanel();↵ | 17 | lookup = new JPanel();↵ | |
18 | lookup.setLayout(new VerticalLayout(6, VerticalLayout.LEFT));↵ | 18 | lookup.setLayout(new VerticalLayout(6, VerticalLayout.LEFT));↵ | |
19 | mainPanel.add(lookup);↵ | 19 | mainPanel.add(lookup);↵ | |
20 | lookup.add(useProperties);↵ | 20 | lookup.add(useProperties);↵ | |
21 | useProperties.addChangeListener(this);↵ | 21 | useProperties.addChangeListener(this);↵ | |
22 | lookup.add(jndiICF);↵ | 22 | lookup.add(jndiICF);↵ | |
23 | lookup.add(urlField);↵ | 23 | lookup.add(urlField);↵ | |
24 | lookup.add(jndiConnFac);↵ | 24 | lookup.add(jndiConnFac);↵ | |
25 | configChoice.addChangeListener(this);↵ | 25 | reqAuth.addChangeListener(this);↵ | |
26 | msgChoice.addChangeListener(this↵ | |||
27 | ); | 26 | JPanel commonParams = new JPanel(); | |
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 in different classes having the same super class |
Number of node comparisons | 194 |
Number of mapped statements | 21 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | this.setLayout(new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP)); | 1 | this.setLayout(new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP)); | |||||||||||
2 | JPanel mainPanel = new JPanel(); | 2 | JPanel mainPanel = new JPanel(); | |||||||||||
3 | Border margin = new EmptyBorder(10, 10, 5, 10); | 3 | Border margin = new EmptyBorder(10, 10, 5, 10); | |||||||||||
4 | mainPanel.setBorder(margin); | 4 | mainPanel.setBorder(margin); | |||||||||||
5 | mainPanel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT)); | 5 | mainPanel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT)); | |||||||||||
6 | JLabel panelTitleLabel = new JLabel(getStaticLabel()); | 6 | JLabel panelTitleLabel = new JLabel(getStaticLabel()); | |||||||||||
7 | Font curFont = panelTitleLabel.getFont(); | 7 | Font curFont = panelTitleLabel.getFont(); | |||||||||||
8 | int curFontSize = curFont.getSize(); | 8 | int curFontSize = curFont.getSize(); | |||||||||||
9 | curFontSize += 4; | 9 | curFontSize += 4; | |||||||||||
10 | panelTitleLabel.setFont(new Font(curFont.getFontName(), curFont.getStyle(), curFontSize)); | 10 | panelTitleLabel.setFont(new Font(curFont.getFontName(), curFont.getStyle(), curFontSize)); | |||||||||||
11 | mainPanel.add(panelTitleLabel); | 11 | mainPanel.add(panelTitleLabel); | |||||||||||
12 | mainPanel.add(getNamePanel()); | 12 | mainPanel.add(getNamePanel()); | |||||||||||
13 | lookup = new JPanel(); | 13 | lookup = new JPanel(); | |||||||||||
14 | lookup.setLayout(new VerticalLayout(6, VerticalLayout.LEFT)); | 14 | lookup.setLayout(new VerticalLayout(6, VerticalLayout.LEFT)); | |||||||||||
15 | mainPanel.add(lookup); | 15 | mainPanel.add(lookup); | |||||||||||
16 | lookup.add(useProperties); | 16 | lookup.add(useProperties); | |||||||||||
17 | useProperties.addChangeListener(this); | 17 | useProperties.addChangeListener(this); | |||||||||||
18 | lookup.add(jndiICF); | 18 | lookup.add(jndiICF); | |||||||||||
19 | lookup.add(urlField); | 19 | lookup.add(urlField); | |||||||||||
20 | lookup.add(jndiConnFac); | 20 | lookup.add(jndiConnFac); | |||||||||||
21 | configChoice.addChangeListener(this); |
| 21 | reqAuth.addChangeListener(this); | ||||||||||
| 22 | JPanel commonParams = new JPanel(); | ||||||||||||
22 | msgChoice.addChangeListener(this); |
| |
Row | Violation |
---|---|
1 | Unmatched statement msgChoice.addChangeListener(this); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |