this.setLayout(new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP)); // MAIN PANEL JPanel mainPanel = new JPanel(); Border margin = new EmptyBorder(10, 10, 5, 10); mainPanel.setBorder(margin); mainPanel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT)); // TITLE JLabel panelTitleLabel = new JLabel(getStaticLabel()); Font curFont = panelTitleLabel.getFont(); int curFontSize = curFont.getSize(); curFontSize += 4; panelTitleLabel.setFont(new Font(curFont.getFontName(), curFont.getStyle(), curFontSize)); mainPanel.add(panelTitleLabel); // NAME mainPanel.add(getNamePanel()); // Button for browsing webservice wsdl lookup = new JPanel(); lookup.setLayout(new VerticalLayout(6, VerticalLayout.LEFT)); mainPanel.add(lookup); lookup.add(useProperties); useProperties.addChangeListener(this); lookup.add(jndiICF); lookup.add(urlField); lookup.add(jndiConnFac); configChoice.addChangeListener(this); msgChoice.addChangeListener(this);
this.setLayout(new VerticalLayout(5, VerticalLayout.LEFT, VerticalLayout.TOP)); // MAIN PANEL JPanel mainPanel = new JPanel(); Border margin = new EmptyBorder(10, 10, 5, 10); mainPanel.setBorder(margin); mainPanel.setLayout(new VerticalLayout(5, VerticalLayout.LEFT)); // TITLE JLabel panelTitleLabel = new JLabel(getStaticLabel()); Font curFont = panelTitleLabel.getFont(); int curFontSize = curFont.getSize(); curFontSize += 4; panelTitleLabel.setFont(new Font(curFont.getFontName(), curFont.getStyle(), curFontSize)); mainPanel.add(panelTitleLabel); // NAME mainPanel.add(getNamePanel()); // Button for browsing webservice wsdl lookup = new JPanel(); lookup.setLayout(new VerticalLayout(6, VerticalLayout.LEFT)); mainPanel.add(lookup); lookup.add(useProperties); useProperties.addChangeListener(this); lookup.add(jndiICF); lookup.add(urlField); lookup.add(jndiConnFac); reqAuth.addChangeListener(this); JPanel commonParams = new JPanel();
Clone fragments detected by clone detection tool
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();
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons225
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements21
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    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
    configChoice.addChangeListener(this);
    21
    reqAuth.addChangeListener(this);
    Differences
    Expression1Expression2Difference
    configChoicereqAuthVARIABLE_NAME_MISMATCH
    21
    reqAuth.addChangeListener(this);
                                                                              
    22
    JPanel commonParams = new JPanel();
    22
    msgChoice.addChangeListener(this);
                                                                                
    Precondition Violations (0)
    Row Violation