CloneSet31


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13301.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113107
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/optional/image/Arc.java
21371
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/optional/image/Ellipse.java
314102
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/optional/image/Rectangle.java
Next
Last
Clone Instance
1
Line Count
13
Source Line
107
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/optional/image/Arc.java

for (int i = 0; i < instructions.size(); i++) {
  ImageOperation instr = ((ImageOperation) instructions.elementAt(i));
  if (instr instanceof DrawOperation) {
    PlanarImage img = ((DrawOperation) instr).executeDrawOperation();
    graphics.drawImage(img.getAsBufferedImage(), null, 0, 0);
  }
  else
    if (instr instanceof TransformOperation) {
      graphics = (Graphics2D) bi.getGraphics();
      PlanarImage image = ((TransformOperation) instr).executeTransformOperation(PlanarImage.wrapRenderedImage(bi));
      bi = image.getAsBufferedImage();
    }
}
return PlanarImage.wrapRenderedImage(bi);


Next
Previous
Clone Instance
2
Line Count
13
Source Line
71
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/optional/image/Ellipse.java

for (int i = 0; i < instructions.size(); i++) {
  ImageOperation instr = ((ImageOperation) instructions.elementAt(i));
  if (instr instanceof DrawOperation) {
    PlanarImage img = ((DrawOperation) instr).executeDrawOperation();
    graphics.drawImage(img.getAsBufferedImage(), null, 0, 0);
  }
  else
    if (instr instanceof TransformOperation) {
      graphics = (Graphics2D) bi.getGraphics();
      PlanarImage image = ((TransformOperation) instr).executeTransformOperation(PlanarImage.wrapRenderedImage(bi));
      bi = image.getAsBufferedImage();
    }
}
return PlanarImage.wrapRenderedImage(bi);


First
Previous
Clone Instance
3
Line Count
14
Source Line
102
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/optional/image/Rectangle.java

for (int i = 0; i < instructions.size(); i++) {
  ImageOperation instr = ((ImageOperation) instructions.elementAt(i));
  if (instr instanceof DrawOperation) {
    PlanarImage img = ((DrawOperation) instr).executeDrawOperation();
    graphics.drawImage(img.getAsBufferedImage(), null, 0, 0);
  }
  else
    if (instr instanceof TransformOperation) {
      graphics = (Graphics2D) bi.getGraphics();
      PlanarImage image = ((TransformOperation) instr).executeTransformOperation(PlanarImage.wrapRenderedImage(bi));
      bi = image.getAsBufferedImage();
    }
}
return PlanarImage.wrapRenderedImage(bi);


Clone AbstractionParameter Count: 0Parameter Bindings

for (int i = 0; i < instructions.size(); i++) {
  ImageOperation instr = ((ImageOperation) instructions.elementAt(i));
  if (instr instanceof DrawOperation) {
    PlanarImage img = ((DrawOperation) instr).executeDrawOperation();
    graphics.drawImage(img.getAsBufferedImage(), null, 0, 0);
  }
  else
    if (instr instanceof TransformOperation) {
      graphics = (Graphics2D) bi.getGraphics();
      PlanarImage image = ((TransformOperation) instr).executeTransformOperation(PlanarImage.wrapRenderedImage(bi));
      bi = image.getAsBufferedImage();
    }
}
return PlanarImage.wrapRenderedImage(bi);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None