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 executeWLS()
|
Method name: void executeWLS6()
|
|||
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) | 21.9 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 14 |
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) | 2.2 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
20 | weblogicServer.createJvmarg().setLine(jvmArgs); | 24 | weblogicServer.createJvmarg().setLine(jvmArgs); | |
21 | weblogicServer.createArg().setLine(additionalArgs); | 25 | weblogicServer.createArg().setLine(additionalArgs); | |
22 | if (classpath != null) | 26 | if (classpath != null) | |
23 | weblogicServer.setClasspath(classpath); | 27 | weblogicServer.setClasspath(classpath); | |
24 | if (weblogicServer.executeJava() != 0) | 28 | if (weblogicServer.executeJava() != 0) | |
25 | throw new BuildException("Execution of weblogic server failed"); | 29 | throw new BuildException("Execution of weblogic server failed"); |
Row | Violation |
---|