CloneSet1175


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
50210.990class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
150487
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/NamingConventions.java
250656
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/NamingConventions.java
Clone Instance
1
Line Count
50
Source Line
487
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/NamingConventions.java

        /**
         * Suggest names for an argument. The name is computed from argument's type
         * and possible prefixes or suffixes are added.
         * <p>
         * If the type of the argument is <code>TypeName</code>, the prefix for argument is <code>pre</code>
         * and the suffix for argument is <code>suf</code> then the proposed names are <code>preTypeNamesuf</code>
         * and <code>preNamesuf</code>. If there is no prefix or suffix the proposals are <code>typeName</code>
         * and <code>name</code>.
         * </p>
         * <p>
         * This method is affected by the following JavaCore options :  {@link JavaCore#CODEASSIST_ARGUMENT_PREFIXES} and 
         *  {@link JavaCore#CODEASSIST_ARGUMENT_SUFFIXES}.
         * </p>
         * <p>
         * For a complete description of these configurable options, see <code>getDefaultOptions</code>.
         * For programmaticaly change these options, see <code>JavaCore#setOptions()</code>.
         * </p>
         * 
         * @param javaProject project which contains the argument.
         * @param packageName package of the argument's type.
         * @param qualifiedTypeName argument's type.
         * @param dim argument's dimension (0 if the argument is not an array).
         * @param excludedNames a list of names which cannot be suggested (already used names).
         *         Can be <code>null</code> if there is no excluded names.
         * @return char[][] an array of names.
         * @see JavaCore#setOptions(java.util.Hashtable)
         * @see JavaCore#getDefaultOptions()
         */
        public static char[][] suggestArgumentNames(IJavaProject javaProject, char[] packageName, char[] qualifiedTypeName, int dim, char[][] excludedNames) {
                NamingRequestor requestor = new NamingRequestor();
                InternalNamingConventions.suggestArgumentNames(
                        javaProject, 
                        packageName, 
                        qualifiedTypeName, 
                        dim, 
                        null, 
                        excludedNames, 
                        requestor                             );

                return requestor.getResults();
        }

        /**
         * Suggest names for an argument. The name is computed from argument's type
         * and possible prefixes or suffixes are added.
         * <p>
         * If the type of the argument is <code>TypeName</code>, the prefix for argument is <code>pre</code>
         * and the suffix for argument is <code>suf</code> then the proposed names are <code>preTypeNamesuf</code>
         * and <code>preNamesuf</code>. If there is no prefix or suffix the proposals are <code>typeName</code>
         * and <code>name</code>.
         * </p>
         * <p>
         * This method is affected by the following JavaCore options :  {@link JavaCore#CODEASSIST_ARGUMENT_PREFIXES} and 
         *  {@link JavaCore#CODEASSIST_ARGUMENT_SUFFIXES}.
         * </p>
         * <p>
         * For a complete description of these configurable options, see <code>getDefaultOptions</code>.
         * For programmaticaly change these options, see <code>JavaCore#setOptions()</code>.
         * </p>
         * 
         * @param javaProject project which contains the argument.
         * @param packageName package of the argument's type.
         * @param qualifiedTypeName argument's type.
         * @param dim argument's dimension (0 if the argument is not an array).
         * @param excludedNames a list of names which cannot be suggested (already used names).
         *         Can be <code>null</code> if there is no excluded names.
         * @return char[][] an array of names.
         * @see JavaCore#setOptions(java.util.Hashtable)
         * @see JavaCore#getDefaultOptions()
         */
        public static String[] suggestArgumentNames(IJavaProject javaProject, String packageName, String qualifiedTypeName, int dim, String[] excludedNames) {
                return convertCharsToString(
                        suggestArgumentNames(
                                javaProject, 
                                packageName.toCharArray(), 
                                qualifiedTypeName.toCharArray(), 
                                dim, 
                                convertStringToChars(excludedNames)));
        }


