CloneSet224


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
29210.962method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
129111
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/labels/junit/StandardCategoryItemLabelGeneratorTests.java
22990
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/labels/junit/StandardCategoryToolTipGeneratorTests.java
Next
Last
Clone Instance
1
Line Count
29
Source Line
111
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/labels/junit/StandardCategoryItemLabelGeneratorTests.java

/**
 * Some checks for the equals() method.
 */
public void testEquals() {
  StandardCategoryItemLabelGenerator g1 = new StandardCategoryItemLabelGenerator();
  StandardCategoryItemLabelGenerator g2 = new StandardCategoryItemLabelGenerator();
  assertTrue(g1.equals(g2));
  assertTrue(g2.equals(g1));
  g1 = new StandardCategoryItemLabelGenerator("{0}", new DecimalFormat("0.000"));
  assertFalse(g1.equals(g2));
  g2 = new StandardCategoryItemLabelGenerator("{0}", new DecimalFormat("0.000"));
  assertTrue(g1.equals(g2));
  g1 = new StandardCategoryItemLabelGenerator("{1}", new DecimalFormat("0.000"));
  assertFalse(g1.equals(g2));
  g2 = new StandardCategoryItemLabelGenerator("{1}", new DecimalFormat("0.000"));
  assertTrue(g1.equals(g2));
  g1 = new StandardCategoryItemLabelGenerator("{2}", new SimpleDateFormat("d-MMM"));
  assertFalse(g1.equals(g2));
  g2 = new StandardCategoryItemLabelGenerator("{2}", new SimpleDateFormat("d-MMM"));
  assertTrue(g1.equals(g2));
}


First
Previous
Clone Instance
2
Line Count
29
Source Line
90
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/labels/junit/StandardCategoryToolTipGeneratorTests.java

/**
 * Tests the equals() method.
 */
public void testEquals() {
  StandardCategoryToolTipGenerator g1 = new StandardCategoryToolTipGenerator();
  StandardCategoryToolTipGenerator g2 = new StandardCategoryToolTipGenerator();
  assertTrue(g1.equals(g2));
  assertTrue(g2.equals(g1));
  g1 = new StandardCategoryToolTipGenerator("{0}", new DecimalFormat("0.000"));
  assertFalse(g1.equals(g2));
  g2 = new StandardCategoryToolTipGenerator("{0}", new DecimalFormat("0.000"));
  assertTrue(g1.equals(g2));
  g1 = new StandardCategoryToolTipGenerator("{1}", new DecimalFormat("0.000"));
  assertFalse(g1.equals(g2));
  g2 = new StandardCategoryToolTipGenerator("{1}", new DecimalFormat("0.000"));
  assertTrue(g1.equals(g2));
  g1 = new StandardCategoryToolTipGenerator("{2}", new SimpleDateFormat("d-MMM"));
  assertFalse(g1.equals(g2));
  g2 = new StandardCategoryToolTipGenerator("{2}", new SimpleDateFormat("d-MMM"));
  assertTrue(g1.equals(g2));
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Some checks for the equals() method.
     */
/**
     * Tests the equals() method.
     */
public void testEquals() {
   [[#variable1a84ec80]] g1 = new [[#variable1a84ec80]]();
   [[#variable1a84ec80]] g2 = new [[#variable1a84ec80]]();
  assertTrue(g1.equals(g2));
  assertTrue(g2.equals(g1));
  g1 = new [[#variable1a84ec80]]("{0}", new DecimalFormat("0.000"));
  assertFalse(g1.equals(g2));
  g2 = new [[#variable1a84ec80]]("{0}", new DecimalFormat("0.000"));
  assertTrue(g1.equals(g2));
  g1 = new [[#variable1a84ec80]]("{1}", new DecimalFormat("0.000"));
  assertFalse(g1.equals(g2));
  g2 = new [[#variable1a84ec80]]("{1}", new DecimalFormat("0.000"));
  assertTrue(g1.equals(g2));
  g1 = new [[#variable1a84ec80]]("{2}", new SimpleDateFormat("d-MMM"));
  assertFalse(g1.equals(g2));
  g2 = new [[#variable1a84ec80]]("{2}", new SimpleDateFormat("d-MMM"));
  assertTrue(g1.equals(g2));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a84ec80]]
StandardCategoryItemLabelGenerator 
12[[#1a84ec80]]
StandardCategoryToolTipGenerator