CloneSet780


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9240.964executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
192974
plugins/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java
292988
plugins/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java
Clone Instance
1
Line Count
9
Source Line
2974
Source File
plugins/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java

                       if (CompilerOptions.VERSION_1_4.equals(version)) {
                        if ( !this.didSpecifySource)this.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_3);
                        if ( !this.didSpecifyTarget)this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_2);
                       }
                       else
                       if (CompilerOptions.VERSION_1_5.equals(version)) {
                        if ( !this.didSpecifySource)this.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_5);
                        if ( !this.didSpecifyTarget)this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_5);
                       }
                       else
                       if (CompilerOptions.VERSION_1_6.equals(version)) {
                        if ( !this.didSpecifySource)this.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_6);
                        if ( !this.didSpecifyTarget)this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_6);
                       }


Clone Instance
2
Line Count
9
Source Line
2988
Source File
plugins/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java

                // default is source 1.3 target 1.2 and compliance 1.4
                if (CompilerOptions.VERSION_1_4.equals(version)) {
                        if ( !didSpecifyCompliance)this.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_4);
                        if ( !this.didSpecifyTarget)this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_4);
                }
                else   if (CompilerOptions.VERSION_1_5.equals(version)) {
                        if ( !didSpecifyCompliance)this.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_5);
                        if ( !this.didSpecifyTarget)this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_5);
                       }
                       else
                       if (CompilerOptions.VERSION_1_6.equals(version)) {
                        if ( !didSpecifyCompliance)this.options.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_6);
                        if ( !this.didSpecifyTarget)this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_6);
                       }


Clone AbstractionParameter Count: 4Parameter Bindings

// default is source 1.3 target 1.2 and compliance 1.4
if (CompilerOptions.VERSION_1_4.equals(version)) {
  if ( ! [[#variable9307af20]])
    this.options.put(CompilerOptions. [[#variable9307aea0]], CompilerOptions. [[#variable9307ae40]]);
  if ( !this.didSpecifyTarget)
    this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions. [[#variable9307ade0]]);
}
else
  if (CompilerOptions.VERSION_1_5.equals(version)) {
    if ( ! [[#variable9307af20]])
      this.options.put(CompilerOptions. [[#variable9307aea0]], CompilerOptions.VERSION_1_5);
    if ( !this.didSpecifyTarget)
      this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_5);
  }
  else
    if (CompilerOptions.VERSION_1_6.equals(version)) {
      if ( ! [[#variable9307af20]])
        this.options.put(CompilerOptions. [[#variable9307aea0]], CompilerOptions.VERSION_1_6);
      if ( !this.didSpecifyTarget)
        this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_6);
    }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9307af20]]
this.didSpecifySource 
12[[#9307af20]]
didSpecifyCompliance 
21[[#9307aea0]]
OPTION_Source 
22[[#9307aea0]]
OPTION_Compliance 
31[[#9307ae40]]
VERSION_1_3 
32[[#9307ae40]]
VERSION_1_4 
41[[#9307ade0]]
VERSION_1_2 
42[[#9307ade0]]
VERSION_1_4