CloneSet2738


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10220.991class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110165
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/MatchFilter.java
210183
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/MatchFilter.java
Clone Instance
1
Line Count
10
Source Line
165
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/MatchFilter.java

        public boolean isApplicable(JavaSearchQuery query) {
                QuerySpecification spec = query.getSpecification();
                if (spec instanceof ElementQuerySpecification) {
                        ElementQuerySpecification elementSpec = (ElementQuerySpecification) spec;
                        return elementSpec.getElement() instanceof IType;
                }
                else   if (spec instanceof PatternQuerySpecification) {
                        PatternQuerySpecification patternSpec = (PatternQuerySpecification) spec;
                        return patternSpec.getSearchFor() == IJavaSearchConstants.TYPE;
                       }
                return false;
        }


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

        public boolean isApplicable(JavaSearchQuery query) {
                QuerySpecification spec = query.getSpecification();
                if (spec instanceof ElementQuerySpecification) {
                        ElementQuerySpecification elementSpec = (ElementQuerySpecification) spec;
                        return elementSpec.getElement() instanceof IField;
                }
                else   if (spec instanceof PatternQuerySpecification) {
                        PatternQuerySpecification patternSpec = (PatternQuerySpecification) spec;
                        return patternSpec.getSearchFor() == IJavaSearchConstants.FIELD;
                       }
                return false;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

public boolean isApplicable(JavaSearchQuery query) {
  QuerySpecification spec = query.getSpecification();
  if (spec instanceof ElementQuerySpecification) {
    ElementQuerySpecification elementSpec = (ElementQuerySpecification) spec;
    return elementSpec.getElement() instanceof [[#variable54812e60]];
  }
  else
    if (spec instanceof PatternQuerySpecification) {
      PatternQuerySpecification patternSpec = (PatternQuerySpecification) spec;
      return patternSpec.getSearchFor() == IJavaSearchConstants. [[#variable53e022a0]];
    }
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54812e60]]
IType 
12[[#54812e60]]
IField 
21[[#53e022a0]]
TYPE 
22[[#53e022a0]]
FIELD