File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java | |||
Method name: boolean isRebuildRequired(File, File)
|
Method name: boolean isRebuildRequired(File, File)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | boolean rebuild = false;↵ | 1 | boolean rebuild = false;↵ | |
2 | JarFile genericJar = null;↵ | 2 | JarFile genericJar = null;↵ | |
3 | JarFile wlJar = null;↵ | 3 | JarFile wasJar = null;↵ | |
4 | File newWLJarFile = null;↵ | 4 | File newwasJarFile = null;↵ | |
5 | JarOutputStream newJarStream = null; | 5 |
| |
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 | 25 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | boolean rebuild = false; | 1 | boolean rebuild = false; | |||||||||||
2 | JarFile genericJar = null; | 2 | JarFile genericJar = null; | |||||||||||
3 | JarFile wlJar = null; |
| 3 | JarFile wasJar = null; | ||||||||||
4 | File newWLJarFile = null; |
| 4 | File newwasJarFile = null; | ||||||||||
5 | JarOutputStream newJarStream = null; | 5 | JarOutputStream newJarStream = null; |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables genericJar, wlJar, rebuild, newWLJarFile, newJarStream , while Clone fragment #2 returns variables genericJar, wasJar, rebuild, newwasJarFile, newJarStream |