CloneSet3283


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10210.977class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19219
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CopyElementsOperation.java
210669
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CopyResourceElementsOperation.java
Clone Instance
1
Line Count
9
Source Line
219
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CopyElementsOperation.java

/**
 * Possible failures:
 * <ul>
 *  <li>NO_ELEMENTS_TO_PROCESS - no elements supplied to the operation
 *      <li>INDEX_OUT_OF_BOUNDS - the number of renamings supplied to the operation
 *              does not match the number of elements that were supplied.
 * </ul>
 */
protected IJavaModelStatus verify() {
        IJavaModelStatus status = super.verify();
        if ( !status.isOK()) {
                return status;
        }
        if (this.renamingsList != null && this.renamingsList.length != this.elementsToProcess.length) {
                return new JavaModelStatus(IJavaModelStatusConstants.INDEX_OUT_OF_BOUNDS);
        }
        return JavaModelStatus.VERIFIED_OK;
}


Clone Instance
2
Line Count
10
Source Line
669
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CopyResourceElementsOperation.java

        /**
         * Possible failures:
         * <ul>
         *  <li>NO_ELEMENTS_TO_PROCESS - no elements supplied to the operation
         *      <li>INDEX_OUT_OF_BOUNDS - the number of renamings supplied to the operation
         *              does not match the number of elements that were supplied.
         * </ul>
         */
        protected IJavaModelStatus verify() {
                IJavaModelStatus status = super.verify();
                if ( !status.isOK()) {
                        return status;
                }

                if (this.renamingsList != null && this.renamingsList.length != elementsToProcess.length) {
                        return new JavaModelStatus(IJavaModelStatusConstants.INDEX_OUT_OF_BOUNDS);
                }
                return JavaModelStatus.VERIFIED_OK;
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Possible failures:
         * <ul>
         *  <li>NO_ELEMENTS_TO_PROCESS - no elements supplied to the operation
         *      <li>INDEX_OUT_OF_BOUNDS - the number of renamings supplied to the operation
         *              does not match the number of elements that were supplied.
         * </ul>
         */
/**
 * Possible failures:
 * <ul>
 *  <li>NO_ELEMENTS_TO_PROCESS - no elements supplied to the operation
 *      <li>INDEX_OUT_OF_BOUNDS - the number of renamings supplied to the operation
 *              does not match the number of elements that were supplied.
 * </ul>
 */
protected IJavaModelStatus verify() {
  IJavaModelStatus status = super.verify();
  if ( !status.isOK()) {
    return status;
  }
  if (this.renamingsList != null && this.renamingsList.length != [[#variable9b4cade0]].length) {
    return new JavaModelStatus(IJavaModelStatusConstants.INDEX_OUT_OF_BOUNDS);
  }
  return JavaModelStatus.VERIFIED_OK;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9b4cade0]]
elementsToProcess 
12[[#9b4cade0]]
this.elementsToProcess