CloneSet543


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17230.971method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1173392
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java
2173419
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java
Next
Last
Clone Instance
1
Line Count
17
Source Line
3392
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java

/**
 * Returns the domain axis for a dataset.
 *
 * @param index  the dataset index.
 *
 * @return The axis.
 */
public ValueAxis getDomainAxisForDataset(int index) {
  if (index < 0 || index >= getDatasetCount()) {
    throw new IllegalArgumentException("Index " + index + " out of bounds.");
  }
  ValueAxis valueAxis = null;
  Integer axisIndex = (Integer) this.datasetToDomainAxisMap.get(new Integer(index));
  if (axisIndex != null) {
    valueAxis = getDomainAxis(axisIndex.intValue());
  }
  else {
    valueAxis = getDomainAxis(0);
  }
  return valueAxis;
}


First
Previous
Clone Instance
2
Line Count
17
Source Line
3419
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java

/**
 * Returns the range axis for a dataset.
 *
 * @param index  the dataset index.
 *
 * @return The axis.
 */
public ValueAxis getRangeAxisForDataset(int index) {
  if (index < 0 || index >= getDatasetCount()) {
    throw new IllegalArgumentException("Index " + index + " out of bounds.");
  }
  ValueAxis valueAxis = null;
  Integer axisIndex = (Integer) this.datasetToRangeAxisMap.get(new Integer(index));
  if (axisIndex != null) {
    valueAxis = getRangeAxis(axisIndex.intValue());
  }
  else {
    valueAxis = getRangeAxis(0);
  }
  return valueAxis;
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
     * Returns the range axis for a dataset.
     *
     * @param index  the dataset index.
     *
     * @return The axis.
     */
/**
     * Returns the domain axis for a dataset.
     *
     * @param index  the dataset index.
     *
     * @return The axis.
     */
public ValueAxis  [[#variable18c39a20]](int index) {
  if (index < 0 || index >= getDatasetCount()) {
    throw new IllegalArgumentException("Index " + index + " out of bounds.");
  }
  ValueAxis valueAxis = null;
  Integer axisIndex = (Integer) this. [[#variable18c39980]].get(new Integer(index));
  if (axisIndex != null) {
    valueAxis = [[#variable18c39900]](axisIndex.intValue());
  }
  else {
    valueAxis = [[#variable18c39900]](0);
  }
  return valueAxis;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18c39a20]]
getDomainAxisForDataset 
12[[#18c39a20]]
getRangeAxisForDataset 
21[[#18c39980]]
datasetToDomainAxisMap 
22[[#18c39980]]
datasetToRangeAxisMap 
31[[#18c39900]]
getDomainAxis 
32[[#18c39900]]
getRangeAxis