CloneSet177


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11210.992catch_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111799
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Copy.java
212888
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Copy.java
Next
Last
Clone Instance
1
Line Count
11
Source Line
799
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Copy.java

catch (IOException
       ioe) {
  String msg = "Failed to copy " + fromFile + " to " + toFile + " due to " + getDueTo(ioe);
  File targetFile = new File(toFile);
  if (targetFile.exists() && !targetFile.delete()) {
    msg += " and I couldn\'t delete the corrupt " + toFile;
  }
  if (failonerror) {
    throw new BuildException(msg, ioe, getLocation());
  }
  log(msg, Project.MSG_ERR);
}


First
Previous
Clone Instance
2
Line Count
12
Source Line
888
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Copy.java

catch (IOException
       ioe) {
  String msg = "Failed to copy " + fromResource + " to " + toFile + " due to " + getDueTo(ioe);
  File targetFile = new File(toFile);
  if (targetFile.exists() && !targetFile.delete()) {
    msg += " and I couldn\'t delete the corrupt " + toFile;
  }
  if (failonerror) {
    throw new BuildException(msg, ioe, getLocation());
  }
  log(msg, Project.MSG_ERR);
}


Clone AbstractionParameter Count: 1Parameter Bindings

catch (IOException
       ioe) {
  String msg = "Failed to copy " +  [[#variablefe8a500]] + " to " + toFile + " due to " + getDueTo(ioe);
  File targetFile = new File(toFile);
  if (targetFile.exists() && !targetFile.delete()) {
    msg += " and I couldn\'t delete the corrupt " + toFile;
  }
  if (failonerror) {
    throw new BuildException(msg, ioe, getLocation());
  }
  log(msg, Project.MSG_ERR);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fe8a500]]
fromFile 
12[[#fe8a500]]
fromResource