CloneSet318


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

/**
 * A utility method that returns a list of datasets that are mapped to a
 * particular axis.
 *
 * @param axisIndex  the axis index (<code>null</code> not permitted).
 *
 * @return A list of datasets.
 */
private List getDatasetsMappedToDomainAxis(Integer axisIndex) {
  if (axisIndex == null) {
    throw new IllegalArgumentException("Null \'axisIndex\' argument.");
  }
  List result = new ArrayList();
  for (int i = 0; i < this.datasets.size(); i++) {
    Integer mappedAxis = (Integer) this.datasetToDomainAxisMap.get(new Integer(i));
    if (mappedAxis == null) {
      if (axisIndex.equals(ZERO)) {
        result.add(this.datasets.get(i));
      }
    }
    else {
      if (mappedAxis.equals(axisIndex)) {
        result.add(this.datasets.get(i));
      }
    }
  }
  return result;
}


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

/**
 * A utility method that returns a list of datasets that are mapped to a
 * particular axis.
 *
 * @param axisIndex  the axis index (<code>null</code> not permitted).
 *
 * @return A list of datasets.
 */
private List getDatasetsMappedToRangeAxis(Integer axisIndex) {
  if (axisIndex == null) {
    throw new IllegalArgumentException("Null \'axisIndex\' argument.");
  }
  List result = new ArrayList();
  for (int i = 0; i < this.datasets.size(); i++) {
    Integer mappedAxis = (Integer) this.datasetToRangeAxisMap.get(new Integer(i));
    if (mappedAxis == null) {
      if (axisIndex.equals(ZERO)) {
        result.add(this.datasets.get(i));
      }
    }
    else {
      if (mappedAxis.equals(axisIndex)) {
        result.add(this.datasets.get(i));
      }
    }
  }
  return result;
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * A utility method that returns a list of datasets that are mapped to a
     * particular axis.
     *
     * @param axisIndex  the axis index (<code>null</code> not permitted).
     *
     * @return A list of datasets.
     */
private List  [[#variable1a8f9660]](Integer axisIndex) {
  if (axisIndex == null) {
    throw new IllegalArgumentException("Null \'axisIndex\' argument.");
  }
  List result = new ArrayList();
  for (int i = 0; i < this.datasets.size(); i++) {
    Integer mappedAxis = (Integer) this. [[#variable1a8f95e0]].get(new Integer(i));
    if (mappedAxis == null) {
      if (axisIndex.equals(ZERO)) {
        result.add(this.datasets.get(i));
      }
    }
    else {
      if (mappedAxis.equals(axisIndex)) {
        result.add(this.datasets.get(i));
      }
    }
  }
  return result;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a8f9660]]
getDatasetsMappedToDomainAxis 
12[[#1a8f9660]]
getDatasetsMappedToRangeAxis 
21[[#1a8f95e0]]
datasetToDomainAxisMap 
22[[#1a8f95e0]]
datasetToRangeAxisMap