CloneSet1122


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14240.990class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11497
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightingReconciler.java
214116
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightingReconciler.java
Clone Instance
1
Line Count
14
Source Line
97
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightingReconciler.java

                private boolean visitLiteral(Expression node) {
                        fToken.update(node);
                        for (int i = 0,n = fJobSemanticHighlightings.length; i < n; i++) {
                                SemanticHighlighting semanticHighlighting = fJobSemanticHighlightings[i];
                                if (fJobHighlightings[i].isEnabled() && semanticHighlighting.consumesLiteral(fToken)) {
                                        int offset = node.getStartPosition();
                                        int length = node.getLength();
                                        if (offset > -1 && length > 0)
                                                addPosition(offset, length, fJobHighlightings[i]);
                                        break;
                                }
                        }
                        fToken.clear();
                        return false;
                }


Clone Instance
2
Line Count
14
Source Line
116
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightingReconciler.java

                /*
                 * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.SimpleName)
                 */
                public boolean visit(SimpleName node) {
                        fToken.update(node);
                        for (int i = 0,n = fJobSemanticHighlightings.length; i < n; i++) {
                                SemanticHighlighting semanticHighlighting = fJobSemanticHighlightings[i];
                                if (fJobHighlightings[i].isEnabled() && semanticHighlighting.consumes(fToken)) {
                                        int offset = node.getStartPosition();
                                        int length = node.getLength();
                                        if (offset > -1 && length > 0)
                                                addPosition(offset, length, fJobHighlightings[i]);
                                        break;
                                }
                        }
                        fToken.clear();
                        return false;
                }


Clone AbstractionParameter Count: 4Parameter Bindings

 [[#variableb5042640]]boolean  [[#variablea0b83700]]( [[#variable53cfc5a0]] node) {
  fToken.update(node);
  for (int i = 0, n = fJobSemanticHighlightings.length; i < n; i++) {
    SemanticHighlighting semanticHighlighting = fJobSemanticHighlightings[i];
    if (fJobHighlightings[i].isEnabled() && semanticHighlighting. [[#variableba499ea0]](fToken)) {
      int offset = node.getStartPosition();
      int length = node.getLength();
      if (offset > -1 && length > 0)
        addPosition(offset, length, fJobHighlightings[i]);
      break;
    }
  }
  fToken.clear();
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b5042640]]
private 
12[[#b5042640]]
/*
 * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.SimpleName)
 */
public 
21[[#a0b83700]]
visitLiteral 
22[[#a0b83700]]
visit 
31[[#53cfc5a0]]
Expression 
32[[#53cfc5a0]]
SimpleName 
41[[#ba499ea0]]
consumesLiteral 
42[[#ba499ea0]]
consumes