Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 1 | 0.973 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 90 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/junit/PaintMapTests.java |
2 | 12 | 88 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/junit/StrokeMapTests.java |
| |||||
m1.put("A", null); assertEquals(null, m1.getPaint("A")); // a null key should throw an IllegalArgumentException boolean pass = false; try { m1.getPaint(null); } catch (IllegalArgumentException e) { pass = true; } assertTrue(pass); |
| |||||
m1.put("A", null); assertEquals(null, m1.getStroke("A")); // a null key should throw an IllegalArgumentException boolean pass = false; try { m1.getStroke(null); } catch (IllegalArgumentException e) { pass = true; } assertTrue(pass); |
| |||
m1.put("A", null); assertEquals(null, m1. [[#variable18ea17e0]]("A")); // a null key should throw an IllegalArgumentException boolean pass = false; try { m1. [[#variable18ea17e0]](null); } catch (IllegalArgumentException e) { pass = true; } assertTrue(pass); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#18ea17e0]] | getPaint |
1 | 2 | [[#18ea17e0]] | getStroke |