CloneSet6432


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10210.956statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110153
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/nls/search/NLSSearchResult.java
21094
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/OccurrencesSearchResult.java
Clone Instance
1
Line Count
10
Source Line
153
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/nls/search/NLSSearchResult.java

                        IResource resource = null;
                        try {
                                resource = javaElement.getCorrespondingResource();
                        } catch (JavaModelException e) {
                                // no resource
                          }
                        if (resource instanceof IFile)
                                return (IFile) resource;
                        else
                                return null;


Clone Instance
2
Line Count
10
Source Line
94
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/OccurrencesSearchResult.java

                IResource resource = null;
                try {
                        resource = jel.getJavaElement().getCorrespondingResource();
                } catch (JavaModelException e) {
                        // no resource
                  }
                if (resource instanceof IFile)
                        return (IFile) resource;
                else
                        return null;


Clone AbstractionParameter Count: 1Parameter Bindings

IResource resource = null;
try {
  resource = [[#variable60a9f7e0]].getCorrespondingResource();
}
catch (JavaModelException e) {
// no resource
}
if (resource instanceof IFile)
  return (IFile) resource;
else
  return null;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#60a9f7e0]]
javaElement 
12[[#60a9f7e0]]
jel.getJavaElement()