CloneSet8055


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4220.978class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14258
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/rewrite/ImportRewrite.java
24274
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/rewrite/ImportRewrite.java
Clone Instance
1
Line Count
4
Source Line
258
Source File
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;
        }


Clone Instance
2
Line Count
4
Source Line
274
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/rewrite/ImportRewrite.java

         /**
         *      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;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         *      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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#50625f00]]
setOnDemandImportThreshold 
12[[#50625f00]]
setStaticOnDemandImportThreshold 
21[[#50625e80]]
importOnDemandThreshold 
22[[#50625e80]]
staticImportOnDemandThreshold