CloneSet3548


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1988
plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.java
29156
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/OptionsConfigurationBlock.java
Clone Instance
1
Line Count
9
Source Line
88
Source File
plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.java

                public int getSelection(String value) {
                        if (value != null) {
                                for (int i = 0; i < fValues.length; i++) {
                                        if (value.equals(fValues[i])) {
                                                return i;
                                        }
                                }
                        }
                        return fValues.length - 1; // assume the last option is the least severe
                }


Clone Instance
2
Line Count
9
Source Line
156
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/OptionsConfigurationBlock.java

                public int getSelection(String value) {
                        if (value != null) {
                                for (int i = 0; i < fValues.length; i++) {
                                        if (value.equals(fValues[i])) {
                                                return i;
                                        }
                                }
                        }
                        return fValues.length - 1; // assume the last option is the least severe
                }


Clone AbstractionParameter Count: 0Parameter Bindings

public int getSelection(String value) {
  if (value != null) {
    for (int i = 0; i < fValues.length; i++) {
      if (value.equals(fValues[i])) {
        return i;
      }
    }
  }
  return fValues.length - 1; // assume the last option is the least severe
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None