Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 3 | 0.951 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 20 | 138 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/ArchiveScanner.java |
2 | 20 | 168 | 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(); } |
| |||||
/** * 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(); } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1318cec0]] | getIncludedFiles |
1 | 2 | [[#1318cec0]] | getIncludedDirectories |
2 | 1 | [[#1318ce20]] | matchFileEntries |
2 | 2 | [[#1318ce20]] | matchDirEntries |
3 | 1 | [[#1318cda0]] | getIncludedFilesCount |
3 | 2 | [[#1318cda0]] | getIncludedDirsCount |