View.ViewConfig config;
if(view != null && (plainView == view.isPlainView()))
config = view.getViewConfig();
else
config = new View.ViewConfig(plainView);
return newView(view,buffer,config);
if(shortcut != null && shortcut.length() == 0)
shortcut = null;
GrabKeyDialog.KeyBinding binding
= new GrabKeyDialog.KeyBinding(name,label,shortcut,false);
allBindings.addElement(binding);
return binding;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/jEdit.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/ShortcutsOptionPane.java
|
Method name: View newView(View, Buffer, boolean)
|
|
Method name: GrabKeyDialog.KeyBinding createBinding(String, String, String)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | View.ViewConfig config;↵ | | |
|
2 | if(view != null && (plainView == view.isPlainView()))↵ | | |
|
3 | config = view.getViewConfig();↵ | | |
|
4 | else↵ | | |
|
5 | config = new View.ViewConfig(plainView);↵ | | |
|
6 | return newView(view,buffer,config)↵ | | 1 | if(shortcut != null && shortcut.length() == 0)↵
|
| | | 2 | shortcut = null;↵
|
|
| | | 3 | GrabKeyDialog.KeyBinding binding↵
|
| | | 4 | = new GrabKeyDialog.KeyBinding(name,label,shortcut,false);↵
|
|
| | | 5 | allBindings.addElement(binding);↵
|
7 | ; | | 6 | return binding;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |