Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 3 | 0.980 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 106 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/SpellingConfigurationBlock.java |
2 | 12 | 127 | 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; } |
| ||||
/** * 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; } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#65325240]] | getDictionaryCodes |
1 | 2 | [[#65325240]] | getDictionaryLabels |
2 | 1 | [[#653251e0]] | codes |
2 | 2 | [[#653251e0]] | labels |
3 | 1 | [[#65325060]] | toString |
3 | 2 | [[#65325060]] | getDisplayName |