CloneSet184


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20230.951class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120138
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/ArchiveScanner.java
220168
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/ArchiveScanner.java
Next
Last
Clone Instance
1
Line Count
20
Source Line
138
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/ArchiveScanner.java

/**
 * Returns the names of the files which matched at least one of the
 * include patterns and none of the exclude patterns.
 * The names are relative to the base directory.
 *
 * @return the names of the files which matched at least one of the
 *         include patterns and none of the exclude patterns.
 */
public String[] getIncludedFiles() {
  if (src == null) {
    return super.getIncludedFiles();
  }
  scanme();
  Set s = matchFileEntries.keySet();
  return (String[]) (s.toArray(new String[s.size()]));
}

/**
 * Override parent implementation.
 * @return count of included files.
 * @since Ant 1.7
 */
public int getIncludedFilesCount() {
  if (src == null) {
    return super.getIncludedFilesCount();
  }
  scanme();
  return matchFileEntries.size();
}


First
Previous
Clone Instance
2
Line Count
20
Source Line
168
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/ArchiveScanner.java

/**
 * Returns the names of the directories which matched at least one of the
 * include patterns and none of the exclude patterns.
 * The names are relative to the base directory.
 *
 * @return the names of the directories which matched at least one of the
 * include patterns and none of the exclude patterns.
 */
public String[] getIncludedDirectories() {
  if (src == null) {
    return super.getIncludedDirectories();
  }
  scanme();
  Set s = matchDirEntries.keySet();
  return (String[]) (s.toArray(new String[s.size()]));
}

/**
 * Override parent implementation.
 * @return count of included directories.
 * @since Ant 1.7
 */
public int getIncludedDirsCount() {
  if (src == null) {
    return super.getIncludedDirsCount();
  }
  scanme();
  return matchDirEntries.size();
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
     * Returns the names of the files which matched at least one of the
     * include patterns and none of the exclude patterns.
     * The names are relative to the base directory.
     *
     * @return the names of the files which matched at least one of the
     *         include patterns and none of the exclude patterns.
     */
/**
     * Returns the names of the directories which matched at least one of the
     * include patterns and none of the exclude patterns.
     * The names are relative to the base directory.
     *
     * @return the names of the directories which matched at least one of the
     * include patterns and none of the exclude patterns.
     */
public String[]  [[#variable1318cec0]]() {
  if (src == null) {
    return super. [[#variable1318cec0]]();
  }
  scanme();
  Set s = [[#variable1318ce20]].keySet();
  return (String[]) (s.toArray(new String[s.size()]));
}

/**
     * Override parent implementation.
     * @return count of included files.
     * @since Ant 1.7
     */
/**
     * Override parent implementation.
     * @return count of included directories.
     * @since Ant 1.7
     */
public int  [[#variable1318cda0]]() {
  if (src == null) {
    return super. [[#variable1318cda0]]();
  }
  scanme();
  return [[#variable1318ce20]].size();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1318cec0]]
getIncludedFiles 
12[[#1318cec0]]
getIncludedDirectories 
21[[#1318ce20]]
matchFileEntries 
22[[#1318ce20]]
matchDirEntries 
31[[#1318cda0]]
getIncludedFilesCount 
32[[#1318cda0]]
getIncludedDirsCount