CloneSet6347


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15480
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/CompilationUnitCompletion.java
25559
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/GenericJavaTypeProposal.java
Clone Instance
1
Line Count
5
Source Line
480
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/CompilationUnitCompletion.java

                /**
                 * Returns the super interface signatures of <code>subType</code> if 
                 * <code>superType</code> is an interface, otherwise returns the super
                 * type signature.
                 * 
                 * @param subType the sub type signature
                 * @param superType the super type signature
                 * @return the super type signatures of <code>subType</code>
                 * @throws JavaModelException if any java model operation fails
                 */
                private String[] getSuperTypeSignatures(IType subType, IType superType) throws JavaModelException {
                        if (superType.isInterface())
                                return subType.getSuperInterfaceTypeSignatures();
                        else
                                return new String[] {
                                                     subType.getSuperclassTypeSignature()
                                                    };
                }


Clone Instance
2
Line Count
5
Source Line
559
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/GenericJavaTypeProposal.java

        /**
         * Returns the super interface signatures of <code>subType</code> if
         * <code>superType</code> is an interface, otherwise returns the super
         * type signature.
         *
         * @param subType the sub type signature
         * @param superType the super type signature
         * @return the super type signatures of <code>subType</code>
         * @throws JavaModelException if any java model operation fails
         */
        private String[] getSuperTypeSignatures(IType subType, IType superType) throws JavaModelException {
                if (superType.isInterface())
                        return subType.getSuperInterfaceTypeSignatures();
                else
                        return new String[] {
                                             subType.getSuperclassTypeSignature()
                                            };
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Returns the super interface signatures of <code>subType</code> if
         * <code>superType</code> is an interface, otherwise returns the super
         * type signature.
         *
         * @param subType the sub type signature
         * @param superType the super type signature
         * @return the super type signatures of <code>subType</code>
         * @throws JavaModelException if any java model operation fails
         */
/**
                 * Returns the super interface signatures of <code>subType</code> if 
                 * <code>superType</code> is an interface, otherwise returns the super
                 * type signature.
                 * 
                 * @param subType the sub type signature
                 * @param superType the super type signature
                 * @return the super type signatures of <code>subType</code>
                 * @throws JavaModelException if any java model operation fails
                 */
private String[] getSuperTypeSignatures(IType subType, IType superType) throws JavaModelException {
  if (superType.isInterface())
    return subType.getSuperInterfaceTypeSignatures();
  else
    return new String[] {
                          subType.getSuperclassTypeSignature()
                        };
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None