CloneSet61


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8430.955method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18564
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java
28579
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java
38594
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java
48609
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java
Next
Last
Clone Instance
1
Line Count
8
Source Line
564
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java

/**
 * Shall we assume JDK 1.3 command line switches?
 * @return true if jdk 1.3
 * @since Ant 1.5
 */
protected boolean assumeJava13() {
  return "javac1.3".equals(attributes.getCompilerVersion()) || ("classic".equals(attributes.getCompilerVersion()) && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_3)) || ("modern".equals(attributes.getCompilerVersion()) && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_3)) || ("extJavac".equals(attributes.getCompilerVersion()) && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_3));
}


Next
Previous
Clone Instance
2
Line Count
8
Source Line
579
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java

/**
 * Shall we assume JDK 1.4 command line switches?
 * @return true if jdk 1.4
 * @since Ant 1.6.3
 */
protected boolean assumeJava14() {
  return "javac1.4".equals(attributes.getCompilerVersion()) || ("classic".equals(attributes.getCompilerVersion()) && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_4)) || ("modern".equals(attributes.getCompilerVersion()) && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_4)) || ("extJavac".equals(attributes.getCompilerVersion()) && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_4));
}


Next
Previous
Clone Instance
3
Line Count
8
Source Line
594
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java

/**
 * Shall we assume JDK 1.5 command line switches?
 * @return true if JDK 1.5
 * @since Ant 1.6.3
 */
protected boolean assumeJava15() {
  return "javac1.5".equals(attributes.getCompilerVersion()) || ("classic".equals(attributes.getCompilerVersion()) && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_5)) || ("modern".equals(attributes.getCompilerVersion()) && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_5)) || ("extJavac".equals(attributes.getCompilerVersion()) && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_5));
}


First
Previous
Clone Instance
4
Line Count
8
Source Line
609
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java

/**
 * Shall we assume JDK 1.6 command line switches?
 * @return true if JDK 1.6
 * @since Ant 1.7
 */
protected boolean assumeJava16() {
  return "javac1.6".equals(attributes.getCompilerVersion()) || ("classic".equals(attributes.getCompilerVersion()) && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_6)) || ("modern".equals(attributes.getCompilerVersion()) && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_6)) || ("extJavac".equals(attributes.getCompilerVersion()) && JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_6));
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
     * Shall we assume JDK 1.6 command line switches?
     * @return true if JDK 1.6
     * @since Ant 1.7
     */
/**
     * Shall we assume JDK 1.5 command line switches?
     * @return true if JDK 1.5
     * @since Ant 1.6.3
     */
/**
     * Shall we assume JDK 1.4 command line switches?
     * @return true if jdk 1.4
     * @since Ant 1.6.3
     */
/**
     * Shall we assume JDK 1.3 command line switches?
     * @return true if jdk 1.3
     * @since Ant 1.5
     */
protected boolean  [[#variablefe09840]]() {
  return [[#variablefe097c0]].equals(attributes.getCompilerVersion()) || ("classic".equals(attributes.getCompilerVersion()) && JavaEnvUtils.isJavaVersion(JavaEnvUtils. [[#variablefe095e0]])) || ("modern".equals(attributes.getCompilerVersion()) && JavaEnvUtils.isJavaVersion(JavaEnvUtils. [[#variablefe095e0]])) || ("extJavac".equals(attributes.getCompilerVersion()) && JavaEnvUtils.isJavaVersion(JavaEnvUtils. [[#variablefe095e0]]));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fe09840]]
assumeJava13 
12[[#fe09840]]
assumeJava14 
13[[#fe09840]]
assumeJava15 
14[[#fe09840]]
assumeJava16 
21[[#fe097c0]]
"javac1.3" 
22[[#fe097c0]]
"javac1.4" 
23[[#fe097c0]]
"javac1.5" 
24[[#fe097c0]]
"javac1.6" 
31[[#fe095e0]]
JAVA_1_3 
32[[#fe095e0]]
JAVA_1_4 
33[[#fe095e0]]
JAVA_1_5 
34[[#fe095e0]]
JAVA_1_6