Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 2 | 0.978 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 258 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/rewrite/ImportRewrite.java |
2 | 4 | 274 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/rewrite/ImportRewrite.java |
| ||||
/** * Sets the on-demand import threshold for normal (non-static) imports. * This threshold defines the number of imports that need to be in a group to use * a on-demand (star) import declaration instead. * * @param threshold a positive number defining the on-demand import threshold * for normal (non-static) imports. * @throws IllegalArgumentException a {@link IllegalArgumentException} is thrown * if the number is not positive. */ public void setOnDemandImportThreshold(int threshold) { if (threshold <= 0) throw new IllegalArgumentException("Threshold must be positive."); //$NON-NLS-1$ this.importOnDemandThreshold = threshold; } |
| ||||
/** * Sets the on-demand import threshold for static imports. * This threshold defines the number of imports that need to be in a group to use * a on-demand (star) import declaration instead. * * @param threshold a positive number defining the on-demand import threshold * for normal (non-static) imports. * @throws IllegalArgumentException a {@link IllegalArgumentException} is thrown * if the number is not positive. */ public void setStaticOnDemandImportThreshold(int threshold) { if (threshold <= 0) throw new IllegalArgumentException("Threshold must be positive."); //$NON-NLS-1$ this.staticImportOnDemandThreshold = threshold; } |
| |||
/** * Sets the on-demand import threshold for normal (non-static) imports. * This threshold defines the number of imports that need to be in a group to use * a on-demand (star) import declaration instead. * * @param threshold a positive number defining the on-demand import threshold * for normal (non-static) imports. * @throws IllegalArgumentException a {@link IllegalArgumentException} is thrown * if the number is not positive. */ /** * Sets the on-demand import threshold for static imports. * This threshold defines the number of imports that need to be in a group to use * a on-demand (star) import declaration instead. * * @param threshold a positive number defining the on-demand import threshold * for normal (non-static) imports. * @throws IllegalArgumentException a {@link IllegalArgumentException} is thrown * if the number is not positive. */ public void [[#variable50625f00]](int threshold) { if (threshold <= 0) throw new IllegalArgumentException("Threshold must be positive."); //$NON-NLS-1$ this. [[#variable50625e80]]= threshold; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#50625f00]] | setOnDemandImportThreshold |
1 | 2 | [[#50625f00]] | setStaticOnDemandImportThreshold |
2 | 1 | [[#50625e80]] | importOnDemandThreshold |
2 | 2 | [[#50625e80]] | staticImportOnDemandThreshold |