1803-3-8

d1.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), new Double(4.0), new Double(5.0), new Double(6.0), new Double(7.0), new Double(8.0), new ArrayList()), "ROW1", "COLUMN1"); DefaultBoxAndWhiskerCategoryDataset d2 = new DefaultBoxAndWhiskerCategoryDataset();
dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), new Double(4.0), new Double(5.0), new Double(6.0), null, new Double(8.0), new ArrayList()), "ROW1", "COLUMN1"); dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), new Double(4.0), new Double(5.0), new Double(6.0), new Double(7.0), null, new ArrayList()), "ROW1", "COLUMN2");

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/tests/org/jfree/data/statistics/junit/DefaultBoxAndWhiskerCategoryDatasetTests.java |  | File path: /jfreechart-1.0.10/tests/org/jfree/data/statistics/junit/DefaultBoxAndWhiskerCategoryDatasetTests.java
Method name: `void testEquals()` |  | Method name: `void test1701822()`
Number of AST nodes: 2 |  | Number of AST nodes: 2

1

    d1.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), ↵

1

    dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), ↵

2

                    new Double(3.0), new Double(4.0), new Double(5.0), ↵

2

                        new Double(3.0), new Double(4.0), new Double(5.0), ↵

3

                    new Double(6.0), new Double(7.0), new Double(8.0), ↵

3

                        new Double(6.0), null, new Double(8.0),↵

4

                    new ArrayList()), "ROW1", "COLUMN1");↵

4

                        new ArrayList()), "ROW1", "COLUMN1");↵

5

            DefaultBoxAndWhiskerCategoryDataset d2 ↵

5

                dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), ↵

6

                    = new DefaultBoxAndWhiskerCategoryDataset(↵

6

                        new Double(3.0), new Double(4.0), new Double(5.0), ↵

7

                        new Double(6.0), new Double(7.0), null,↵

7

    );

8

                        new ArrayList()), "ROW1", "COLUMN2");

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 1
Number of refactorable cases | 1
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location | Clones are declared in the same class
Number of node comparisons | 4

1. {Refactorable}

   Mapping Summary
   Number of mapped statements | 1
   Number of unmapped statements in the first code fragment | 1
   Number of unmapped statements in the second code fragment | 1
   Time elapsed for statement mapping (ms) | 0.0
   Clone type | Type 3

   Mapped Statements
   ID | Statement |  | ID | Statement
   --- | --- | --- | --- | ---

   2

       d1.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), new Double(4.0), new Double(5.0), new Double(6.0), new Double(7.0), new Double(8.0), new ArrayList()), "ROW1", "COLUMN1");

   2 | d1.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), new Double(4.0), new Double(5.0), new Double(6.0), new Double(7.0), new Double(8.0), new ArrayList()), "ROW1", "COLUMN1");
   3 | dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), new Double(4.0), new Double(5.0), new Double(6.0), null, new Double(8.0), new ArrayList()), "ROW1", "COLUMN1");

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   new Double(7.0) | null | TYPE_COMPATIBLE_REPLACEMENT
   d1 | dataset | VARIABLE_NAME_MISMATCH

   3

       dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), new Double(4.0), new Double(5.0), new Double(6.0), null, new Double(8.0), new ArrayList()), "ROW1", "COLUMN1");

   3

       DefaultBoxAndWhiskerCategoryDataset d2 = new DefaultBoxAndWhiskerCategoryDataset();

   Precondition Violations (0)
   Row | Violation
   --- | ---