CloneSet2793


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10210.995class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11048
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaPreferencesSettings.java
21061
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaPreferencesSettings.java
Clone Instance
1
Line Count
10
Source Line
48
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaPreferencesSettings.java

        public static int getImportNumberThreshold(IJavaProject project) {
                String thresholdStr = PreferenceConstants.getPreference(PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, project);
                try {
                        int threshold = Integer.parseInt(thresholdStr);
                        if (threshold < 0) {
                                threshold = Integer.MAX_VALUE;
                        }
                        return threshold;
                } catch (NumberFormatException e) {
                        return Integer.MAX_VALUE;
                  }
        }


Clone Instance
2
Line Count
10
Source Line
61
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaPreferencesSettings.java

        public static int getStaticImportNumberThreshold(IJavaProject project) {
                String thresholdStr = PreferenceConstants.getPreference(PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, project);
                try {
                        int threshold = Integer.parseInt(thresholdStr);
                        if (threshold < 0) {
                                threshold = Integer.MAX_VALUE;
                        }
                        return threshold;
                } catch (NumberFormatException e) {
                        return Integer.MAX_VALUE;
                  }
        }


Clone AbstractionParameter Count: 1Parameter Bindings

public static int  [[#variableb966b0e0]](IJavaProject project) {
  String thresholdStr = PreferenceConstants.getPreference(PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD, project);
  try {
    int threshold = Integer.parseInt(thresholdStr);
    if (threshold < 0) {
      threshold = Integer.MAX_VALUE;
    }
    return threshold;
  }
  catch (NumberFormatException e) {
    return Integer.MAX_VALUE;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b966b0e0]]
getImportNumberThreshold 
12[[#b966b0e0]]
getStaticImportNumberThreshold