CloneSet1707


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8210.969statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18241
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSHint.java
28255
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSHint.java
Clone Instance
1
Line Count
8
Source Line
241
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSHint.java

                for (int i = 0; i < lines.length; i++) {
                        NLSElement[] elements = lines[i].getElements();
                        for (int j = 0; j < elements.length; j++) {
                                NLSElement nlsElement = elements[j];
                                if (nlsElement.hasTag()) {
                                        AccessorClassReference accessorClassReference = NLSHintHelper.getAccessorClassReference(astRoot, nlsElement);
                                        if (accessorClassReference != null) {
                                                return accessorClassReference;
                                        }
                                }
                        }
                }


Clone Instance
2
Line Count
8
Source Line
255
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSHint.java

                // try to find a access with missing //non-nls tag (bug 75155)
                for (int i = 0; i < lines.length; i++) {
                        NLSElement[] elements = lines[i].getElements();
                        for (int j = 0; j < elements.length; j++) {
                                NLSElement nlsElement = elements[j];
                                if ( !nlsElement.hasTag()) {
                                        AccessorClassReference accessorClassReference = NLSHintHelper.getAccessorClassReference(astRoot, nlsElement);
                                        if (accessorClassReference != null) {
                                                return accessorClassReference;
                                        }
                                }
                        }
                }


Clone AbstractionParameter Count: 1Parameter Bindings

// try to find a access with missing //non-nls tag (bug 75155)
for (int i = 0; i < lines.length; i++) {
  NLSElement[] elements = lines[i].getElements();
  for (int j = 0; j < elements.length; j++) {
    NLSElement nlsElement = elements[j];
    if ( [[#variableb4477800]]) {
      AccessorClassReference accessorClassReference = NLSHintHelper.getAccessorClassReference(astRoot, nlsElement);
      if (accessorClassReference != null) {
        return accessorClassReference;
      }
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b4477800]]
!nlsElement.hasTag() 
12[[#b4477800]]
nlsElement.hasTag()