CloneSet1537


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18201.000class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118147
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSScanner.java
218182
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSUtil.java
Clone Instance
1
Line Count
18
Source Line
147
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSScanner.java

        private static NLSElement findPreviousTagged(int startIndex, NLSElement[] elements) {
                int i = startIndex - 1;
                while (i >= 0) {
                        if (elements[i].hasTag())
                                return elements[i];
                        i--;
                }
                return null;
        }

        private static NLSElement findNextTagged(int startIndex, NLSElement[] elements) {
                int i = startIndex + 1;
                while (i < elements.length) {
                        if (elements[i].hasTag())
                                return elements[i];
                        i++;
                }
                return null;
        }


Clone Instance
2
Line Count
18
Source Line
182
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSUtil.java

        private static NLSElement findPreviousTagged(int startIndex, NLSElement[] elements) {
                int i = startIndex - 1;
                while (i >= 0) {
                        if (elements[i].hasTag())
                                return elements[i];
                        i--;
                }
                return null;
        }

        private static NLSElement findNextTagged(int startIndex, NLSElement[] elements) {
                int i = startIndex + 1;
                while (i < elements.length) {
                        if (elements[i].hasTag())
                                return elements[i];
                        i++;
                }
                return null;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private static NLSElement findPreviousTagged(int startIndex, NLSElement[] elements) {
  int i = startIndex - 1;
  while (i >= 0) {
    if (elements[i].hasTag())
      return elements[i];
    i--;
  }
  return null;
}

private static NLSElement findNextTagged(int startIndex, NLSElement[] elements) {
  int i = startIndex + 1;
  while (i < elements.length) {
    if (elements[i].hasTag())
      return elements[i];
    i++;
  }
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None