CloneSet296


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
58201.000statement_sequence[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
158370
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionJavadocParser.java
258449
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/AbstractCommentParser.java
Clone Instance
1
Line Count
58
Source Line
370
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionJavadocParser.java

                        iToken++;

                        // Read possible additional type info
                        dim = 0;
                        isVarargs = false;
                        if (readToken() == TerminalTokens.TokenNameLBRACKET) {
                                // array declaration
                                int dimStart = this.scanner.getCurrentTokenStartPosition();
                                while (readToken() == TerminalTokens.TokenNameLBRACKET) {
                                        consumeToken();
                                        if (readToken() != TerminalTokens.TokenNameRBRACKET) {
                                                break nextArg;
                                        }
                                        consumeToken();
                                        dimPositions[dim++ ] = (((long) dimStart) << 32) + this.scanner.getCurrentTokenEndPosition();
                                }
                        }
                        else   if (readToken() == TerminalTokens.TokenNameELLIPSIS) {
                                // ellipsis declaration
                                int dimStart = this.scanner.getCurrentTokenStartPosition();
                                dimPositions[dim++ ] = (((long) dimStart) << 32) + this.scanner.getCurrentTokenEndPosition();
                                consumeToken();
                                isVarargs = true;
                               }
                        // Read argument name
                        argNamePos = -1;
                        if (readToken() == TerminalTokens.TokenNameIdentifier) {
                                consumeToken();
                                if (firstArg) { // verify position
                                        if (iToken != 1)
                                                break nextArg;
                                }
                                else   if ((iToken % modulo) != 1) {
                                                break nextArg;
                                       }
                                if (argName == null) { // verify that all arguments name are declared
                                        if ( !firstArg) {
                                                break nextArg;
                                        }
                                }
                                argName = this.scanner.getCurrentIdentifierSource();
                                argNamePos = (((long) this.scanner.getCurrentTokenStartPosition()) << 32) + this.scanner.getCurrentTokenEndPosition();
                                iToken++;
                        }
                        else   if (argName != null) { // verify that no argument name is declared
                                break nextArg;
                               }
                        // Verify token position
                        if (firstArg) {
                                modulo = iToken + 1;
                        }
                        else   {
                                if ((iToken % modulo) != (modulo - 1)) {
                                        break nextArg;
                                }
                        }
                        // Read separator or end arguments declaration
                        int token = readToken();
                        name = argName == null ? CharOperation.NO_CHAR:  argName;


Clone Instance
2
Line Count
58
Source Line
449
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/AbstractCommentParser.java

                        iToken++;

                        // Read possible additional type info
                        dim = 0;
                        isVarargs = false;
                        if (readToken() == TerminalTokens.TokenNameLBRACKET) {
                                // array declaration
                                int dimStart = this.scanner.getCurrentTokenStartPosition();
                                while (readToken() == TerminalTokens.TokenNameLBRACKET) {
                                        consumeToken();
                                        if (readToken() != TerminalTokens.TokenNameRBRACKET) {
                                                break nextArg;
                                        }
                                        consumeToken();
                                        dimPositions[dim++ ] = (((long) dimStart) << 32) + this.scanner.getCurrentTokenEndPosition();
                                }
                        }
                        else   if (readToken() == TerminalTokens.TokenNameELLIPSIS) {
                                // ellipsis declaration
                                int dimStart = this.scanner.getCurrentTokenStartPosition();
                                dimPositions[dim++ ] = (((long) dimStart) << 32) + this.scanner.getCurrentTokenEndPosition();
                                consumeToken();
                                isVarargs = true;
                               }
                        // Read argument name
                        argNamePos = -1;
                        if (readToken() == TerminalTokens.TokenNameIdentifier) {
                                consumeToken();
                                if (firstArg) { // verify position
                                        if (iToken != 1)
                                                break nextArg;
                                }
                                else   if ((iToken % modulo) != 1) {
                                                break nextArg;
                                       }
                                if (argName == null) { // verify that all arguments name are declared
                                        if ( !firstArg) {
                                                break nextArg;
                                        }
                                }
                                argName = this.scanner.getCurrentIdentifierSource();
                                argNamePos = (((long) this.scanner.getCurrentTokenStartPosition()) << 32) + this.scanner.getCurrentTokenEndPosition();
                                iToken++;
                        }
                        else   if (argName != null) { // verify that no argument name is declared
                                break nextArg;
                               }
                        // Verify token position
                        if (firstArg) {
                                modulo = iToken + 1;
                        }
                        else   {
                                if ((iToken % modulo) != (modulo - 1)) {
                                        break nextArg;
                                }
                        }
                        // Read separator or end arguments declaration
                        int token = readToken();
                        name = argName == null ? CharOperation.NO_CHAR:  argName;


Clone AbstractionParameter Count: 0Parameter Bindings

iToken++;
// Read possible additional type info
dim = 0;
isVarargs = false;
if (readToken() == TerminalTokens.TokenNameLBRACKET) {
  // array declaration
  int dimStart = this.scanner.getCurrentTokenStartPosition();
  while (readToken() == TerminalTokens.TokenNameLBRACKET) {
    consumeToken();
    if (readToken() != TerminalTokens.TokenNameRBRACKET) {
      break nextArg;
    }
    consumeToken();
    dimPositions[dim++ ] = (((long) dimStart) << 32) + this.scanner.getCurrentTokenEndPosition();
  }
}
else
  if (readToken() == TerminalTokens.TokenNameELLIPSIS) {
    // ellipsis declaration
    int dimStart = this.scanner.getCurrentTokenStartPosition();
    dimPositions[dim++ ] = (((long) dimStart) << 32) + this.scanner.getCurrentTokenEndPosition();
    consumeToken();
    isVarargs = true;
  }
// Read argument name
argNamePos = -1;
if (readToken() == TerminalTokens.TokenNameIdentifier) {
  consumeToken();
  if (firstArg) { // verify position
    if (iToken != 1)
      break nextArg;
  }
  else
    if ((iToken % modulo) != 1) {
      break nextArg;
    }
  if (argName == null) { // verify that all arguments name are declared
    if ( !firstArg) {
      break nextArg;
    }
  }
  argName = this.scanner.getCurrentIdentifierSource();
  argNamePos = (((long) this.scanner.getCurrentTokenStartPosition()) << 32) + this.scanner.getCurrentTokenEndPosition();
  iToken++;
}
else
  if (argName != null) { // verify that no argument name is declared
    break nextArg;
  }
// Verify token position
if (firstArg) {
  modulo = iToken + 1;
}
else {
  if ((iToken % modulo) != (modulo - 1)) {
    break nextArg;
  }
}
// Read separator or end arguments declaration
int token = readToken();
name = argName == null ? CharOperation.NO_CHAR: argName;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None