CloneSet9532


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2220.973class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121293
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Util.java
221311
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Util.java
Clone Instance
1
Line Count
2
Source Line
1293
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Util.java

        /**
         * Validate the given .class file name.
         * A .class file name must obey the following rules:
         * <ul>
         * <li> it must not be null
         * <li> it must include the <code>".class"</code> suffix
         * <li> its prefix must be a valid identifier
         * </ul>
         * </p>
         * @param name the name of a .class file
         * @return a status object with code <code>IStatus.OK</code> if
         *              the given name is valid as a .class file name, otherwise a status 
         *              object indicating what is wrong with the name
         */
        public static boolean isValidClassFileName(String name) {
                return JavaConventions.validateClassFileName(name).getSeverity() != IStatus.ERROR;
        }


Clone Instance
2
Line Count
2
Source Line
1311
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Util.java

        /**
         * Validate the given compilation unit name.
         * A compilation unit name must obey the following rules:
         * <ul>
         * <li> it must not be null
         * <li> it must include the <code>".java"</code> suffix
         * <li> its prefix must be a valid identifier
         * </ul>
         * </p>
         * @param name the name of a compilation unit
         * @return a status object with code <code>IStatus.OK</code> if
         *              the given name is valid as a compilation unit name, otherwise a status 
         *              object indicating what is wrong with the name
         */
        public static boolean isValidCompilationUnitName(String name) {
                return JavaConventions.validateCompilationUnitName(name).getSeverity() != IStatus.ERROR;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * Validate the given .class file name.
         * A .class file name must obey the following rules:
         * <ul>
         * <li> it must not be null
         * <li> it must include the <code>".class"</code> suffix
         * <li> its prefix must be a valid identifier
         * </ul>
         * </p>
         * @param name the name of a .class file
         * @return a status object with code <code>IStatus.OK</code> if
         *              the given name is valid as a .class file name, otherwise a status 
         *              object indicating what is wrong with the name
         */
/**
         * Validate the given compilation unit name.
         * A compilation unit name must obey the following rules:
         * <ul>
         * <li> it must not be null
         * <li> it must include the <code>".java"</code> suffix
         * <li> its prefix must be a valid identifier
         * </ul>
         * </p>
         * @param name the name of a compilation unit
         * @return a status object with code <code>IStatus.OK</code> if
         *              the given name is valid as a compilation unit name, otherwise a status 
         *              object indicating what is wrong with the name
         */
public static boolean  [[#variableb9b7dfe0]](String name) {
  return JavaConventions. [[#variableb9b7df80]](name).getSeverity() != IStatus.ERROR;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b9b7dfe0]]
isValidClassFileName 
12[[#b9b7dfe0]]
isValidCompilationUnitName 
21[[#b9b7df80]]
validateClassFileName 
22[[#b9b7df80]]
validateCompilationUnitName