cc=new Cookie("test2","moo2",null,"/sub1",false,0,true,false); man.add(cc); cc=new Cookie("test3","moo3",null,"/",false,0,false,false); man.add(cc);
cc=new Cookie("test1","moo1",null,"/sub1",false,0,false,false); man.add(cc); cc=new Cookie("test2","moo2",null,"/sub1",false,0,true,false); man.add(cc);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/control/TestCookieManager.java File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/control/TestCookieManager.java
Method name: void testCookiePolicyIgnore() Method name: void testCookiePolicyIgnore()
Number of AST nodes: 4 Number of AST nodes: 4
1
cc=new Cookie("test2","moo2",null,"/sub1",false,0,true,false);
1
cc=new Cookie("test1","moo1",null,"/sub1",false,0,false,false);
2
            man.add(cc);
2
            man.add(cc);
3
            cc=new Cookie("test3","moo3",null,"/",false,0,false,false);
3
            cc=new Cookie("test2","moo2",null,"/sub1",false,0,true,false);
4
            man.add(cc);
4
            man.add(cc);
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 in the same method
Number of node comparisons10
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements4
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    10
    cc = new Cookie("test2", "moo2", null, "/sub1", false, 0, true, false);
    10
    cc = new Cookie("test2", "moo2", null, "/sub1", false, 0, true, false);
    8
    cc = new Cookie("test1", "moo1", null, "/sub1", false, 0, false, false);
    Differences
    Expression1Expression2Difference
    "test2""test1"LITERAL_VALUE_MISMATCH
    "moo2""moo1"LITERAL_VALUE_MISMATCH
    truefalseLITERAL_VALUE_MISMATCH
    8
    cc = new Cookie("test1", "moo1", null, "/sub1", false, 0, false, false);
                                  
    9
    man.add(cc);
    Preondition Violations
    Unmatched statement man.add(cc); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    9
    man.add(cc);
    11
    man.add(cc);
    11
    man.add(cc);
    12
    cc = new Cookie("test3", "moo3", null, "/", false, 0, false, false);
    12
    cc = new Cookie("test3", "moo3", null, "/", false, 0, false, false);
    10
    cc = new Cookie("test2", "moo2", null, "/sub1", false, 0, true, false);
    Differences
    Expression1Expression2Difference
    "test3""test2"LITERAL_VALUE_MISMATCH
    "moo3""moo2"LITERAL_VALUE_MISMATCH
    "/""/sub1"LITERAL_VALUE_MISMATCH
    falsetrueLITERAL_VALUE_MISMATCH
    10
    cc = new Cookie("test2", "moo2", null, "/sub1", false, 0, true, false);
    13
    man.add(cc);
    11
    man.add(cc);
    Precondition Violations (2)
    Row Violation
    1Unmatched statement man.add(cc); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2Clone fragment #1 returns variables , while Clone fragment #2 returns variables cc