CloneSet1974


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16201.000statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116532
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMType.java
216551
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMType.java
Clone Instance
1
Line Count
16
Source Line
532
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMType.java

                try {
                        int currentToken = scanner.getNextToken();
                        while (currentToken != TerminalTokens.TokenNameRBRACE &&
                                         currentToken != TerminalTokens.TokenNameEOF) {
                                currentToken = scanner.getNextToken();
                        }
                        if (currentToken == TerminalTokens.TokenNameRBRACE) {
                                closeBodyStart = scanner.startPosition;
                                closeBodyEnd = scanner.currentPosition - 1;
                        }
                        else   {
                                closeBodyStart = fDocument.length;
                                closeBodyEnd = fDocument.length;
                        }
                } catch (InvalidInputException e) {
                        closeBodyStart = fDocument.length;
                        closeBodyEnd = fDocument.length;
                  }


Clone Instance
2
Line Count
16
Source Line
551
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMType.java

                try {
                        int currentToken = scanner.getNextToken();
                        while (currentToken != TerminalTokens.TokenNameRBRACE &&
                                         currentToken != TerminalTokens.TokenNameEOF) {
                                currentToken = scanner.getNextToken();
                        }
                        if (currentToken == TerminalTokens.TokenNameRBRACE) {
                                closeBodyStart = scanner.startPosition;
                                closeBodyEnd = scanner.currentPosition - 1;
                        }
                        else   {
                                closeBodyStart = fDocument.length;
                                closeBodyEnd = fDocument.length;
                        }
                } catch (InvalidInputException e) {
                        closeBodyStart = fDocument.length;
                        closeBodyEnd = fDocument.length;
                  }


Clone AbstractionParameter Count: 0Parameter Bindings

try {
  int currentToken = scanner.getNextToken();
  while (currentToken != TerminalTokens.TokenNameRBRACE && currentToken != TerminalTokens.TokenNameEOF) {
    currentToken = scanner.getNextToken();
  }
  if (currentToken == TerminalTokens.TokenNameRBRACE) {
    closeBodyStart = scanner.startPosition;
    closeBodyEnd = scanner.currentPosition - 1;
  }
  else {
    closeBodyStart = fDocument.length;
    closeBodyEnd = fDocument.length;
  }
}
catch (InvalidInputException e) {
  closeBodyStart = fDocument.length;
  closeBodyEnd = fDocument.length;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None