Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
21 | 2 | 1 | 0.994 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 115 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaHistoryActionImpl.java |
2 | 21 | 79 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaTextBufferNode.java |
| ||||
final ITypedElement[] buildEditions(ITypedElement target, IFile file) { // setup array of editions IFileState[] states = null; // add available editions try { states = file.getHistory(null); } catch (CoreException ex) { JavaPlugin.log(ex); } int count = 1; if (states != null) count += states.length; ITypedElement[] editions = new ITypedElement[count]; editions[0] = new ResourceNode(file); if (states != null) for (int i = 0; i < states.length; i++) editions[i + 1] = new HistoryItem(target, states[i]); return editions; } |
| ||||
static final ITypedElement[] buildEditions(ITypedElement target, IFile file) { // setup array of editions IFileState[] states = null; // add available editions try { states = file.getHistory(null); } catch (CoreException ex) { JavaPlugin.log(ex); } int count = 1; if (states != null) count += states.length; ITypedElement[] editions = new ITypedElement[count]; editions[0] = new ResourceNode(file); if (states != null) for (int i = 0; i < states.length; i++) editions[i + 1] = new HistoryItem(target, states[i]); return editions; } |
| |||
[[#variablebc9ecc60]]ITypedElement[] buildEditions(ITypedElement target, IFile file) { // setup array of editions IFileState[] states = null; // add available editions try { states = file.getHistory(null); } catch (CoreException ex) { JavaPlugin.log(ex); } int count = 1; if (states != null) count += states.length; ITypedElement[] editions = new ITypedElement[count]; editions[0] = new ResourceNode(file); if (states != null) for (int i = 0; i < states.length; i++) editions[i + 1] = new HistoryItem(target, states[i]); return editions; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bc9ecc60]] | final |
1 | 2 | [[#bc9ecc60]] | static final |