CloneSet474


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15210.974method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115116
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/entity/junit/ContourEntityTests.java
214111
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/entity/junit/TickLabelEntityTests.java
Next
Last
Clone Instance
1
Line Count
15
Source Line
116
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/entity/junit/ContourEntityTests.java

/**
 * Confirm that cloning works.
 */
public void testCloning() {
  ContourEntity e1 = new ContourEntity(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0), "ToolTip", "URL");
  ContourEntity e2 = null;
  try {
    e2 = (ContourEntity) e1.clone();
  }
  catch (CloneNotSupportedException
         e) {
    System.err.println("Failed to clone.");
  }
  assertTrue(e1 != e2);
  assertTrue(e1.getClass() == e2.getClass());
  assertTrue(e1.equals(e2));
}


First
Previous
Clone Instance
2
Line Count
14
Source Line
111
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/entity/junit/TickLabelEntityTests.java

/**
 * Confirm that cloning works.
 */
public void testCloning() {
  TickLabelEntity e1 = new TickLabelEntity(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0), "ToolTip", "URL");
  TickLabelEntity e2 = null;
  try {
    e2 = (TickLabelEntity) e1.clone();
  }
  catch (CloneNotSupportedException
         e) {
    System.err.println("Failed to clone.");
  }
  assertTrue(e1 != e2);
  assertTrue(e1.getClass() == e2.getClass());
  assertTrue(e1.equals(e2));
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Confirm that cloning works.
     */
public void testCloning() {
   [[#variable1a9eb360]] e1 = new [[#variable1a9eb360]](new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0), "ToolTip", "URL");
   [[#variable1a9eb360]] e2 = null;
  try {
    e2 = ( [[#variable1a9eb360]]) e1.clone();
  }
  catch (CloneNotSupportedException
         e) {
    System.err.println("Failed to clone.");
  }
  assertTrue(e1 != e2);
  assertTrue(e1.getClass() == e2.getClass());
  assertTrue(e1.equals(e2));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a9eb360]]
ContourEntity 
12[[#1a9eb360]]
TickLabelEntity