CloneSet3182


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1142078
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
214816
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java
Clone Instance
1
Line Count
14
Source Line
2078
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java

        private boolean hasComments() {

                this.localScanner.resetTo(this.scribe.scanner.startPosition, this.scribe.scannerEndPosition - 1);
                try {
                        switch (this.localScanner.getNextToken()) {
                                case TerminalTokens.TokenNameCOMMENT_BLOCK:
                                case TerminalTokens.TokenNameCOMMENT_JAVADOC:
                                case TerminalTokens.TokenNameCOMMENT_LINE:
                                        return true;
                              }
                } catch (InvalidInputException e) {
                        // ignore
                  }
                return false;
        }


Clone Instance
2
Line Count
14
Source Line
816
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor2.java

        private boolean hasComments() {

                this.localScanner.resetTo(this.scribe.scanner.startPosition, this.scribe.scannerEndPosition - 1);
                try {
                        switch (this.localScanner.getNextToken()) {
                                case TerminalTokens.TokenNameCOMMENT_BLOCK:
                                case TerminalTokens.TokenNameCOMMENT_JAVADOC:
                                case TerminalTokens.TokenNameCOMMENT_LINE:
                                        return true;
                              }
                } catch (InvalidInputException e) {
                        // ignore
                  }
                return false;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private boolean hasComments() {
  this.localScanner.resetTo(this.scribe.scanner.startPosition, this.scribe.scannerEndPosition - 1);
  try {
    switch (this.localScanner.getNextToken()) {
      case TerminalTokens.TokenNameCOMMENT_BLOCK:
      case TerminalTokens.TokenNameCOMMENT_JAVADOC:
      case TerminalTokens.TokenNameCOMMENT_LINE:
        return true;
    }
  }
  catch (InvalidInputException e) {
  // ignore
  }
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None