CloneSet3201


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25210.995class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12558
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/propertiesfileeditor/PropertiesFilePartitionScanner.java
22560
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaPartitionScanner.java
Clone Instance
1
Line Count
25
Source Line
58
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/propertiesfileeditor/PropertiesFilePartitionScanner.java

        /**
         * Word rule for empty comments.
         */
        static class EmptyCommentRule extends WordRule implements IPredicateRule {

                private IToken fSuccessToken;

                /**
                 * Constructor for EmptyCommentRule.
                 * @param successToken the success token
                 */
                public EmptyCommentRule(IToken successToken) {
                        super(new EmptyCommentDetector());
                        fSuccessToken = successToken;
                        addWord("#", fSuccessToken); //$NON-NLS-1$
                }

                /*
                 * @see IPredicateRule#evaluate(ICharacterScanner, boolean)
                 */
                public IToken evaluate(ICharacterScanner scanner, boolean resume) {
                        return evaluate(scanner);
                }

                /*
                 * @see IPredicateRule#getSuccessToken()
                 */
                public IToken getSuccessToken() {
                        return fSuccessToken;
                }
        }


Clone Instance
2
Line Count
25
Source Line
60
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaPartitionScanner.java

        /**
         * Word rule for empty comments.
         */
        static class EmptyCommentRule extends WordRule implements IPredicateRule {

                private IToken fSuccessToken;

                /**
                 * Constructor for EmptyCommentRule.
                 * @param successToken
                 */
                public EmptyCommentRule(IToken successToken) {
                        super(new EmptyCommentDetector());
                        fSuccessToken = successToken;
                        addWord("/**/", fSuccessToken); //$NON-NLS-1$
                }

                /*
                 * @see IPredicateRule#evaluate(ICharacterScanner, boolean)
                 */
                public IToken evaluate(ICharacterScanner scanner, boolean resume) {
                        return evaluate(scanner);
                }

                /*
                 * @see IPredicateRule#getSuccessToken()
                 */
                public IToken getSuccessToken() {
                        return fSuccessToken;
                }
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Word rule for empty comments.
         */
static class EmptyCommentRule extends WordRule implements IPredicateRule {
  private IToken fSuccessToken;

  /**
                   * Constructor for EmptyCommentRule.
                   * @param successToken
                   */
  /**
                   * Constructor for EmptyCommentRule.
                   * @param successToken the success token
                   */
  public EmptyCommentRule(IToken successToken) {
    super(new EmptyCommentDetector());
    fSuccessToken = successToken;
    addWord( [[#variablea3fc9b60]], fSuccessToken); //$NON-NLS-1$
  }

  /*
                   * @see IPredicateRule#evaluate(ICharacterScanner, boolean)
                   */
  public IToken evaluate(ICharacterScanner scanner, boolean resume) {
    return evaluate(scanner);
  }

  /*
                   * @see IPredicateRule#getSuccessToken()
                   */
  public IToken getSuccessToken() {
    return fSuccessToken;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a3fc9b60]]
"/**/" 
12[[#a3fc9b60]]
"#"