CloneSet213


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9201.000statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19361
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/sos/SOS.java
29484
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java
Next
Last
Clone Instance
1
Line Count
9
Source Line
361
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/sos/SOS.java

// make sure localDir exists, create it if it doesn't
File dir = getProject().resolveFile(localPath);
if ( !dir.exists()) {
  boolean done = dir.mkdirs();
  if ( !done) {
    String msg = "Directory " + localPath + " creation was not " + "successful for an unknown reason";
    throw new BuildException(msg, getLocation());
  }
  getProject().log("Created dir: " + dir.getAbsolutePath());
}


First
Previous
Clone Instance
2
Line Count
9
Source Line
484
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/vss/MSVSS.java

//make sure m_LocalDir exists, create it if it doesn't
File dir = getProject().resolveFile(localPath);
if ( !dir.exists()) {
  boolean done = dir.mkdirs();
  if ( !done) {
    String msg = "Directory " + localPath + " creation was not " + "successful for an unknown reason";
    throw new BuildException(msg, getLocation());
  }
  getProject().log("Created dir: " + dir.getAbsolutePath());
}


Clone AbstractionParameter Count: 0Parameter Bindings

//make sure m_LocalDir exists, create it if it doesn't
// make sure localDir exists, create it if it doesn't
File dir = getProject().resolveFile(localPath);
if ( !dir.exists()) {
  boolean done = dir.mkdirs();
  if ( !done) {
    String msg = "Directory " + localPath + " creation was not " + "successful for an unknown reason";
    throw new BuildException(msg, getLocation());
  }
  getProject().log("Created dir: " + dir.getAbsolutePath());
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None