Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 1 | 0.995 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 48 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaPreferencesSettings.java |
2 | 10 | 61 | 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; } } |
| ||||
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; } } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b966b0e0]] | getImportNumberThreshold |
1 | 2 | [[#b966b0e0]] | getStaticImportNumberThreshold |