CloneSet1522


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

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


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

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


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

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


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * This method is used to retrieve the position after the right parenthesis.
         * @return int the position found
         */
/**
         * This method is used to retrieve the start position of the block.
         * @return int the dimension found, -1 if none
         */
/**
         * This method is used to retrieve the starting position of the catch keyword.
         * @return int the dimension found, -1 if none
         */
protected int  [[#variable54f9dd60]](int start, int end) {
  this.scanner.resetTo(start, end);
  try {
    int token;
    while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) {
      switch (token) {
        case TerminalTokens. [[#variable54f9dce0]]: //110 //225
          return this.scanner [[#variable54f9dc40]];
      }
    }
  }
  catch (InvalidInputException e) {
  // ignore
  }
  return -1;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54f9dd60]]
retrieveEndOfRightParenthesisPosition 
12[[#54f9dd60]]
retrieveIdentifierEndPosition 
13[[#54f9dd60]]
retrieveStartingCatchPosition 
21[[#54f9dce0]]
TokenNameRPAREN 
22[[#54f9dce0]]
TokenNameIdentifier 
23[[#54f9dce0]]
TokenNamecatch 
31[[#54f9dc40]]
.currentPosition 
32[[#54f9dc40]]
.getCurrentTokenEndPosition() 
33[[#54f9dc40]]
.startPosition