Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 3 | 0.963 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 171 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/AptCompilerAdapter.java |
2 | 9 | 51 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/Javac13.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); } |
| |||||
{ 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); } |
| |||
{ 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#fe15da0]] | APT_ENTRY_POINT |
1 | 2 | [[#fe15da0]] | "com.sun.tools.javac.Main" |
2 | 1 | [[#fe15d20]] | APT_METHOD_NAME |
2 | 2 | [[#fe15d20]] | "compile" |
3 | 1 | [[#fe15c20]] | APT_COMPILER_SUCCESS |
3 | 2 | [[#fe15c20]] | MODERN_COMPILER_SUCCESS |