private static final String NONE = "none"; /** * GZIP compression */ private static final String GZIP = "gzip"; /** * BZIP2 compression */ private static final String BZIP2 = "bzip2"; /** * Default constructor */ public TarCompressionMethod() { super(); setValue(NONE); } /** * Get valid enumeration values. * @return valid enumeration values */ public String[] getValues() { return new String[] {NONE, GZIP, BZIP2 };
private static final String NONE = "none"; /** * GZIP compression */ private static final String GZIP = "gzip"; /** * BZIP2 compression */ private static final String BZIP2 = "bzip2"; /** * Constructor */ public UntarCompressionMethod() { super(); setValue(NONE); } /** * Get valid enumeration values * * @return valid values */ public String[] getValues() { return new String[] {NONE, GZIP, BZIP2};
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Tar.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Untar.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
private static final String NONE = "none";
1
private static final String NONE = "none";
2
        /**
2
        /**
3
         *    GZIP compression
3
         *  GZIP compression
4
         */
4
         */
5
        private static final String GZIP = "gzip";
5
        private static final String GZIP = "gzip";
6
        /**
6
        /**
7
         *    BZIP2 compression
7
         *  BZIP2 compression
8
         */
8
         */
9
        private static final String BZIP2 = "bzip2";
9
        private static final String BZIP2 = "bzip2";
10
        /**
10
        /**
11
         * Default constructor
11
         *  Constructor
12
         */
12
         */
13
        public TarCompressionMethod() {
13
        public UntarCompressionMethod() {
14
            super();
14
            super();
15
            setValue(NONE);
15
            setValue(NONE);
16
        }
16
        }
17
        /**
17
        /**
18
         *  Get valid enumeration values.
18
         * Get valid enumeration values
19
         * 
19
         *
20
 @return valid enumeration values
20
         * @return valid values
21
         */
21
         */
22
        public String[] getValues() {
22
        public String[] getValues() {
23
            return new String[] {NONE, GZIP, BZIP2 };
23
            return new String[] {NONE, GZIP, BZIP2};
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