boolean isFileManagedBinary(File file) { String filename = file.toString().toLowerCase(); return filename.endsWith(".exe") || filename.endsWith(".dll") || filename.endsWith(".netmodule"); } /** * Target types to build. * valid build types are exe|library|module|winexe */ public static class TargetTypes extends EnumeratedAttribute { /** {@inheritDoc}. */ public String[] getValues() { return new String[] { "exe", "library", "module", "winexe" }; }
boolean isFileManagedBinary(File file) { String filename = file.toString().toLowerCase(); return filename.endsWith(".exe") || filename.endsWith(".dll") || filename.endsWith(".netmodule"); } /** * Target types to build. * valid build types are exe|library|module|winexe */ public static class TargetTypes extends EnumeratedAttribute { /** {@inheritDoc}. */ public String[] getValues() { return new String[]{ "exe", "library", }; }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
boolean isFileManagedBinary(File file) {
1
boolean isFileManagedBinary(File file) {
2
        String filename = file.toString().toLowerCase();
2
        String filename = file.toString().toLowerCase();
3
        return filename.endsWith(".exe") || filename.endsWith(".dll")
3
        return filename.endsWith(".exe") || filename.endsWith(".dll")
4
                || filename.endsWith(".netmodule");
4
                || filename.endsWith(".netmodule");
5
    }
5
    }
6
    /**
6
    /**
7
     * Target types to build.
7
     * Target types to build.
8
     * valid build types are exe|library|module|winexe
8
     * valid build types are exe|library|module|winexe
9
     */
9
     */
10
    public static class TargetTypes extends EnumeratedAttribute {
10
    public static class TargetTypes extends EnumeratedAttribute {
11
        /** {@inheritDoc}. */
11
        /** {@inheritDoc}. */
12
        public String[] getValues() {
12
        public String[] getValues() {
13
            return new String[] {
13
            return new String[]{
14
                "exe",
14
                "exe",
15
                "library",
15
                "library",
16
                "module",
17
                "winexe"
18
            };
16
            };
19
        }
17
        }
20
    
18
    
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