if (null != specificationVersion) { try { this.specificationVersion = new DeweyDecimal(specificationVersion); } catch (final NumberFormatException nfe) { final String error = "Bad specification version format '" + specificationVersion + "' in '" + extensionName + "'. (Reason: " + nfe + ")"; throw new IllegalArgumentException(error);
if (null != specificationVersion) { try { this.specificationVersion = new DeweyDecimal(specificationVersion); } catch (final NumberFormatException nfe) { final String error = "Bad specification version format '" + specificationVersion + "' in '" + specificationTitle + "'. (Reason: " + nfe + ")"; throw new IllegalArgumentException(error);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/extension/Extension.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/extension/Specification.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (null != specificationVersion) {
1
if (null != specificationVersion) {
2
            try {
2
            try {
3
                this.specificationVersion
3
                this.specificationVersion
4
                    = new DeweyDecimal(specificationVersion);
4
                    = new DeweyDecimal(specificationVersion);
5
            } catch (final NumberFormatException nfe) {
5
            } catch (final NumberFormatException nfe) {
6
                final String error = "Bad specification version format '"
6
                final String error = "Bad specification version format '"
7
                    + specificationVersion + "' in '" + extensionName
7
                    + specificationVersion + "' in '" + specificationTitle
8
                    + "'. (Reason: " + nfe + ")";
8
                    + "'. (Reason: " + nfe + ")";
9
                throw new IllegalArgumentException(error);
9
                throw new IllegalArgumentException(error);
10
            
10
            
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