CloneSet1941


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10240.982class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11094
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/MembersOrderPreferenceCache.java
210154
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/MembersOrderPreferenceCache.java
Clone Instance
1
Line Count
10
Source Line
94
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/MembersOrderPreferenceCache.java

        private int[] getCategoryOffsets() {
                int[] offsets = new int[N_CATEGORIES];
                IPreferenceStore store = fPreferenceStore;
                String key = PreferenceConstants.APPEARANCE_MEMBER_SORT_ORDER;
                boolean success = fillCategoryOffsetsFromPreferenceString(store.getString(key), offsets);
                if ( !success) {
                        store.setToDefault(key);
                        fillCategoryOffsetsFromPreferenceString(store.getDefaultString(key), offsets);
                }
                return offsets;
        }


Clone Instance
2
Line Count
10
Source Line
154
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/MembersOrderPreferenceCache.java

        private int[] getVisibilityOffsets() {
                int[] offsets = new int[N_VISIBILITIES];
                IPreferenceStore store = fPreferenceStore;
                String key = PreferenceConstants.APPEARANCE_VISIBILITY_SORT_ORDER;
                boolean success = fillVisibilityOffsetsFromPreferenceString(store.getString(key), offsets);
                if ( !success) {
                        store.setToDefault(key);
                        fillVisibilityOffsetsFromPreferenceString(store.getDefaultString(key), offsets);
                }
                return offsets;
        }


Clone AbstractionParameter Count: 4Parameter Bindings

private int[]  [[#variableb59a9400]]() {
  int[] offsets = new int[ [[#variableb59a93a0]]];
  IPreferenceStore store = fPreferenceStore;
  String key = PreferenceConstants. [[#variableb59a9340]];
  boolean success = [[#variableb59a9280]](store.getString(key), offsets);
  if ( !success) {
    store.setToDefault(key);
     [[#variableb59a9280]](store.getDefaultString(key), offsets);
  }
  return offsets;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b59a9400]]
getCategoryOffsets 
12[[#b59a9400]]
getVisibilityOffsets 
21[[#b59a93a0]]
N_CATEGORIES 
22[[#b59a93a0]]
N_VISIBILITIES 
31[[#b59a9340]]
APPEARANCE_MEMBER_SORT_ORDER 
32[[#b59a9340]]
APPEARANCE_VISIBILITY_SORT_ORDER 
41[[#b59a9280]]
fillCategoryOffsetsFromPreferenceString 
42[[#b59a9280]]
fillVisibilityOffsetsFromPreferenceString