excludeModel = new PowerTableModel(new String[] { EXCLUDE_COL }, new Class[] { String.class }); excludeTable = new JTable(excludeModel); excludeTable.setPreferredScrollableViewportSize(new Dimension(100, 30)); JPanel panel = new JPanel(new BorderLayout()); panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils .getResString("patterns_to_exclude"))); // $NON-NLS-1$ panel.add(new JScrollPane(excludeTable), BorderLayout.CENTER);
includeModel = new PowerTableModel(new String[] { INCLUDE_COL }, new Class[] { String.class }); includeTable = new JTable(includeModel); includeTable.setPreferredScrollableViewportSize(new Dimension(100, 30)); JPanel panel = new JPanel(new BorderLayout()); panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils .getResString("patterns_to_include"))); // $NON-NLS-1$ panel.add(new JScrollPane(includeTable), BorderLayout.CENTER);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java
Method name: JPanel createExcludePanel() Method name: JPanel createIncludePanel()
Number of AST nodes: 6 Number of AST nodes: 6
1
excludeModel = new PowerTableModel(new String[] { EXCLUDE_COL }, new Class[] { String.class });
1
includeModel = new PowerTableModel(new String[] { INCLUDE_COL }, new Class[] { String.class });
2
		excludeTable = new JTable(excludeModel);
2
		includeTable = new JTable(includeModel);
3
		excludeTable.setPreferredScrollableViewportSize(new Dimension(100, 30));
3
		includeTable.setPreferredScrollableViewportSize(new Dimension(100, 30));
4
		JPanel panel = new JPanel(new BorderLayout());
4
		JPanel panel = new JPanel(new BorderLayout());
5
		panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils
5
		panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils
6
				.getResString("patterns_to_exclude"))); // $NON-NLS-1$
6
				.getResString("patterns_to_include"))); // $NON-NLS-1$
7
		panel.add(new JScrollPane(excludeTable), BorderLayout.CENTER);
7
		panel.add(new JScrollPane(includeTable), BorderLayout.CENTER);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons19
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    excludeModel = new PowerTableModel(new String[] {EXCLUDE_COL}, new Class[] {String.class});
    1
    excludeModel = new PowerTableModel(new String[] {EXCLUDE_COL}, new Class[] {String.class});
    1
    includeModel = new PowerTableModel(new String[] {INCLUDE_COL}, new Class[] {String.class});
    Differences
    Expression1Expression2Difference
    excludeModelincludeModelVARIABLE_NAME_MISMATCH
    EXCLUDE_COLINCLUDE_COLVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression excludeModel is a field being modified, and thus it cannot be parameterized
    Expression includeModel is a field being modified, and thus it cannot be parameterized
    1
    includeModel = new PowerTableModel(new String[] {INCLUDE_COL}, new Class[] {String.class});
    2
    excludeTable = new JTable(excludeModel);
    2
    excludeTable = new JTable(excludeModel);
    2
    includeTable = new JTable(includeModel);
    Differences
    Expression1Expression2Difference
    excludeTableincludeTableVARIABLE_NAME_MISMATCH
    excludeModelincludeModelVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression excludeTable is a field being modified, and thus it cannot be parameterized
    Expression includeTable is a field being modified, and thus it cannot be parameterized
    Expression excludeModel cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression includeModel cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2
    includeTable = new JTable(includeModel);
    3
    excludeTable.setPreferredScrollableViewportSize(new Dimension(100, 30));
    3
    excludeTable.setPreferredScrollableViewportSize(new Dimension(100, 30));
    3
    includeTable.setPreferredScrollableViewportSize(new Dimension(100, 30));
    Differences
    Expression1Expression2Difference
    excludeTableincludeTableVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression excludeTable cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression includeTable cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3
    includeTable.setPreferredScrollableViewportSize(new Dimension(100, 30));
    4
    JPanel panel = new JPanel(new BorderLayout());
    4
    JPanel panel = new JPanel(new BorderLayout());
    5
    panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("patterns_to_exclude")));
    5
    panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("patterns_to_exclude")));
    5
    panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("patterns_to_include")));
    Differences
    Expression1Expression2Difference
    "patterns_to_exclude""patterns_to_include"LITERAL_VALUE_MISMATCH
    5
    panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), JMeterUtils.getResString("patterns_to_include")));
    6
    panel.add(new JScrollPane(excludeTable), BorderLayout.CENTER);
    6
    panel.add(new JScrollPane(excludeTable), BorderLayout.CENTER);
    6
    panel.add(new JScrollPane(includeTable), BorderLayout.CENTER);
    Differences
    Expression1Expression2Difference
    excludeTableincludeTableVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression excludeTable cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression includeTable cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6
    panel.add(new JScrollPane(includeTable), BorderLayout.CENTER);
    Precondition Violations (10)
    Row Violation
    1Expression excludeModel is a field being modified, and thus it cannot be parameterized
    2Expression includeModel is a field being modified, and thus it cannot be parameterized
    3Expression excludeTable is a field being modified, and thus it cannot be parameterized
    4Expression includeTable is a field being modified, and thus it cannot be parameterized
    5Expression excludeModel cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression includeModel cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression excludeTable cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8Expression includeTable cannot be parameterized, because it has dependencies to/from statements that will be extracted
    9Expression excludeTable cannot be parameterized, because it has dependencies to/from statements that will be extracted
    10Expression includeTable cannot be parameterized, because it has dependencies to/from statements that will be extracted