CloneSet1025


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10240.956statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110304
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDetailFormattersManager.java
210377
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDetailFormattersPreferencePage.java
Clone Instance
1
Line Count
10
Source Line
304
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDetailFormattersManager.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);


Clone Instance
2
Line Count
10
Source Line
377
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDetailFormattersPreferencePage.java

                        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);


Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#78ac7780]]
fDetailFormattersSet 
12[[#78ac7780]]
valuesList 
21[[#9c3c4580]]
DETAIL_FORMATTER_IS_ENABLED 
22[[#9c3c4580]]
JavaDetailFormattersPreferencePage.DETAIL_FORMATTER_IS_ENABLED 
31[[#b5e92160]]
DETAIL_FORMATTER_IS_DISABLED 
32[[#b5e92160]]
JavaDetailFormattersPreferencePage.DETAIL_FORMATTER_IS_DISABLED 
41[[#b5e92140]]
getPreferenceStore() 
42[[#b5e92140]]
JDIDebugUIPlugin.getDefault().getPreferenceStore()