CloneSet2686


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14220.991class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1144221
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
2144241
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java
Clone Instance
1
Line Count
14
Source Line
4221
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

        /**
         * This method is used to retrieve position before the next right brace or semi-colon.
         * @return int the position found.
         */
        protected int retrieveRightBrace(int start, int end) {
                this.scanner.resetTo(start, end);
                try {
                        int token;
                        while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) {
                                switch (token) {
                                        case TerminalTokens.TokenNameRBRACE:
                                                return this.scanner.currentPosition - 1;
                                      }
                        }
                } catch (InvalidInputException e) {
                        // ignore
                  }
                return -1;
        }


Clone Instance
2
Line Count
14
Source Line
4241
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTConverter.java

        /**
         * This method is used to retrieve the position of the right bracket.
         * @return int the dimension found, -1 if none
         */
        protected int retrieveRightBracketPosition(int start, int end) {
                this.scanner.resetTo(start, end);
                try {
                        int token;
                        while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) {
                                switch (token) {
                                        case TerminalTokens.TokenNameRBRACKET:
                                                return this.scanner.currentPosition - 1;
                                      }
                        }
                } catch (InvalidInputException e) {
                        // ignore
                  }
                return -1;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * This method is used to retrieve the position of the right bracket.
         * @return int the dimension found, -1 if none
         */
/**
         * This method is used to retrieve position before the next right brace or semi-colon.
         * @return int the position found.
         */
protected int  [[#variable545ce100]](int start, int end) {
  this.scanner.resetTo(start, end);
  try {
    int token;
    while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) {
      switch (token) {
        case TerminalTokens. [[#variable4f9afea0]]:
          return this.scanner.currentPosition - 1;
      }
    }
  }
  catch (InvalidInputException e) {
  // ignore
  }
  return -1;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#545ce100]]
retrieveRightBracketPosition 
12[[#545ce100]]
retrieveRightBrace 
21[[#4f9afea0]]
TokenNameRBRACKET 
22[[#4f9afea0]]
TokenNameRBRACE