CloneSet3618


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10220.989class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110150
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/EvaluationResult.java
210177
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/EvaluationResult.java
Clone Instance
1
Line Count
10
Source Line
150
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/EvaluationResult.java

/**
 * Returns whether there are errors in the code snippet or the global variable definition.
 */
public boolean hasErrors() {
        if (this.problems == null) {
                return false;
        }
        else   {
                for (int i = 0; i < this.problems.length; i++) {
                        if (this.problems[i].isError()) {
                                return true;
                        }
                }
                return false;
        }
}


Clone Instance
2
Line Count
10
Source Line
177
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/EvaluationResult.java

/**
 * Returns whether there are warnings in the code snippet or the global variable definition.
 */
public boolean hasWarnings() {
        if (this.problems == null) {
                return false;
        }
        else   {
                for (int i = 0; i < this.problems.length; i++) {
                        if (this.problems[i].isWarning()) {
                                return true;
                        }
                }
                return false;
        }
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * Returns whether there are errors in the code snippet or the global variable definition.
 */
/**
 * Returns whether there are warnings in the code snippet or the global variable definition.
 */
public boolean  [[#variable76c35a00]]() {
  if (this.problems == null) {
    return false;
  }
  else {
    for (int i = 0; i < this.problems.length; i++) {
      if (this.problems[i]. [[#variable76c358e0]]()) {
        return true;
      }
    }
    return false;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#76c35a00]]
hasErrors 
12[[#76c35a00]]
hasWarnings 
21[[#76c358e0]]
isError 
22[[#76c358e0]]
isWarning