if (helpWindow == null) { helpWindow = new JDialog(new Frame(),// independent frame to // allow it to be overlaid // by the main frame JMeterUtils.getResString("help"),//$NON-NLS-1$ false); helpWindow.getContentPane().setLayout(new GridLayout(1, 1)); ComponentUtil.centerComponentInWindow(helpWindow, 60); }
if (helpWindow == null) { helpWindow = new JDialog(new Frame(),// independent frame to // allow it to be overlaid // by the main frame JMeterUtils.getResString("help"),//$NON-NLS-1$ false); helpWindow.getContentPane().setLayout(new GridLayout(1, 1)); ComponentUtil.centerComponentInWindow(helpWindow, 60); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/action/Help.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportHelp.java
Method name: void doAction(ActionEvent) Method name: void doAction(ActionEvent)
Number of AST nodes: 4 Number of AST nodes: 4
1
if (helpWindow == null) {
1
if (helpWindow == null) {
2
			helpWindow = new JDialog(new Frame(),// independent frame to
2
			helpWindow = new JDialog(new Frame(),// independent frame to
3
													// allow it to be overlaid
3
													// allow it to be overlaid
4
													// by the main frame
4
													// by the main frame
5
					JMeterUtils.getResString("help"),//$NON-NLS-1$
5
					JMeterUtils.getResString("help"),//$NON-NLS-1$
6
					false);
6
					false);
7
			helpWindow.getContentPane().setLayout(new GridLayout(1, 1));
7
			helpWindow.getContentPane().setLayout(new GridLayout(1, 1));
8
			ComponentUtil.centerComponentInWindow(helpWindow, 60);
8
			ComponentUtil.centerComponentInWindow(helpWindow, 60);
9
		}
9
		}
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.1
Clones locationClones are in different classes
Number of node comparisons16
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.3
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    1
    if (helpWindow == null)
    1
    if (helpWindow == null)
    2
    helpWindow = new JDialog(new Frame(), JMeterUtils.getResString("help"), false);
    2
    helpWindow = new JDialog(new Frame(), JMeterUtils.getResString("help"), false);
    3
    helpWindow.getContentPane().setLayout(new GridLayout(1, 1));
    3
    helpWindow.getContentPane().setLayout(new GridLayout(1, 1));
    4
    ComponentUtil.centerComponentInWindow(helpWindow, 60);
    4
    ComponentUtil.centerComponentInWindow(helpWindow, 60);
    Precondition Violations (0)
    Row Violation