Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 3 | 0.977 | statement_sequence[14] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 218 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/plot/dial/junit/DialPlotTests.java |
2 | 15 | 302 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/plot/dial/junit/DialPlotTests.java |
| |||||
DialPlot p = new DialPlot(); DialBackground b1 = new DialBackground(Color.red); p.setBackground(b1); p.addChangeListener(this ); this.lastEvent = null; b1.setPaint(Color.blue); assertNotNull(this.lastEvent); DialBackground b2 = new DialBackground(Color.green); p.setBackground(b2); this.lastEvent = null; b1.setPaint(Color.red); assertNull(this.lastEvent); b2.setPaint(Color.red); assertNotNull(this.lastEvent); |
| |||||
DialPlot p = new DialPlot(); DialBackground b1 = new DialBackground(Color.red); p.addLayer(b1); p.addChangeListener(this ); this.lastEvent = null; b1.setPaint(Color.blue); assertNotNull(this.lastEvent); DialBackground b2 = new DialBackground(Color.green); p.addLayer(b2); this.lastEvent = null; b1.setPaint(Color.red); assertNotNull(this.lastEvent); b2.setPaint(Color.green); assertNotNull(this.lastEvent); |
| |||
DialPlot p = new DialPlot(); DialBackground b1 = new DialBackground(Color.red); p. [[#variable1a97e4c0]](b1); p.addChangeListener(this ); this.lastEvent = null; b1.setPaint(Color.blue); assertNotNull(this.lastEvent); DialBackground b2 = new DialBackground(Color.green); p. [[#variable1a97e4c0]](b2); this.lastEvent = null; b1.setPaint(Color.red); [[#variable1a9804c0]](this.lastEvent); b2.setPaint(Color. [[#variable1a97e7c0]]); assertNotNull(this.lastEvent); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1a97e4c0]] | setBackground |
1 | 2 | [[#1a97e4c0]] | addLayer |
2 | 1 | [[#1a9804c0]] | assertNull |
2 | 2 | [[#1a9804c0]] | assertNotNull |
3 | 1 | [[#1a97e7c0]] | red |
3 | 2 | [[#1a97e7c0]] | green |