if (stacktree.peek() instanceof Connector || stacktree.peek() instanceof Connector) { stacktree.pop(); }
if (newName == null || !newName.equals(getName())) { super.setName(newName); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/monitor/parser/MonitorHandler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/util/HTTPArgument.java
Method name: void endElement(String, String, String) Method name: void setName(String)
Number of AST nodes: 2 Number of AST nodes: 2
1
if (stacktree.peek() instanceof Connector || stacktree.peek() instanceof Connector) {
1
if (
2
				stacktree.pop(
2
newName == null || !newName.equals(getName())) {
3
);
3
			super.setName(newName);
4
			}
4
		}
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 comparisons4
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)4.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    11
    if (stacktree.peek() instanceof Connector || stacktree.peek() instanceof Connector)
    11
    if (stacktree.peek() instanceof Connector || stacktree.peek() instanceof Connector)
    1
    if (newName == null || !newName.equals(getName()))
    Differences
    Expression1Expression2Difference
    stacktree.peek() instanceof ConnectornewName == nullINFIX_LEFT_OPERAND_MISMATCH
    stacktree.peek() instanceof Connector!newName.equals(getName())INFIX_RIGHT_OPERAND_MISMATCH
    1
    if (newName == null || !newName.equals(getName()))
                                                        
    2
    super.setName(newName);
    12
    stacktree.pop();
                                            
    Precondition Violations (0)
    Row Violation