CloneSet2736


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8210.989class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18110
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/SnippetOpenOnSelectionAction.java
2858
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/OpenActionUtil.java
Clone Instance
1
Line Count
8
Source Line
110
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/SnippetOpenOnSelectionAction.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;
        }


Clone Instance
2
Line Count
8
Source Line
58
Source File
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 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;
        }


Clone AbstractionParameter Count: 1Parameter Bindings

 [[#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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#61a55ec0]]
/**
 * Filters out source references from the given code resolve results.
 * A utility method that can be called by subclassers. 
 */
protected 
12[[#61a55ec0]]
/**
 * Filters out source references from the given code resolve results.
 * A utility method that can be called by subclasses. 
 */
public static