Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 1 | 0.989 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 110 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/SnippetOpenOnSelectionAction.java |
2 | 8 | 58 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/OpenActionUtil.java |
| ||||
/** * Filters out source references from the given code resolve results. * A utility method that can be called by subclassers. */ protected List filterResolveResults(IJavaElement[] codeResolveResults) { int nResults = codeResolveResults.length; List refs = new ArrayList(nResults); for (int i = 0; i < nResults; i++) { if (codeResolveResults[i] instanceof ISourceReference) refs.add(codeResolveResults[i]); } return refs; } |
| ||||
/** * Filters out source references from the given code resolve results. * A utility method that can be called by subclasses. */ public static List filterResolveResults(IJavaElement[] codeResolveResults) { int nResults = codeResolveResults.length; List refs = new ArrayList(nResults); for (int i = 0; i < nResults; i++) { if (codeResolveResults[i] instanceof ISourceReference) refs.add(codeResolveResults[i]); } return refs; } |
| |||
[[#variable61a55ec0]]List filterResolveResults(IJavaElement[] codeResolveResults) { int nResults = codeResolveResults.length; List refs = new ArrayList(nResults); for (int i = 0; i < nResults; i++) { if (codeResolveResults[i] instanceof ISourceReference) refs.add(codeResolveResults[i]); } return refs; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#61a55ec0]] | /** * Filters out source references from the given code resolve results. * A utility method that can be called by subclassers. */ protected |
1 | 2 | [[#61a55ec0]] | /** * Filters out source references from the given code resolve results. * A utility method that can be called by subclasses. */ public static |