CloneSet1409


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21201.000class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121210
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/TokenScanner.java
221399
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/TokenScanner.java
Clone Instance
1
Line Count
21
Source Line
210
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/TokenScanner.java

        public static boolean isComment(int token) {
                return token == ITerminalSymbols.TokenNameCOMMENT_BLOCK || token == ITerminalSymbols.TokenNameCOMMENT_JAVADOC ||
                           token == ITerminalSymbols.TokenNameCOMMENT_LINE;
        }

        public static boolean isModifier(int token) {
                switch (token) {
                        case ITerminalSymbols.TokenNamepublic:
                        case ITerminalSymbols.TokenNameprotected:
                        case ITerminalSymbols.TokenNameprivate:
                        case ITerminalSymbols.TokenNamestatic:
                        case ITerminalSymbols.TokenNamefinal:
                        case ITerminalSymbols.TokenNameabstract:
                        case ITerminalSymbols.TokenNamenative:
                        case ITerminalSymbols.TokenNamevolatile:
                        case ITerminalSymbols.TokenNamestrictfp:
                        case ITerminalSymbols.TokenNametransient:
                        case ITerminalSymbols.TokenNamesynchronized:
                                return true;
                        default:
                                return false;
                      }
        }


Clone Instance
2
Line Count
21
Source Line
399
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/TokenScanner.java

        public static boolean isComment(int token) {
                return token == ITerminalSymbols.TokenNameCOMMENT_BLOCK || token == ITerminalSymbols.TokenNameCOMMENT_JAVADOC ||
                           token == ITerminalSymbols.TokenNameCOMMENT_LINE;
        }

        public static boolean isModifier(int token) {
                switch (token) {
                        case ITerminalSymbols.TokenNamepublic:
                        case ITerminalSymbols.TokenNameprotected:
                        case ITerminalSymbols.TokenNameprivate:
                        case ITerminalSymbols.TokenNamestatic:
                        case ITerminalSymbols.TokenNamefinal:
                        case ITerminalSymbols.TokenNameabstract:
                        case ITerminalSymbols.TokenNamenative:
                        case ITerminalSymbols.TokenNamevolatile:
                        case ITerminalSymbols.TokenNamestrictfp:
                        case ITerminalSymbols.TokenNametransient:
                        case ITerminalSymbols.TokenNamesynchronized:
                                return true;
                        default:
                                return false;
                      }
        }


Clone AbstractionParameter Count: 0Parameter Bindings

public static boolean isComment(int token) {
  return token == ITerminalSymbols.TokenNameCOMMENT_BLOCK || token == ITerminalSymbols.TokenNameCOMMENT_JAVADOC || token == ITerminalSymbols.TokenNameCOMMENT_LINE;
}

public static boolean isModifier(int token) {
  switch (token) {
    case ITerminalSymbols.TokenNamepublic:
    case ITerminalSymbols.TokenNameprotected:
    case ITerminalSymbols.TokenNameprivate:
    case ITerminalSymbols.TokenNamestatic:
    case ITerminalSymbols.TokenNamefinal:
    case ITerminalSymbols.TokenNameabstract:
    case ITerminalSymbols.TokenNamenative:
    case ITerminalSymbols.TokenNamevolatile:
    case ITerminalSymbols.TokenNamestrictfp:
    case ITerminalSymbols.TokenNametransient:
    case ITerminalSymbols.TokenNamesynchronized:
      return true;
    default:
      return false;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None