CloneSet155


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9230.963block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19171
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/AptCompilerAdapter.java
2951
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/Javac13.java
Next
Last
Clone Instance
1
Line Count
9
Source Line
171
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/AptCompilerAdapter.java

{
  Class c = Class.forName(APT_ENTRY_POINT);
  Object compiler = c.newInstance();
  Method compile = c.getMethod(APT_METHOD_NAME, new Class[] {
                                                              (new String[] {
                                                                            } ).getClass()
                                                            } );
  int result = ((Integer) compile.invoke(compiler, new Object[] {
                                                                  cmd.getArguments()
                                                                } )).intValue();
  return (result == APT_COMPILER_SUCCESS);
}


First
Previous
Clone Instance
2
Line Count
9
Source Line
51
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/Javac13.java

{
  Class c = Class.forName("com.sun.tools.javac.Main");
  Object compiler = c.newInstance();
  Method compile = c.getMethod("compile", new Class[] {
                                                        (new String[] {
                                                                      } ).getClass()
                                                      } );
  int result = ((Integer) compile.invoke(compiler, new Object[] {
                                                                  cmd.getArguments()
                                                                } )).intValue();
  return (result == MODERN_COMPILER_SUCCESS);
}


Clone AbstractionParameter Count: 3Parameter Bindings

{
  Class c = Class.forName( [[#variablefe15da0]]);
  Object compiler = c.newInstance();
  Method compile = c.getMethod( [[#variablefe15d20]], new Class[] {
                                                                    (new String[] {
                                                                                  } ).getClass()
                                                                  } );
  int result = ((Integer) compile.invoke(compiler, new Object[] {
                                                                  cmd.getArguments()
                                                                } )).intValue();
  return (result == [[#variablefe15c20]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fe15da0]]
APT_ENTRY_POINT 
12[[#fe15da0]]
"com.sun.tools.javac.Main" 
21[[#fe15d20]]
APT_METHOD_NAME 
22[[#fe15d20]]
"compile" 
31[[#fe15c20]]
APT_COMPILER_SUCCESS 
32[[#fe15c20]]
MODERN_COMPILER_SUCCESS