Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 4 | 0.956 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 304 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDetailFormattersManager.java |
2 | 10 | 377 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDetailFormattersPreferencePage.java |
| ||||
String[] values = new String[valuesList.size() * 3]; int i = 0; for (Iterator iter = valuesList.iterator(); iter.hasNext();) { DetailFormatter detailFormatter = (DetailFormatter) iter.next(); values[i++ ] = detailFormatter.getTypeName(); values[i++ ] = detailFormatter.getSnippet().replace(',', '\u0000'); values[i++ ] = detailFormatter.isEnabled() ? JavaDetailFormattersPreferencePage.DETAIL_FORMATTER_IS_ENABLED: JavaDetailFormattersPreferencePage.DETAIL_FORMATTER_IS_DISABLED; } String pref = JavaDebugOptionsManager.serializeList(values); JDIDebugUIPlugin.getDefault().getPreferenceStore().setValue(IJDIPreferencesConstants.PREF_DETAIL_FORMATTERS_LIST, pref); |
| ||||
String[] values = new String[fDetailFormattersSet.size() * 3]; int i = 0; for (Iterator iter = fDetailFormattersSet.iterator(); iter.hasNext();) { DetailFormatter detailFormatter = (DetailFormatter) iter.next(); values[i++ ] = detailFormatter.getTypeName(); values[i++ ] = detailFormatter.getSnippet().replace(',', '\u0000'); values[i++ ] = detailFormatter.isEnabled() ? DETAIL_FORMATTER_IS_ENABLED: DETAIL_FORMATTER_IS_DISABLED; } String pref = JavaDebugOptionsManager.serializeList(values); getPreferenceStore().setValue(IJDIPreferencesConstants.PREF_DETAIL_FORMATTERS_LIST, pref); |
| |||
String[] values = new String[ [[#variable78ac7780]].size() * 3]; int i = 0; for (Iterator iter = [[#variable78ac7780]].iterator(); iter.hasNext();) { DetailFormatter detailFormatter = (DetailFormatter) iter.next(); values[i++ ] = detailFormatter.getTypeName(); values[i++ ] = detailFormatter.getSnippet().replace(',', '\u0000'); values[i++ ] = detailFormatter.isEnabled() ? [[#variable9c3c4580]]: [[#variableb5e92160]]; } String pref = JavaDebugOptionsManager.serializeList(values); [[#variableb5e92140]].setValue(IJDIPreferencesConstants.PREF_DETAIL_FORMATTERS_LIST, pref); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#78ac7780]] | fDetailFormattersSet |
1 | 2 | [[#78ac7780]] | valuesList |
2 | 1 | [[#9c3c4580]] | DETAIL_FORMATTER_IS_ENABLED |
2 | 2 | [[#9c3c4580]] | JavaDetailFormattersPreferencePage.DETAIL_FORMATTER_IS_ENABLED |
3 | 1 | [[#b5e92160]] | DETAIL_FORMATTER_IS_DISABLED |
3 | 2 | [[#b5e92160]] | JavaDetailFormattersPreferencePage.DETAIL_FORMATTER_IS_DISABLED |
4 | 1 | [[#b5e92140]] | getPreferenceStore() |
4 | 2 | [[#b5e92140]] | JDIDebugUIPlugin.getDefault().getPreferenceStore() |