CloneSet5614


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2330.965class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12606
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java
22618
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java
32631
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java
Clone Instance
1
Line Count
2
Source Line
606
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java

        /**
         * Finds the smallest position in <code>fDocument</code> such that the position is &gt;= <code>position</code>
         * and &lt; <code>bound</code> and <code>Character.isWhitespace(fDocument.getChar(pos))</code> evaluates to <code>false</code>
         * and the position is in the default partition.
         *
         * @param position the first character position in <code>fDocument</code> to be considered
         * @param bound the first position in <code>fDocument</code> to not consider any more, with <code>bound</code> &gt; <code>position</code>, or <code>UNBOUND</code>
         * @return the smallest position of a non-whitespace character in [<code>position</code>, <code>bound</code>) that resides in a Java partition, or <code>NOT_FOUND</code> if none can be found
         */
        public int findNonWhitespaceForward(int position, int bound) {
                return scanForward(position, bound, fNonWSDefaultPart);
        }


Clone Instance
2
Line Count
2
Source Line
618
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java

        /**
         * Finds the smallest position in <code>fDocument</code> such that the position is &gt;= <code>position</code>
         * and &lt; <code>bound</code> and <code>Character.isWhitespace(fDocument.getChar(pos))</code> evaluates to <code>false</code>.
         *
         * @param position the first character position in <code>fDocument</code> to be considered
         * @param bound the first position in <code>fDocument</code> to not consider any more, with <code>bound</code> &gt; <code>position</code>, or <code>UNBOUND</code>
         * @return the smallest position of a non-whitespace character in [<code>position</code>, <code>bound</code>), or <code>NOT_FOUND</code> if none can be found
         */
        public int findNonWhitespaceForwardInAnyPartition(int position, int bound) {
                return scanForward(position, bound, fNonWS);
        }


Clone Instance
3
Line Count
2
Source Line
631
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaHeuristicScanner.java

        /**
         * Finds the highest position in <code>fDocument</code> such that the position is &lt;= <code>position</code>
         * and &gt; <code>bound</code> and <code>Character.isWhitespace(fDocument.getChar(pos))</code> evaluates to <code>false</code>
         * and the position is in the default partition.
         *
         * @param position the first character position in <code>fDocument</code> to be considered
         * @param bound the first position in <code>fDocument</code> to not consider any more, with <code>bound</code> &lt; <code>position</code>, or <code>UNBOUND</code>
         * @return the highest position of a non-whitespace character in (<code>bound</code>, <code>position</code>] that resides in a Java partition, or <code>NOT_FOUND</code> if none can be found
         */
        public int findNonWhitespaceBackward(int position, int bound) {
                return scanBackward(position, bound, fNonWSDefaultPart);
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * Finds the smallest position in <code>fDocument</code> such that the position is &gt;= <code>position</code>
         * and &lt; <code>bound</code> and <code>Character.isWhitespace(fDocument.getChar(pos))</code> evaluates to <code>false</code>
         * and the position is in the default partition.
         *
         * @param position the first character position in <code>fDocument</code> to be considered
         * @param bound the first position in <code>fDocument</code> to not consider any more, with <code>bound</code> &gt; <code>position</code>, or <code>UNBOUND</code>
         * @return the smallest position of a non-whitespace character in [<code>position</code>, <code>bound</code>) that resides in a Java partition, or <code>NOT_FOUND</code> if none can be found
         */
/**
         * Finds the smallest position in <code>fDocument</code> such that the position is &gt;= <code>position</code>
         * and &lt; <code>bound</code> and <code>Character.isWhitespace(fDocument.getChar(pos))</code> evaluates to <code>false</code>.
         *
         * @param position the first character position in <code>fDocument</code> to be considered
         * @param bound the first position in <code>fDocument</code> to not consider any more, with <code>bound</code> &gt; <code>position</code>, or <code>UNBOUND</code>
         * @return the smallest position of a non-whitespace character in [<code>position</code>, <code>bound</code>), or <code>NOT_FOUND</code> if none can be found
         */
/**
         * Finds the highest position in <code>fDocument</code> such that the position is &lt;= <code>position</code>
         * and &gt; <code>bound</code> and <code>Character.isWhitespace(fDocument.getChar(pos))</code> evaluates to <code>false</code>
         * and the position is in the default partition.
         *
         * @param position the first character position in <code>fDocument</code> to be considered
         * @param bound the first position in <code>fDocument</code> to not consider any more, with <code>bound</code> &lt; <code>position</code>, or <code>UNBOUND</code>
         * @return the highest position of a non-whitespace character in (<code>bound</code>, <code>position</code>] that resides in a Java partition, or <code>NOT_FOUND</code> if none can be found
         */
public int  [[#variable9b20fe20]](int position, int bound) {
  return [[#variable9b20fdc0]](position, bound,  [[#variable9b20fbe0]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9b20fe20]]
findNonWhitespaceForward 
12[[#9b20fe20]]
findNonWhitespaceForwardInAnyPartition 
13[[#9b20fe20]]
findNonWhitespaceBackward 
21[[#9b20fdc0]]
scanForward 
22[[#9b20fdc0]]
scanForward 
23[[#9b20fdc0]]
scanBackward 
31[[#9b20fbe0]]
fNonWSDefaultPart 
32[[#9b20fbe0]]
fNonWS 
33[[#9b20fbe0]]
fNonWSDefaultPart