CloneSet228


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13210.959statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113112
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/MappingSelector.java
213151
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/PresentSelector.java
Next
Last
Clone Instance
1
Line Count
13
Source Line
112
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/MappingSelector.java

// Determine file whose out-of-dateness is to be checked
String[] destfiles = map.mapFileName(filename);
// If filename does not match the To attribute of the mapper
// then filter it out of the files we are considering
if (destfiles == null) {
  return false;
}
// Sanity check
if (destfiles.length != 1 || destfiles[0] == null) {
  throw new BuildException("Invalid destination file results for " + targetdir.getName() + " with filename " + filename);
}
String destname = destfiles[0];
File destfile = new File(targetdir, destname);


First
Previous
Clone Instance
2
Line Count
13
Source Line
151
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/PresentSelector.java

// Determine file whose existence is to be checked
String[] destfiles = map.mapFileName(filename);
// If filename does not match the To attribute of the mapper
// then filter it out of the files we are considering
if (destfiles == null) {
  return false;
}
// Sanity check
if (destfiles.length != 1 || destfiles[0] == null) {
  throw new BuildException("Invalid destination file results for " + targetdir + " with filename " + filename);
}
String destname = destfiles[0];
File destfile = new File(targetdir, destname);


Clone AbstractionParameter Count: 1Parameter Bindings

// Determine file whose out-of-dateness is to be checked
// Determine file whose existence is to be checked
String[] destfiles = map.mapFileName(filename);
// If filename does not match the To attribute of the mapper
// then filter it out of the files we are considering
if (destfiles == null) {
  return false;
}
// Sanity check
if (destfiles.length != 1 || destfiles[0] == null) {
  throw new BuildException("Invalid destination file results for " +  [[#variablefe1c6e0]] + " with filename " + filename);
}
String destname = destfiles[0];
File destfile = new File(targetdir, destname);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fe1c6e0]]
targetdir.getName() 
12[[#fe1c6e0]]
targetdir