CloneSet1423


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

        private boolean isClosingGenericToken() {
                this.localScanner.resetTo(this.scribe.scanner.currentPosition, this.scribe.scannerEndPosition - 1);
                try {
                        int token = this.localScanner.getNextToken();
                        loop: while (true) {
                                switch (token) {
                                        case TerminalTokens.TokenNameCOMMENT_BLOCK:
                                        case TerminalTokens.TokenNameCOMMENT_JAVADOC:
                                        case TerminalTokens.TokenNameCOMMENT_LINE:
                                                token = this.localScanner.getNextToken();
                                                continue loop;
                                        default:
                                                break loop;
                                      }
                              }
                        switch (token) {
                                case TerminalTokens.TokenNameGREATER:
                                case TerminalTokens.TokenNameRIGHT_SHIFT:
                                case TerminalTokens.TokenNameUNSIGNED_RIGHT_SHIFT:
                                        return true;
                              }
                } catch (InvalidInputException e) {
                        // ignore
                  }
                return false;
        }


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

        private boolean isClosingGenericToken() {
                this.localScanner.resetTo(this.scribe.scanner.currentPosition, this.scribe.scannerEndPosition - 1);
                try {
                        int token = this.localScanner.getNextToken();
                        loop: while (true) {
                                switch (token) {
                                        case TerminalTokens.TokenNameCOMMENT_BLOCK:
                                        case TerminalTokens.TokenNameCOMMENT_JAVADOC:
                                        case TerminalTokens.TokenNameCOMMENT_LINE:
                                                token = this.localScanner.getNextToken();
                                                continue loop;
                                        default:
                                                break loop;
                                      }
                              }
                        switch (token) {
                                case TerminalTokens.TokenNameGREATER:
                                case TerminalTokens.TokenNameRIGHT_SHIFT:
                                case TerminalTokens.TokenNameUNSIGNED_RIGHT_SHIFT:
                                        return true;
                              }
                } catch (InvalidInputException e) {
                        // ignore
                  }
                return false;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private boolean isClosingGenericToken() {
  this.localScanner.resetTo(this.scribe.scanner.currentPosition, this.scribe.scannerEndPosition - 1);
  try {
    int token = this.localScanner.getNextToken();
    loop:
      while (true) {
        switch (token) {
          case TerminalTokens.TokenNameCOMMENT_BLOCK:
          case TerminalTokens.TokenNameCOMMENT_JAVADOC:
          case TerminalTokens.TokenNameCOMMENT_LINE:
            token = this.localScanner.getNextToken();
            continue loop;
          default:
            break loop;
        }
      }
    switch (token) {
      case TerminalTokens.TokenNameGREATER:
      case TerminalTokens.TokenNameRIGHT_SHIFT:
      case TerminalTokens.TokenNameUNSIGNED_RIGHT_SHIFT:
        return true;
    }
  }
  catch (InvalidInputException e) {
  // ignore
  }
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None