CloneSet1133


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14210.969statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114271
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/util/JUnitStubUtility.java
214335
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaModelUtil.java
Clone Instance
1
Line Count
14
Source Line
271
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/util/JUnitStubUtility.java

                int type = member.getElementType();
                if ( type == IJavaElement.INITIALIZER ||  (type == IJavaElement.METHOD && member.getElementName().startsWith("<"))) { //$NON-NLS-1$
                        return false;
                }

                int otherflags = member.getFlags();
                IType declaringType = member.getDeclaringType();
                if (Flags.isPublic(otherflags) || (declaringType != null && declaringType.isInterface())) {
                        return true;
                }
                else   if (Flags.isPrivate(otherflags)) {
                        return false;
                       }
                IPackageFragment otherpack = (IPackageFragment) member.getAncestor(IJavaElement.PACKAGE_FRAGMENT);


Clone Instance
2
Line Count
14
Source Line
335
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaModelUtil.java

                int type = member.getElementType();
                if ( type == IJavaElement.INITIALIZER ||  (type == IJavaElement.METHOD && member.getElementName().startsWith("<"))) { //$NON-NLS-1$
                        return false;
                }

                int otherflags = member.getFlags();
                IType declaringType = member.getDeclaringType();
                if (Flags.isPublic(otherflags) || (declaringType != null && isInterfaceOrAnnotation(declaringType))) {
                        return true;
                }
                else   if (Flags.isPrivate(otherflags)) {
                        return false;
                       }
                IPackageFragment otherpack = (IPackageFragment) member.getAncestor(IJavaElement.PACKAGE_FRAGMENT);


Clone AbstractionParameter Count: 1Parameter Bindings

int type = member.getElementType();
if (type == IJavaElement.INITIALIZER || (type == IJavaElement.METHOD && member.getElementName().startsWith("<"))) { //$NON-NLS-1$
  return false;
}
int otherflags = member.getFlags();
IType declaringType = member.getDeclaringType();
if (Flags.isPublic(otherflags) || (declaringType != null && [[#variableb82bfc20]])) {
  return true;
}
else
  if (Flags.isPrivate(otherflags)) {
    return false;
  }
IPackageFragment otherpack = (IPackageFragment) member.getAncestor(IJavaElement.PACKAGE_FRAGMENT);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b82bfc20]]
declaringType.isInterface() 
12[[#b82bfc20]]
isInterfaceOrAnnotation(declaringType)