CloneSet2944


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12210.986class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112244
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaModelUtil.java
212264
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaModelUtil.java
Clone Instance
1
Line Count
12
Source Line
244
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaModelUtil.java

        /**
         * Returns the qualified type name of the given type using '.' as separators.
         * This is a replace for IType.getTypeQualifiedName()
         * which uses '$' as separators. As '$' is also a valid character in an id
         * this is ambiguous. JavaCore PR: 1GCFUNT
         */
        public static String getTypeQualifiedName(IType type) {
                try {
                        if (type.isBinary() && !type.isAnonymous()) {
                                IType declaringType = type.getDeclaringType();
                                if (declaringType != null) {
                                        return getTypeQualifiedName(declaringType) + '.' + type.getElementName();
                                }
                        }
                } catch (JavaModelException e) {
                        // ignore
                  }
                return type.getTypeQualifiedName('.');
        }


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

        /**
         * Returns the fully qualified name of the given type using '.' as separators.
         * This is a replace for IType.getFullyQualifiedTypeName
         * which uses '$' as separators. As '$' is also a valid character in an id
         * this is ambiguous. JavaCore PR: 1GCFUNT
         */
        public static String getFullyQualifiedName(IType type) {
                try {
                        if (type.isBinary() && !type.isAnonymous()) {
                                IType declaringType = type.getDeclaringType();
                                if (declaringType != null) {
                                        return getFullyQualifiedName(declaringType) + '.' + type.getElementName();
                                }
                        }
                } catch (JavaModelException e) {
                        // ignore
                  }
                return type.getFullyQualifiedName('.');
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Returns the qualified type name of the given type using '.' as separators.
         * This is a replace for IType.getTypeQualifiedName()
         * which uses '$' as separators. As '$' is also a valid character in an id
         * this is ambiguous. JavaCore PR: 1GCFUNT
         */
/**
         * Returns the fully qualified name of the given type using '.' as separators.
         * This is a replace for IType.getFullyQualifiedTypeName
         * which uses '$' as separators. As '$' is also a valid character in an id
         * this is ambiguous. JavaCore PR: 1GCFUNT
         */
public static String  [[#variableb6615380]](IType type) {
  try {
    if (type.isBinary() && !type.isAnonymous()) {
      IType declaringType = type.getDeclaringType();
      if (declaringType != null) {
        return [[#variableb6615380]](declaringType) + '.' + type.getElementName();
      }
    }
  }
  catch (JavaModelException e) {
  // ignore
  }
  return type. [[#variableb6615380]]('.');
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b6615380]]
getTypeQualifiedName 
12[[#b6615380]]
getFullyQualifiedName