File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Javac.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Tar.java | |||
Method name: void scanDir(File, File, String[])
|
Method name: String[] getFileNames(FileSet)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | File[] newCompileList↵ | |||
2 | = new File[compileList.length + newFiles.length];↵ | 1 | String[] files = new String [directories.length + filesPerSe.length];↵ | |
3 | System.arraycopy(compileList, 0, newCompileList, 0,↵ | 2 | System.arraycopy(↵ | |
4 | compileList.length);↵ | 3 | directories, 0, files, 0, directories.length);↵ | |
5 | System.arraycopy(newFiles, 0, newCompileList,↵ | 4 | System.arraycopy(filesPerSe, 0, files, directories.length,↵ | |
6 | compileList.length, newFiles.length); | 5 | filesPerSe.length); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 9 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 4 | String[] files = new String[directories.length + filesPerSe.length]; | |||||||||||||||||||||||||||||||||||||
7 | File[] newCompileList = new File[compileList.length + newFiles.length]; | | |||||||||||||||||||||||||||||||||||||
8 | System.arraycopy(compileList, 0, newCompileList, 0, compileList.length); |
| 5 | System.arraycopy(directories, 0, files, 0, directories.length); | |||||||||||||||||||||||||||||||||||
9 | System.arraycopy(newFiles, 0, newCompileList, compileList.length, newFiles.length); |
| 6 | System.arraycopy(filesPerSe, 0, files, directories.length, filesPerSe.length); |
Row | Violation |
---|---|
1 | Type java.io.File[] of variable compileList does not match with type java.lang.String[] of variable directories |
2 | Type java.io.File[] of variable newCompileList does not match with type java.lang.String[] of variable files |
3 | Type int of variable compileList.length does not match with type int of variable directories.length |
4 | Type java.io.File[] of variable newFiles does not match with type java.lang.String[] of variable filesPerSe |
5 | Type java.io.File[] of variable newCompileList does not match with type java.lang.String[] of variable files |
6 | Type int of variable compileList.length does not match with type int of variable directories.length |
7 | Type int of variable newFiles.length does not match with type int of variable filesPerSe.length |