Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 3 | 0 | 1.000 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 818 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodDeclaration.java |
2 | 7 | 588 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SingleVariableDeclaration.java |
3 | 7 | 290 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationFragment.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); } |
| ||||
/* (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); } |
| ||||
/** * 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); } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |