CloneSet3381


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13240.953statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113196
plugins/org.eclipse.jdt.core/antadapter/org/eclipse/jdt/core/JDTCompilerAdapter.java
213345
plugins/org.eclipse.jdt.core/antadapter/org/eclipse/jdt/core/JDTCompilerAdapter.java
Clone Instance
1
Line Count
13
Source Line
196
Source File
plugins/org.eclipse.jdt.core/antadapter/org/eclipse/jdt/core/JDTCompilerAdapter.java

                try {
                        getDebugLevelMethod = javacClass.getMethod("getDebugLevel", null); //$NON-NLS-1$
                } catch (NoSuchMethodException e) {
                        // if not found, then we cannot use this method (ant 1.5)
                        // debug level is only available with ant 1.5.x
                  }
            String debugLevel = null;
                if (getDebugLevelMethod != null) {
                                try {
                                        debugLevel = (String) getDebugLevelMethod.invoke(this.attributes, null);
                                } catch (IllegalAccessException e) {
                                        // should never happen
                                  }
                                  catch (InvocationTargetException e) {
                                        // should never happen
                                  }
                }


Clone Instance
2
Line Count
13
Source Line
345
Source File
plugins/org.eclipse.jdt.core/antadapter/org/eclipse/jdt/core/JDTCompilerAdapter.java

                try {
                        getCurrentCompilerArgsMethod = javacClass.getMethod("getCurrentCompilerArgs", null); //$NON-NLS-1$
                } catch (NoSuchMethodException e) {
                        // if not found, then we cannot use this method (ant 1.5)
                        // debug level is only available with ant 1.5.x
                  }
                String[] compilerArgs = null;
                if (getCurrentCompilerArgsMethod != null) {
                        try {
                                compilerArgs = (String[]) getCurrentCompilerArgsMethod.invoke(this.attributes, null);
                        } catch (IllegalAccessException e) {
                                // should never happen
                          }
                          catch (InvocationTargetException e) {
                                // should never happen
                          }
                }


Clone AbstractionParameter Count: 4Parameter Bindings

try {
   [[#variable97ef6620]]= javacClass.getMethod( [[#variable97ef6580]], null); //$NON-NLS-1$
}
catch (NoSuchMethodException e) {
// if not found, then we cannot use this method (ant 1.5)
// debug level is only available with ant 1.5.x
}
String [[#variable97ef6560]]  [[#variableb112e6e0]]= null;
if ( [[#variable97ef6620]]!= null) {
  try {
     [[#variableb112e6e0]]= (String [[#variable97ef6560]])  [[#variable97ef6620]].invoke(this.attributes, null);
  }
  catch (IllegalAccessException e) {
  // should never happen
  }
  catch (InvocationTargetException e) {
  // should never happen
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#97ef6620]]
getCurrentCompilerArgsMethod 
12[[#97ef6620]]
getDebugLevelMethod 
21[[#97ef6580]]
"getCurrentCompilerArgs" 
22[[#97ef6580]]
"getDebugLevel" 
31[[#97ef6560]]
[] 
32[[#97ef6560]]
41[[#b112e6e0]]
compilerArgs 
42[[#b112e6e0]]
debugLevel