protected void createResourceParameter(NetCommand command, DotnetResource resource) { resource.getParameters(getProject(), command, true); } /** * validation code * @throws org.apache.tools.ant.BuildException if validation failed */ protected void validate() throws BuildException { super.validate(); if (getDestFile() == null) { throw new BuildException("DestFile was not specified");
protected void createResourceParameter(NetCommand command, DotnetResource resource) { resource.getParameters(getProject(), command, false); } /** * validation code * @throws BuildException if validation failed */ protected void validate() throws BuildException { super.validate(); if (getDestFile() == null) { throw new BuildException("DestFile was not specified");
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/dotnet/JSharp.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/dotnet/VisualBasicCompile.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
protected void createResourceParameter(NetCommand command, DotnetResource resource) {
1
protected void createResourceParameter(NetCommand command, DotnetResource resource) {
2
        resource.getParameters(getProject(), command, true);
2
        resource.getParameters(getProject(), command, false);
3
    }
3
    }
4
    /**
4
    /**
5
     * validation code
5
     * validation code
6
     * @throws  org.apache.tools.ant.BuildException  if validation failed
6
     * @throws  BuildException  if validation failed
7
     */
7
     */
8
    protected void validate()
8
    protected void validate()
9
            throws BuildException {
9
            throws BuildException {
10
        super.validate();
10
        super.validate();
11
        if (getDestFile() == null) {
11
        if (getDestFile() == null) {
12
            throw new BuildException("DestFile was not specified");
12
            throw new BuildException("DestFile was not specified");
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0