Clone Instance
2
Line Count
50
Source Line
656
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/NamingConventions.java

        /**
         * Suggest names for a local variable. The name is computed from variable's type
         * and possible prefixes or suffixes are added.
         * <p>
         * If the type of the local variable is <code>TypeName</code>, the prefix for local variable is <code>pre</code>
         * and the suffix for local variable is <code>suf</code> then the proposed names are <code>preTypeNamesuf</code>
         * and <code>preNamesuf</code>. If there is no prefix or suffix the proposals are <code>typeName</code>
         * and <code>name</code>.
         * </p>
         * <p>
         * This method is affected by the following JavaCore options :  {@link JavaCore#CODEASSIST_LOCAL_PREFIXES} and
         *  {@link JavaCore#CODEASSIST_LOCAL_SUFFIXES}.
         * </p>
         * <p>
         * For a complete description of these configurable options, see <code>getDefaultOptions</code>.
         * For programmaticaly change these options, see <code>JavaCore#setOptions()</code>.
         * </p>
         * 
         * @param javaProject project which contains the variable.
         * @param packageName package of the variable's type.
         * @param qualifiedTypeName variable's type.
         * @param dim variable's dimension (0 if the variable is not an array).
         * @param excludedNames a list of names which cannot be suggested (already used names).
         *         Can be <code>null</code> if there is no excluded names.
         * @return char[][] an array of names.
         * @see JavaCore#setOptions(java.util.Hashtable)
         * @see JavaCore#getDefaultOptions()
         */
        public static char[][] suggestLocalVariableNames(IJavaProject javaProject, char[] packageName, char[] qualifiedTypeName, int dim, char[][] excludedNames) {
                NamingRequestor requestor = new NamingRequestor();
                InternalNamingConventions.suggestLocalVariableNames(
                        javaProject, 
                        packageName, 
                        qualifiedTypeName, 
                        dim, 
                        null, 
                        excludedNames, 
                        requestor                                  );

                return requestor.getResults();
        }

        /**
         * Suggest names for a local variable. The name is computed from variable's type
         * and possible prefixes or suffixes are added.
         * <p>
         * If the type of the local variable is <code>TypeName</code>, the prefix for local variable is <code>pre</code>
         * and the suffix for local variable is <code>suf</code> then the proposed names are <code>preTypeNamesuf</code>
         * and <code>preNamesuf</code>. If there is no prefix or suffix the proposals are <code>typeName</code>
         * and <code>name</code>.
         * </p>
         * <p>
         * This method is affected by the following JavaCore options :  {@link JavaCore#CODEASSIST_LOCAL_PREFIXES} and
         *  {@link JavaCore#CODEASSIST_LOCAL_SUFFIXES}.
         * </p>
         * <p>
         * For a complete description of these configurable options, see <code>getDefaultOptions</code>.
         * For programmaticaly change these options, see <code>JavaCore#setOptions()</code>.
         * </p>
         * 
         * @param javaProject project which contains the variable.
         * @param packageName package of the variable's type.
         * @param qualifiedTypeName variable's type.
         * @param dim variable's dimension (0 if the variable is not an array).
         * @param excludedNames a list of names which cannot be suggested (already used names).
         *         Can be <code>null</code> if there is no excluded names.
         * @return char[][] an array of names.
         * @see JavaCore#setOptions(java.util.Hashtable)
         * @see JavaCore#getDefaultOptions()
         */
        public static String[] suggestLocalVariableNames(IJavaProject javaProject, String packageName, String qualifiedTypeName, int dim, String[] excludedNames) {
                return convertCharsToString(
                        suggestLocalVariableNames(
                                javaProject, 
                                packageName.toCharArray(), 
                                qualifiedTypeName.toCharArray(), 
                                dim, 
                                convertStringToChars(excludedNames)));
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Suggest names for a local variable. The name is computed from variable's type
         * and possible prefixes or suffixes are added.
         * <p>
         * If the type of the local variable is <code>TypeName</code>, the prefix for local variable is <code>pre</code>
         * and the suffix for local variable is <code>suf</code> then the proposed names are <code>preTypeNamesuf</code>
         * and <code>preNamesuf</code>. If there is no prefix or suffix the proposals are <code>typeName</code>
         * and <code>name</code>.
         * </p>
         * <p>
         * This method is affected by the following JavaCore options :  {@link JavaCore#CODEASSIST_LOCAL_PREFIXES} and
         *  {@link JavaCore#CODEASSIST_LOCAL_SUFFIXES}.
         * </p>
         * <p>
         * For a complete description of these configurable options, see <code>getDefaultOptions</code>.
         * For programmaticaly change these options, see <code>JavaCore#setOptions()</code>.
         * </p>
         * 
         * @param javaProject project which contains the variable.
         * @param packageName package of the variable's type.
         * @param qualifiedTypeName variable's type.
         * @param dim variable's dimension (0 if the variable is not an array).
         * @param excludedNames a list of names which cannot be suggested (already used names).
         *         Can be <code>null</code> if there is no excluded names.
         * @return char[][] an array of names.
         * @see JavaCore#setOptions(java.util.Hashtable)
         * @see JavaCore#getDefaultOptions()
         */
/**
         * Suggest names for an argument. The name is computed from argument's type
         * and possible prefixes or suffixes are added.
         * <p>
         * If the type of the argument is <code>TypeName</code>, the prefix for argument is <code>pre</code>
         * and the suffix for argument is <code>suf</code> then the proposed names are <code>preTypeNamesuf</code>
         * and <code>preNamesuf</code>. If there is no prefix or suffix the proposals are <code>typeName</code>
         * and <code>name</code>.
         * </p>
         * <p>
         * This method is affected by the following JavaCore options :  {@link JavaCore#CODEASSIST_ARGUMENT_PREFIXES} and 
         *  {@link JavaCore#CODEASSIST_ARGUMENT_SUFFIXES}.
         * </p>
         * <p>
         * For a complete description of these configurable options, see <code>getDefaultOptions</code>.
         * For programmaticaly change these options, see <code>JavaCore#setOptions()</code>.
         * </p>
         * 
         * @param javaProject project which contains the argument.
         * @param packageName package of the argument's type.
         * @param qualifiedTypeName argument's type.
         * @param dim argument's dimension (0 if the argument is not an array).
         * @param excludedNames a list of names which cannot be suggested (already used names).
         *         Can be <code>null</code> if there is no excluded names.
         * @return char[][] an array of names.
         * @see JavaCore#setOptions(java.util.Hashtable)
         * @see JavaCore#getDefaultOptions()
         */
public static char[][]  [[#variable5e5f6d60]](IJavaProject javaProject, char[] packageName, char[] qualifiedTypeName, int dim, char[][] excludedNames) {
  NamingRequestor requestor = new NamingRequestor();
  InternalNamingConventions. [[#variable5e5f6d60]](javaProject, packageName, qualifiedTypeName, dim, null, excludedNames, requestor);
  return requestor.getResults();
}

/**
         * Suggest names for a local variable. The name is computed from variable's type
         * and possible prefixes or suffixes are added.
         * <p>
         * If the type of the local variable is <code>TypeName</code>, the prefix for local variable is <code>pre</code>
         * and the suffix for local variable is <code>suf</code> then the proposed names are <code>preTypeNamesuf</code>
         * and <code>preNamesuf</code>. If there is no prefix or suffix the proposals are <code>typeName</code>
         * and <code>name</code>.
         * </p>
         * <p>
         * This method is affected by the following JavaCore options :  {@link JavaCore#CODEASSIST_LOCAL_PREFIXES} and
         *  {@link JavaCore#CODEASSIST_LOCAL_SUFFIXES}.
         * </p>
         * <p>
         * For a complete description of these configurable options, see <code>getDefaultOptions</code>.
         * For programmaticaly change these options, see <code>JavaCore#setOptions()</code>.
         * </p>
         * 
         * @param javaProject project which contains the variable.
         * @param packageName package of the variable's type.
         * @param qualifiedTypeName variable's type.
         * @param dim variable's dimension (0 if the variable is not an array).
         * @param excludedNames a list of names which cannot be suggested (already used names).
         *         Can be <code>null</code> if there is no excluded names.
         * @return char[][] an array of names.
         * @see JavaCore#setOptions(java.util.Hashtable)
         * @see JavaCore#getDefaultOptions()
         */
/**
         * Suggest names for an argument. The name is computed from argument's type
         * and possible prefixes or suffixes are added.
         * <p>
         * If the type of the argument is <code>TypeName</code>, the prefix for argument is <code>pre</code>
         * and the suffix for argument is <code>suf</code> then the proposed names are <code>preTypeNamesuf</code>
         * and <code>preNamesuf</code>. If there is no prefix or suffix the proposals are <code>typeName</code>
         * and <code>name</code>.
         * </p>
         * <p>
         * This method is affected by the following JavaCore options :  {@link JavaCore#CODEASSIST_ARGUMENT_PREFIXES} and 
         *  {@link JavaCore#CODEASSIST_ARGUMENT_SUFFIXES}.
         * </p>
         * <p>
         * For a complete description of these configurable options, see <code>getDefaultOptions</code>.
         * For programmaticaly change these options, see <code>JavaCore#setOptions()</code>.
         * </p>
         * 
         * @param javaProject project which contains the argument.
         * @param packageName package of the argument's type.
         * @param qualifiedTypeName argument's type.
         * @param dim argument's dimension (0 if the argument is not an array).
         * @param excludedNames a list of names which cannot be suggested (already used names).
         *         Can be <code>null</code> if there is no excluded names.
         * @return char[][] an array of names.
         * @see JavaCore#setOptions(java.util.Hashtable)
         * @see JavaCore#getDefaultOptions()
         */
public static String[]  [[#variable5e5f6d60]](IJavaProject javaProject, String packageName, String qualifiedTypeName, int dim, String[] excludedNames) {
  return convertCharsToString( [[#variable5e5f6d60]](javaProject, packageName.toCharArray(), qualifiedTypeName.toCharArray(), dim, convertStringToChars(excludedNames)));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5e5f6d60]]
suggestLocalVariableNames 
12[[#5e5f6d60]]
suggestArgumentNames