CloneSet2904


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2520.977class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12111
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java
22122
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java
32133
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java
42174
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java
52185
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java
Clone Instance
1
Line Count
2
Source Line
111
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java

        /**
         * Checks if the given name is a valid Java field name.
         *
         * @param name the java field name.
         * @return a refactoring status containing the error message if the
         *  name is not a valid java field name.
         */
        public static RefactoringStatus checkFieldName(String name) {
                return checkName(name, JavaConventions.validateFieldName(name));
        }


Clone Instance
2
Line Count
2
Source Line
122
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java

        /**
         * Checks if the given name is a valid Java type parameter name.
         *
         * @param name the java type parameter name.
         * @return a refactoring status containing the error message if the
         *  name is not a valid java type parameter name.
         */
        public static RefactoringStatus checkTypeParameterName(String name) {
                return checkName(name, JavaConventions.validateTypeVariableName(name));
        }


Clone Instance
3
Line Count
2
Source Line
133
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java

        /**
         * Checks if the given name is a valid Java identifier.
         *
         * @param name the java identifier.
         * @return a refactoring status containing the error message if the
         *  name is not a valid java identifier.
         */
        public static RefactoringStatus checkIdentifier(String name) {
                return checkName(name, JavaConventions.validateIdentifier(name));
        }


Clone Instance
4
Line Count
2
Source Line
174
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java

        /**
         * Checks if the given name is a valid Java package name.
         *
         * @param name the java package name.
         * @return a refactoring status containing the error message if the
         *  name is not a valid java package name.
         */
        public static RefactoringStatus checkPackageName(String name) {
                return checkName(name, JavaConventions.validatePackageName(name));
        }


Clone Instance
5
Line Count
2
Source Line
185
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java

        /**
         * Checks if the given name is a valid compilation unit name.
         *
         * @param name the compilation unit name.
         * @return a refactoring status containing the error message if the
         *  name is not a valid compilation unit name.
         */
        public static RefactoringStatus checkCompilationUnitName(String name) {
                return checkName(name, JavaConventions.validateCompilationUnitName(name));
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * Checks if the given name is a valid Java field name.
         *
         * @param name the java field name.
         * @return a refactoring status containing the error message if the
         *  name is not a valid java field name.
         */
/**
         * Checks if the given name is a valid Java type parameter name.
         *
         * @param name the java type parameter name.
         * @return a refactoring status containing the error message if the
         *  name is not a valid java type parameter name.
         */
/**
         * Checks if the given name is a valid Java identifier.
         *
         * @param name the java identifier.
         * @return a refactoring status containing the error message if the
         *  name is not a valid java identifier.
         */
/**
         * Checks if the given name is a valid Java package name.
         *
         * @param name the java package name.
         * @return a refactoring status containing the error message if the
         *  name is not a valid java package name.
         */
/**
         * Checks if the given name is a valid compilation unit name.
         *
         * @param name the compilation unit name.
         * @return a refactoring status containing the error message if the
         *  name is not a valid compilation unit name.
         */
public static RefactoringStatus  [[#variable530777a0]](String name) {
  return checkName(name, JavaConventions. [[#variable53077740]](name));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#530777a0]]
checkFieldName 
12[[#530777a0]]
checkTypeParameterName 
13[[#530777a0]]
checkIdentifier 
14[[#530777a0]]
checkPackageName 
15[[#530777a0]]
checkCompilationUnitName 
21[[#53077740]]
validateFieldName 
22[[#53077740]]
validateTypeVariableName 
23[[#53077740]]
validateIdentifier 
24[[#53077740]]
validatePackageName 
25[[#53077740]]
validateCompilationUnitName