CloneSet2630


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

        private boolean commentStartsBlock(int start, int end) {
                this.localScanner.resetTo(start, end);
                try {
                        if (this.localScanner.getNextToken() ==  TerminalTokens.TokenNameLBRACE) {
                                switch (this.localScanner.getNextToken()) {
                                        case TerminalTokens.TokenNameCOMMENT_BLOCK:
                                        case TerminalTokens.TokenNameCOMMENT_JAVADOC:
                                        case TerminalTokens.TokenNameCOMMENT_LINE:
                                                return true;
                                      }
                        }
                } catch (InvalidInputException e) {
                        // ignore
                  }
                return false;
        }


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

        private boolean commentStartsBlock(int start, int end) {
                this.localScanner.resetTo(start, end);
                try {
                        if (this.localScanner.getNextToken() ==  TerminalTokens.TokenNameLBRACE) {
                                switch (this.localScanner.getNextToken()) {
                                        case TerminalTokens.TokenNameCOMMENT_BLOCK:
                                        case TerminalTokens.TokenNameCOMMENT_JAVADOC:
                                        case TerminalTokens.TokenNameCOMMENT_LINE:
                                                return true;
                                      }
                        }
                } catch (InvalidInputException e) {
                        // ignore
                  }
                return false;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private boolean commentStartsBlock(int start, int end) {
  this.localScanner.resetTo(start, end);
  try {
    if (this.localScanner.getNextToken() == TerminalTokens.TokenNameLBRACE) {
      switch (this.localScanner.getNextToken()) {
        case TerminalTokens.TokenNameCOMMENT_BLOCK:
        case TerminalTokens.TokenNameCOMMENT_JAVADOC:
        case TerminalTokens.TokenNameCOMMENT_LINE:
          return true;
      }
    }
  }
  catch (InvalidInputException e) {
  // ignore
  }
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None