try { EnumeratedAttribute ea = (EnumeratedAttribute) reflectedArg.newInstance(); ea.setValue(value); m.invoke(parent, new Object[] {ea}); } catch (InstantiationException ie) { throw new BuildException(ie); }
if (null != usersFile) { try { userList.load(new FileInputStream(usersFile)); } catch (final IOException ioe) { throw new BuildException(ioe.toString(), ioe); } }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/IntrospectionHelper.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/cvslib/ChangeLogTask.java
Method name: void set(Project, Object, String) Method name: void loadUserlist(Properties)
Number of AST nodes: 4 Number of AST nodes: 3
1
try {
2
                        EnumeratedAttribute ea =
1
if (null != usersFile) {
3
            
2
            try {
4
                (EnumeratedAttribute) reflectedArg.newInstance();
3
                
5
                        ea.setValue(value);
6
                        m.invoke(parent, new Object[] {ea});
4
userList.load(new FileInputStream(usersFile));
7
                    } catch (InstantiationException ie) {
5
            } catch (final IOException ioe) {
8
                        throw new BuildException(ie);
6
                throw new BuildException(ioe.toString(), ioe);
9
            
7
            }
10
        }
8
        }
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 locationClones are in different classes
Number of node comparisons1