1804-5-7

dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), null, new Double(0.5), new Double(4.5), new Double(-0.5), new Double(5.5), null), "S1", "C1"); CategoryPlot plot = new CategoryPlot(dataset, new CategoryAxis("Category"), new NumberAxis("Value"), new BoxAndWhiskerRenderer());
dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), new Double(4.0), new Double(0.5), null, new Double(-0.5), new Double(5.5), null), "S1", "C1"); CategoryPlot plot = new CategoryPlot(dataset, new CategoryAxis("Category"), new NumberAxis("Value"), new BoxAndWhiskerRenderer());

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/tests/org/jfree/chart/renderer/category/junit/BoxAndWhiskerRendererTests.java |  | File path: /jfreechart-1.0.10/tests/org/jfree/chart/renderer/category/junit/BoxAndWhiskerRendererTests.java
Method name: `void testDrawWithNullQ3()` |  | Method name: `void testDrawWithNullMaxRegular()`
Number of AST nodes: 2 |  | Number of AST nodes: 2

1

    dataset.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), null, new Double(0.5),↵

2

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

3

                        new Double(4.5), new Double(-0.5), new Double(5.5),↵

3

                        null, new Double(-0.5), new Double(5.5),↵

4

                        null), "S1", "C1");↵

4

                        null), "S1", "C1");↵

5

                CategoryPlot plot = new CategoryPlot(dataset,↵

5

                CategoryPlot plot = new CategoryPlot(dataset,↵

6

                        new CategoryAxis("Category"), new NumberAxis("Value"),↵

6

                        new CategoryAxis("Category"), new NumberAxis("Value"),↵

7

                        new BoxAndWhiskerRenderer());

7

                        new BoxAndWhiskerRenderer());

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 | 2

1. {Refactorable}

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

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

   4

       dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), null, new Double(0.5), new Double(4.5), new Double(-0.5), new Double(5.5), null), "S1", "C1");

   4 | dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), null, new Double(0.5), new Double(4.5), new Double(-0.5), new Double(5.5), null), "S1", "C1");
   4 | dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), new Double(4.0), new Double(0.5), null, new Double(-0.5), new Double(5.5), null), "S1", "C1");

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   null | new Double(4.0) | TYPE_COMPATIBLE_REPLACEMENT
   new Double(4.5) | null | TYPE_COMPATIBLE_REPLACEMENT

   4

       dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), new Double(4.0), new Double(0.5), null, new Double(-0.5), new Double(5.5), null), "S1", "C1");

   5

       CategoryPlot plot = new CategoryPlot(dataset, new CategoryAxis("Category"), new NumberAxis("Value"), new BoxAndWhiskerRenderer());

   5

       CategoryPlot plot = new CategoryPlot(dataset, new CategoryAxis("Category"), new NumberAxis("Value"), new BoxAndWhiskerRenderer());

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