CloneSet734


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7820.977class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
171712
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
271978
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
372344
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
472421
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
582574
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
672661
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
772711
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
863123
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
Clone Instance
1
Line Count
7
Source Line
1712
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(ArrayType)
         */
        public boolean visit(ArrayType node) {
                if ( !hasChildrenChanges(node)) {
                        return doVisitUnchangedChildren(node);
                }

                rewriteRequiredNode(node, ArrayType.COMPONENT_TYPE_PROPERTY);
                return false;
        }


Clone Instance
2
Line Count
7
Source Line
1978
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(ExpressionStatement)
         */
        public boolean visit(ExpressionStatement node) { // expression
                if ( !hasChildrenChanges(node)) {
                        return doVisitUnchangedChildren(node);
                }

                rewriteRequiredNode(node, ExpressionStatement.EXPRESSION_PROPERTY);
                return false;
        }


Clone Instance
3
Line Count
7
Source Line
2344
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(ParenthesizedExpression)
         */
        public boolean visit(ParenthesizedExpression node) {
                if ( !hasChildrenChanges(node)) {
                        return doVisitUnchangedChildren(node);
                }

                rewriteRequiredNode(node, ParenthesizedExpression.EXPRESSION_PROPERTY);
                return false;
        }


Clone Instance
4
Line Count
7
Source Line
2421
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(SimpleType)
         */
        public boolean visit(SimpleType node) {
                if ( !hasChildrenChanges(node)) {
                        return doVisitUnchangedChildren(node);
                }

                rewriteRequiredNode(node, SimpleType.NAME_PROPERTY);
                return false;
        }


Clone Instance
5
Line Count
8
Source Line
2574
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(SwitchCase)
         */
        public boolean visit(SwitchCase node) {
                if ( !hasChildrenChanges(node)) {
                        return doVisitUnchangedChildren(node);
                }

                // dont allow switching from case to default or back. New statements should be created.
                rewriteRequiredNode(node, SwitchCase.EXPRESSION_PROPERTY);
                return false;
        }


Clone Instance
6
Line Count
7
Source Line
2661
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(ThrowStatement)
         */
        public boolean visit(ThrowStatement node) {
                if ( !hasChildrenChanges(node)) {
                        return doVisitUnchangedChildren(node);
                }

                rewriteRequiredNode(node, ThrowStatement.EXPRESSION_PROPERTY);
                return false;
        }


Clone Instance
7
Line Count
7
Source Line
2711
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(TypeLiteral)
         */
        public boolean visit(TypeLiteral node) {
                if ( !hasChildrenChanges(node)) {
                        return doVisitUnchangedChildren(node);
                }

                rewriteRequiredNode(node, TypeLiteral.TYPE_PROPERTY);
                return false;
        }


Clone Instance
8
Line Count
6
Source Line
3123
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.MarkerAnnotation)
         */
        public boolean visit(MarkerAnnotation node) {
                if ( !hasChildrenChanges(node)) {
                        return doVisitUnchangedChildren(node);
                }
                rewriteRequiredNode(node, MarkerAnnotation.TYPE_NAME_PROPERTY);
                return false;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(ArrayType)
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(ExpressionStatement)
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(ParenthesizedExpression)
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(SimpleType)
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(SwitchCase)
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(ThrowStatement)
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(TypeLiteral)
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.MarkerAnnotation)
         */
public boolean visit( [[#variableb71e3480]] node) { // expression
  if ( !hasChildrenChanges(node)) {
    return doVisitUnchangedChildren(node);
  }
  // dont allow switching from case to default or back. New statements should be created.
  rewriteRequiredNode(node,  [[#variableb71e3480]]. [[#variableb71e3580]]);
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b71e3480]]
ArrayType 
12[[#b71e3480]]
ExpressionStatement 
13[[#b71e3480]]
ParenthesizedExpression 
14[[#b71e3480]]
SimpleType 
15[[#b71e3480]]
SwitchCase 
16[[#b71e3480]]
ThrowStatement 
17[[#b71e3480]]
TypeLiteral 
18[[#b71e3480]]
MarkerAnnotation 
21[[#b71e3580]]
COMPONENT_TYPE_PROPERTY 
22[[#b71e3580]]
EXPRESSION_PROPERTY 
23[[#b71e3580]]
EXPRESSION_PROPERTY 
24[[#b71e3580]]
NAME_PROPERTY 
25[[#b71e3580]]
EXPRESSION_PROPERTY 
26[[#b71e3580]]
EXPRESSION_PROPERTY 
27[[#b71e3580]]
TYPE_PROPERTY 
28[[#b71e3580]]
TYPE_NAME_PROPERTY