File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WLRun.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WLRun.java | |||
Method name: void executeWLS6()
|
Method name: void executeWLS()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | weblogicServer.createJvmarg().setLine(jvmArgs);↵ | 1 | weblogicServer.createJvmarg().setLine(jvmArgs);↵ | |
2 | weblogicServer.createArg().setLine(additionalArgs);↵ | 2 | weblogicServer.createArg().setLine(additionalArgs);↵ | |
3 | if (classpath != null) {↵ | 3 | if (classpath != null) {↵ | |
4 | weblogicServer.setClasspath(classpath);↵ | 4 | weblogicServer.setClasspath(classpath);↵ | |
5 | }↵ | 5 | }↵ | |
6 | if (weblogicServer.executeJava() != 0) {↵ | 6 | if (weblogicServer.executeJava() != 0) {↵ | |
7 | throw new BuildException("Execution of weblogic server failed");↵ | 7 | throw new BuildException("Execution of weblogic server failed");↵ | |
8 | } | 8 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.6 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 17 |
Number of mapped statements | 6 |
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) | 1.0 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
24 | weblogicServer.createJvmarg().setLine(jvmArgs); | 20 | weblogicServer.createJvmarg().setLine(jvmArgs); | |
25 | weblogicServer.createArg().setLine(additionalArgs); | 21 | weblogicServer.createArg().setLine(additionalArgs); | |
26 | if (classpath != null) | 22 | if (classpath != null) | |
27 | weblogicServer.setClasspath(classpath); | 23 | weblogicServer.setClasspath(classpath); | |
28 | if (weblogicServer.executeJava() != 0) | 24 | if (weblogicServer.executeJava() != 0) | |
29 | throw new BuildException("Execution of weblogic server failed"); | 25 | throw new BuildException("Execution of weblogic server failed"); |
Row | Violation |
---|