File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/jsp/compilers/DefaultJspCompilerAdapter.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java | |||
Method name: void logAndAddFilesToCompile(JspC, Vector, CommandlineJava)
|
Method name: void logAndAddFilesToCompile(Commandline)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | jspc.log("Compilation " + cmd.describeJavaCommand(),↵ | 1 | attributes.log("Compilation " + cmd.describe↵ | |
2 | Arguments(),↵ | |||
2 | Project.MSG_VERBOSE);↵ | 3 | Project.MSG_VERBOSE);↵ | |
3 | StringBuffer niceSourceList = new StringBuffer("File");↵ | 4 | StringBuffer niceSourceList = new StringBuffer("File");↵ | |
4 | if (compileList.size() != 1) {↵ | 5 | if (compileList.length != 1) {↵ | |
5 | niceSourceList.append("s");↵ | 6 | niceSourceList.append("s");↵ | |
6 | }↵ | 7 | }↵ | |
7 | niceSourceList.append(" to be compiled:");↵ | 8 | niceSourceList.append(" to be compiled:");↵ | |
8 | niceSourceList.append(lSep); | 9 | niceSourceList.append(StringUtils.LINE_SEP); | |
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 14 |
Number of mapped statements | 5 |
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) | 3.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | attributes.log("Compilation " + cmd.describeArguments(), Project.MSG_VERBOSE); | ||||||||||||
1 | jspc.log("Compilation " + cmd.describeJavaCommand(), Project.MSG_VERBOSE); | | ||||||||||||
2 | StringBuffer niceSourceList = new StringBuffer("File"); | 2 | StringBuffer niceSourceList = new StringBuffer("File"); | |||||||||||
3 | if (compileList.size() != 1) |
| 3 | if (compileList.length != 1) | ||||||||||
4 | niceSourceList.append("s"); | 4 | niceSourceList.append("s"); | |||||||||||
5 | niceSourceList.append(" to be compiled:"); | 5 | niceSourceList.append(" to be compiled:"); | |||||||||||
6 | niceSourceList.append(lSep); |
| 6 | niceSourceList.append(StringUtils.LINE_SEP); |
Row | Violation |
---|---|
1 | The refactoring of the clones is infeasible, because classes org.apache.tools.ant.taskdefs.optional.jsp.compilers.DefaultJspCompilerAdapter and org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter do not have a common superclass |