CloneSet89


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19210.955statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119106
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/SelectorUtils.java
221170
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/SelectorUtils.java
Next
Last
Clone Instance
1
Line Count
19
Source Line
106
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/selectors/SelectorUtils.java

String[] patDirs = tokenizePathAsArray(pattern);
String[] strDirs = tokenizePathAsArray(str);
int patIdxStart = 0;
int patIdxEnd = patDirs.length - 1;
int strIdxStart = 0;
int strIdxEnd = strDirs.length - 1;
// up to first '**'
while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {
  String patDir = patDirs[patIdxStart];
  if (patDir.equals("**")) {
    break;
  }
  if ( !match(patDir, strDirs[strIdxStart], isCaseSensitive)) {
    return false;
  }
  patIdxStart++;
  strIdxStart++;
}


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

String[] patDirs = tokenizePathAsArray(pattern);
String[] strDirs = tokenizePathAsArray(str);
int patIdxStart = 0;
int patIdxEnd = patDirs.length - 1;
int strIdxStart = 0;
int strIdxEnd = strDirs.length - 1;
// up to first '**'
while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {
  String patDir = patDirs[patIdxStart];
  if (patDir.equals("**")) {
    break;
  }
  if ( !match(patDir, strDirs[strIdxStart], isCaseSensitive)) {
    patDirs = null;
    strDirs = null;
    return false;
  }
  patIdxStart++;
  strIdxStart++;
}


Clone AbstractionParameter Count: 1Parameter Bindings

String[] patDirs = tokenizePathAsArray(pattern);
String[] strDirs = tokenizePathAsArray(str);
int patIdxStart = 0;
int patIdxEnd = patDirs.length - 1;
int strIdxStart = 0;
int strIdxEnd = strDirs.length - 1;
// up to first '**'
while (patIdxStart <= patIdxEnd && strIdxStart <= strIdxEnd) {
  String patDir = patDirs[patIdxStart];
  if (patDir.equals("**")) {
    break;
  }
  if ( !match(patDir, strDirs[strIdxStart], isCaseSensitive)) {
     [[#variablefdabf60]]
  }
  patIdxStart++;
  strIdxStart++;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fdabf60]]
return false; 
12[[#fdabf60]]
patDirs = null;
strDirs = null;
return false;