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.982 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 94 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/MembersOrderPreferenceCache.java |
2 | 10 | 154 | 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; } |
| ||||
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; } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b59a9400]] | getCategoryOffsets |
1 | 2 | [[#b59a9400]] | getVisibilityOffsets |
2 | 1 | [[#b59a93a0]] | N_CATEGORIES |
2 | 2 | [[#b59a93a0]] | N_VISIBILITIES |
3 | 1 | [[#b59a9340]] | APPEARANCE_MEMBER_SORT_ORDER |
3 | 2 | [[#b59a9340]] | APPEARANCE_VISIBILITY_SORT_ORDER |
4 | 1 | [[#b59a9280]] | fillCategoryOffsetsFromPreferenceString |
4 | 2 | [[#b59a9280]] | fillVisibilityOffsetsFromPreferenceString |