CloneSet2907


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14220.967class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11489
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/env/NameEnvironmentAnswer.java
21364
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/NameLookup.java
Clone Instance
1
Line Count
14
Source Line
89
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/env/NameEnvironmentAnswer.java

        public boolean ignoreIfBetter() {
                return this.accessRestriction != null && this.accessRestriction.ignoreIfBetter();
        }

        /*
         * Returns whether this answer is better than the other awswer.
         * (accessible is better than discouraged, which is better than
         * non-accessible)
         */
        public boolean isBetter(NameEnvironmentAnswer otherAnswer) {
                if (otherAnswer == null) return true;
                if (this.accessRestriction == null) return true;
                return otherAnswer.accessRestriction != null &&
                           this.accessRestriction.getProblemId() < otherAnswer.accessRestriction.getProblemId();
        }


Clone Instance
2
Line Count
13
Source Line
64
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/NameLookup.java

                public boolean ignoreIfBetter() {
                        return this.restriction != null && this.restriction.ignoreIfBetter();
                }

                /*
                 * Returns whether this answer is better than the other awswer.
                 * (accessible is better than discouraged, which is better than
                 * non-accessible)
                 */
                public boolean isBetter(Answer otherAnswer) {
                        if (otherAnswer == null) return true;
                        if (this.restriction == null) return true;
                        return otherAnswer.restriction != null &&
                                   this.restriction.getProblemId() < otherAnswer.restriction.getProblemId();
                }


Clone AbstractionParameter Count: 2Parameter Bindings

public boolean ignoreIfBetter() {
  return this. [[#variablea06057a0]]!= null && this. [[#variablea06057a0]].ignoreIfBetter();
}

/*
         * Returns whether this answer is better than the other awswer.
         * (accessible is better than discouraged, which is better than
         * non-accessible)
         */
/*
                 * Returns whether this answer is better than the other awswer.
                 * (accessible is better than discouraged, which is better than
                 * non-accessible)
                 */
public boolean isBetter( [[#variablea0605720]] otherAnswer) {
  if (otherAnswer == null)
    return true;
  if (this. [[#variablea06057a0]]== null)
    return true;
  return otherAnswer. [[#variablea06057a0]]!= null && this. [[#variablea06057a0]].getProblemId() < otherAnswer. [[#variablea06057a0]].getProblemId();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a06057a0]]
accessRestriction 
12[[#a06057a0]]
restriction 
21[[#a0605720]]
NameEnvironmentAnswer 
22[[#a0605720]]
Answer