CloneSet3882


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7301.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17818
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodDeclaration.java
27588
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SingleVariableDeclaration.java
37290
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationFragment.java
Clone Instance
1
Line Count
7
Source Line
818
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodDeclaration.java

        /**
         * Sets the number of extra array dimensions over and above the 
         * explicitly-specified return type.
         * <p>
         * For example, <code>int foo()[][]</code> is rendered as a return
         * type of <code>int</code> with two extra array dimensions; 
         * <code>int[][] foo()</code> is rendered as a return type of 
         * <code>int[][]</code> with zero extra array dimensions. The two
         * constructs have different ASTs, even though there are really syntactic
         * variants of the same method declaration.
         * </p>
         * 
         * @param dimensions the number of array dimensions
         * @exception IllegalArgumentException if the number of dimensions is
         *    negative
         * @since 2.1
         */
        public void setExtraDimensions(int dimensions) {
                if (dimensions < 0) {
                        throw new IllegalArgumentException();
                }
                preValueChange(EXTRA_DIMENSIONS_PROPERTY);
                this.extraArrayDimensions = dimensions;
                postValueChange(EXTRA_DIMENSIONS_PROPERTY);
        }


Clone Instance
2
Line Count
7
Source Line
588
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SingleVariableDeclaration.java

        /* (omit javadoc for this method)
         * Method declared on VariableDeclaration.
         * @since 2.1
         */
        public void setExtraDimensions(int dimensions) {
                if (dimensions < 0) {
                        throw new IllegalArgumentException();
                }
                preValueChange(EXTRA_DIMENSIONS_PROPERTY);
                this.extraArrayDimensions = dimensions;
                postValueChange(EXTRA_DIMENSIONS_PROPERTY);
        }


Clone Instance
3
Line Count
7
Source Line
290
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationFragment.java

        /**
         * Sets the number of extra array dimensions this variable has over
         * and above the type specified in the enclosing declaration.
         * <p>
         * For example, in the AST for <code>int[] i, j[], k[][]</code> the 
         * variable declaration fragments for the variables <code>i</code>,
         * <code>j</code>, and <code>k</code>, have 0, 1, and 2 extra array
         * dimensions, respectively.
         * </p>
         * 
         * @param dimensions the given dimensions
         * @since 2.0
         */
        public void setExtraDimensions(int dimensions) {
                if (dimensions < 0) {
                        throw new IllegalArgumentException();
                }
                preValueChange(EXTRA_DIMENSIONS_PROPERTY);
                this.extraArrayDimensions = dimensions;
                postValueChange(EXTRA_DIMENSIONS_PROPERTY);
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Sets the number of extra array dimensions this variable has over
         * and above the type specified in the enclosing declaration.
         * <p>
         * For example, in the AST for <code>int[] i, j[], k[][]</code> the 
         * variable declaration fragments for the variables <code>i</code>,
         * <code>j</code>, and <code>k</code>, have 0, 1, and 2 extra array
         * dimensions, respectively.
         * </p>
         * 
         * @param dimensions the given dimensions
         * @since 2.0
         */
/* (omit javadoc for this method)
         * Method declared on VariableDeclaration.
         * @since 2.1
         */
/**
         * Sets the number of extra array dimensions over and above the 
         * explicitly-specified return type.
         * <p>
         * For example, <code>int foo()[][]</code> is rendered as a return
         * type of <code>int</code> with two extra array dimensions; 
         * <code>int[][] foo()</code> is rendered as a return type of 
         * <code>int[][]</code> with zero extra array dimensions. The two
         * constructs have different ASTs, even though there are really syntactic
         * variants of the same method declaration.
         * </p>
         * 
         * @param dimensions the number of array dimensions
         * @exception IllegalArgumentException if the number of dimensions is
         *    negative
         * @since 2.1
         */
public void setExtraDimensions(int dimensions) {
  if (dimensions < 0) {
    throw new IllegalArgumentException();
  }
  preValueChange(EXTRA_DIMENSIONS_PROPERTY);
  this.extraArrayDimensions = dimensions;
  postValueChange(EXTRA_DIMENSIONS_PROPERTY);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None