CloneSet6417


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9210.982class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
191109
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java
291199
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java
Clone Instance
1
Line Count
9
Source Line
1109
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java

        /**
         * INTERNAL USE-ONLY
         * Generate the byte for a problem method info that correspond to a boggus constructor.
         * Reset the position inside the contents byte array to the savedOffset.
         *
         * @param method org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration
         * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.MethodBinding
         * @param problems org.eclipse.jdt.internal.compiler.problem.Problem[]
         * @param savedOffset <CODE>int</CODE>
         */
        public void addProblemConstructor(
                AbstractMethodDeclaration method,
                MethodBinding methodBinding,
                CategorizedProblem[] problems,
                int savedOffset          ) {
                // we need to move back the contentsOffset to the value at the beginning of the method
                contentsOffset = savedOffset;
                methodCount--; // we need to remove the method that causes the problem
                addProblemConstructor(method, methodBinding, problems);
        }


Clone Instance
2
Line Count
9
Source Line
1199
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java

        /**
         * INTERNAL USE-ONLY
         * Generate the byte for a problem method info that correspond to a boggus method.
         * Reset the position inside the contents byte array to the savedOffset.
         *
         * @param method org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration
         * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.MethodBinding
         * @param problems org.eclipse.jdt.internal.compiler.problem.Problem[]
         * @param savedOffset <CODE>int</CODE>
         */
        public void addProblemMethod(
                AbstractMethodDeclaration method,
                MethodBinding methodBinding,
                CategorizedProblem[] problems,
                int savedOffset     ) {
                // we need to move back the contentsOffset to the value at the beginning of the method
                contentsOffset = savedOffset;
                methodCount--; // we need to remove the method that causes the problem
                addProblemMethod(method, methodBinding, problems);
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * INTERNAL USE-ONLY
         * Generate the byte for a problem method info that correspond to a boggus constructor.
         * Reset the position inside the contents byte array to the savedOffset.
         *
         * @param method org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration
         * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.MethodBinding
         * @param problems org.eclipse.jdt.internal.compiler.problem.Problem[]
         * @param savedOffset <CODE>int</CODE>
         */
/**
         * INTERNAL USE-ONLY
         * Generate the byte for a problem method info that correspond to a boggus method.
         * Reset the position inside the contents byte array to the savedOffset.
         *
         * @param method org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration
         * @param methodBinding org.eclipse.jdt.internal.compiler.nameloopkup.MethodBinding
         * @param problems org.eclipse.jdt.internal.compiler.problem.Problem[]
         * @param savedOffset <CODE>int</CODE>
         */
public void [[#variable60bc64e0]](AbstractMethodDeclaration method, MethodBinding methodBinding, CategorizedProblem[] problems, int savedOffset) {
  // we need to move back the contentsOffset to the value at the beginning of the method
  contentsOffset = savedOffset;
  methodCount--; // we need to remove the method that causes the problem
   [[#variable60bc64e0]](method, methodBinding, problems);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#60bc64e0]]
addProblemConstructor 
12[[#60bc64e0]]
addProblemMethod