CloneSet989


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17210.991statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117448
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorHoverConfigurationBlock.java
217197
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/JavaEditorTextHoverDescriptor.java
Clone Instance
1
Line Count
17
Source Line
448
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaEditorHoverConfigurationBlock.java

                HashMap idToModifier = new HashMap(tokenizer.countTokens() / 2);

                while (tokenizer.hasMoreTokens()) {
                        String id = tokenizer.nextToken();
                        if (tokenizer.hasMoreTokens())
                                idToModifier.put(id, tokenizer.nextToken());
                }

                String compiledTextHoverModifierMasks = JavaPlugin.getDefault().getPreferenceStore().getString(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS);

                tokenizer = new StringTokenizer(compiledTextHoverModifierMasks, JavaEditorTextHoverDescriptor.VALUE_SEPARATOR);
                HashMap idToModifierMask = new HashMap(tokenizer.countTokens() / 2);

                while (tokenizer.hasMoreTokens()) {
                        String id = tokenizer.nextToken();
                        if (tokenizer.hasMoreTokens())
                                idToModifierMask.put(id, tokenizer.nextToken());
                }


Clone Instance
2
Line Count
17
Source Line
197
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/JavaEditorTextHoverDescriptor.java

                HashMap idToModifier = new HashMap(tokenizer.countTokens() / 2);

                while (tokenizer.hasMoreTokens()) {
                        String id = tokenizer.nextToken();
                        if (tokenizer.hasMoreTokens())
                                idToModifier.put(id, tokenizer.nextToken());
                }

                String compiledTextHoverModifierMasks = JavaPlugin.getDefault().getPreferenceStore().getString(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS);

                tokenizer = new StringTokenizer(compiledTextHoverModifierMasks, VALUE_SEPARATOR);
                HashMap idToModifierMask = new HashMap(tokenizer.countTokens() / 2);

                while (tokenizer.hasMoreTokens()) {
                        String id = tokenizer.nextToken();
                        if (tokenizer.hasMoreTokens())
                                idToModifierMask.put(id, tokenizer.nextToken());
                }


Clone AbstractionParameter Count: 1Parameter Bindings

HashMap idToModifier = new HashMap(tokenizer.countTokens() / 2);
while (tokenizer.hasMoreTokens()) {
  String id = tokenizer.nextToken();
  if (tokenizer.hasMoreTokens())
    idToModifier.put(id, tokenizer.nextToken());
}
String compiledTextHoverModifierMasks = JavaPlugin.getDefault().getPreferenceStore().getString(PreferenceConstants.EDITOR_TEXT_HOVER_MODIFIER_MASKS);
tokenizer = new StringTokenizer(compiledTextHoverModifierMasks,  [[#variable9af3aac0]]);
HashMap idToModifierMask = new HashMap(tokenizer.countTokens() / 2);
while (tokenizer.hasMoreTokens()) {
  String id = tokenizer.nextToken();
  if (tokenizer.hasMoreTokens())
    idToModifierMask.put(id, tokenizer.nextToken());
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9af3aac0]]
JavaEditorTextHoverDescriptor.VALUE_SEPARATOR 
12[[#9af3aac0]]
VALUE_SEPARATOR