Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 3 | 0.953 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 88 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/annotations/junit/CategoryTextAnnotationTests.java |
2 | 7 | 84 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/annotations/junit/TextAnnotationTests.java |
| |||||
CategoryTextAnnotation a1 = new CategoryTextAnnotation("Test", "Category", 1.0); CategoryTextAnnotation a2 = new CategoryTextAnnotation("Test", "Category", 1.0); assertTrue(a1.equals(a2)); // category a1.setCategory("Category 2"); assertFalse(a1.equals(a2)); |
| |||||
TextAnnotation a1 = new CategoryTextAnnotation("Test", "Category", 1.0); TextAnnotation a2 = new CategoryTextAnnotation("Test", "Category", 1.0); assertTrue(a1.equals(a2)); // text a1.setText("Text"); assertFalse(a1.equals(a2)); |
| |||
[[#variable18e25cc0]] a1 = new CategoryTextAnnotation("Test", "Category", 1.0); [[#variable18e25cc0]] a2 = new CategoryTextAnnotation("Test", "Category", 1.0); assertTrue(a1.equals(a2)); // category // text a1. [[#variable18e25c20]]( [[#variable18e25ba0]]); assertFalse(a1.equals(a2)); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#18e25cc0]] | CategoryTextAnnotation |
1 | 2 | [[#18e25cc0]] | TextAnnotation |
2 | 1 | [[#18e25c20]] | setCategory |
2 | 2 | [[#18e25c20]] | setText |
3 | 1 | [[#18e25ba0]] | "Category 2" |
3 | 2 | [[#18e25ba0]] | "Text" |