Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 3 | 0.974 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 759 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PullUpMemberPage.java |
2 | 16 | 467 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PushDownWizard.java |
| ||||
private int getInitialSelectionIndexForEditDialog( final Map stringMapping, final String[] keys) { final int commonActionCode = getCommonActionCodeForSelectedInfos(); if (commonActionCode == -1) return 0; for ( final Iterator iter = stringMapping.keySet().iterator(); iter.hasNext();) { final String key = (String) iter.next(); final int action = ((Integer) stringMapping.get(key)).intValue(); if (commonActionCode == action) { for (int i = 0; i < keys.length; i++) { if (key.equals(keys[i])) return i; } Assert.isTrue(false); } } return 0; } |
| ||||
private int getInitialSelectionIndexForEditDialog( final Map mapping, final String[] keys) { final int commonActionCode = getCommonActionCodeForSelectedInfos(); if (commonActionCode == -1) return 0; for ( final Iterator iterator = mapping.keySet().iterator(); iterator.hasNext();) { final String key = (String) iterator.next(); final int action = ((Integer) mapping.get(key)).intValue(); if (commonActionCode == action) { for (int index = 0; index < keys.length; index++) { if (key.equals(keys[index])) return index; } Assert.isTrue(false); // there's no way } } return 0; } |
| |||
private int getInitialSelectionIndexForEditDialog( final Map [[#variable592d64a0]], final String[] keys) { final int commonActionCode = getCommonActionCodeForSelectedInfos(); if (commonActionCode == -1) return 0; for ( final Iterator [[#variable592d6440]]= [[#variable592d64a0]].keySet().iterator(); [[#variable592d6440]].hasNext();) { final String key = (String) [[#variable592d6440]].next(); final int action = ((Integer) [[#variable592d64a0]].get(key)).intValue(); if (commonActionCode == action) { for (int [[#variable592d63c0]]= 0; [[#variable592d63c0]] < keys.length; [[#variable592d63c0]]++) { if (key.equals(keys[ [[#variable592d63c0]]])) return [[#variable592d63c0]]; } Assert.isTrue(false); // there's no way } } return 0; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#592d64a0]] | mapping |
1 | 2 | [[#592d64a0]] | stringMapping |
2 | 1 | [[#592d6440]] | iterator |
2 | 2 | [[#592d6440]] | iter |
3 | 1 | [[#592d63c0]] | index |
3 | 2 | [[#592d63c0]] | i |