CloneSet2286


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12230.980class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112106
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/SpellingConfigurationBlock.java
212127
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/SpellingConfigurationBlock.java
Clone Instance
1
Line Count
12
Source Line
106
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/SpellingConfigurationBlock.java

        /**
         * Returns the locale codes for the locale list.
         * 
         * @param locales
         *                   The list of locales
         * @return Array of locale codes for the list
         */
        protected static String[] getDictionaryCodes( final Set locales) {

                int index = 0;
                Locale locale = null;

                final String[] codes = new String[locales.size()];
                for ( final Iterator iterator = locales.iterator(); iterator.hasNext();) {

                        locale = (Locale) iterator.next();
                        codes[index++ ] = locale.toString();
                }
                return codes;
        }


Clone Instance
2
Line Count
12
Source Line
127
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/SpellingConfigurationBlock.java

        /**
         * Returns the display labels for the locale list.
         * 
         * @param locales
         *                   The list of locales
         * @return Array of display labels for the list
         */
        protected static String[] getDictionaryLabels( final Set locales) {

                int index = 0;
                Locale locale = null;

                final String[] labels = new String[locales.size()];
                for ( final Iterator iterator = locales.iterator(); iterator.hasNext();) {

                        locale = (Locale) iterator.next();
                        labels[index++ ] = locale.getDisplayName();
                }
                return labels;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * Returns the locale codes for the locale list.
         * 
         * @param locales
         *                   The list of locales
         * @return Array of locale codes for the list
         */
/**
         * Returns the display labels for the locale list.
         * 
         * @param locales
         *                   The list of locales
         * @return Array of display labels for the list
         */
protected static String[]  [[#variable65325240]]( final Set locales) {
  int index = 0;
  Locale locale = null;
  final String[]  [[#variable653251e0]]= new String[locales.size()];
  for ( final Iterator iterator = locales.iterator(); iterator.hasNext();) {
    locale = (Locale) iterator.next();
     [[#variable653251e0]][index++ ] = locale. [[#variable65325060]]();
  }
  return [[#variable653251e0]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#65325240]]
getDictionaryCodes 
12[[#65325240]]
getDictionaryLabels 
21[[#653251e0]]
codes 
22[[#653251e0]]
labels 
31[[#65325060]]
toString 
32[[#65325060]]
getDisplayName