CloneSet2382


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111383
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LinkedCorrectionProposal.java
211640
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ModifierCorrectionSubProcessor.java
Clone Instance
1
Line Count
11
Source Line
383
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LinkedCorrectionProposal.java

                /*
                 * Returns the registered position for a given offset.
                 */
                private Position getCurrentPosition(int offset) {
                        if (fLinkedPositionGroup != null) {
                                LinkedPosition[] positions = fLinkedPositionGroup.getPositions();
                                for (int i = 0; i < positions.length; i++) {
                                        Position position = positions[i];
                                        if (position.overlapsWith(offset, 0)) {
                                                return position;
                                        }
                                }
                        }
                        return null;
                }


Clone Instance
2
Line Count
11
Source Line
640
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ModifierCorrectionSubProcessor.java

                private Position getCurrentPosition(int offset) {
                        if (fLinkedPositionGroup != null) {
                                LinkedPosition[] positions = fLinkedPositionGroup.getPositions();
                                for (int i = 0; i < positions.length; i++) {
                                        Position position = positions[i];
                                        if (position.overlapsWith(offset, 0)) {
                                                return position;
                                        }
                                }
                        }
                        return null;
                }


Clone AbstractionParameter Count: 0Parameter Bindings

/*
                 * Returns the registered position for a given offset.
                 */
private Position getCurrentPosition(int offset) {
  if (fLinkedPositionGroup != null) {
    LinkedPosition[] positions = fLinkedPositionGroup.getPositions();
    for (int i = 0; i < positions.length; i++) {
      Position position = positions[i];
      if (position.overlapsWith(offset, 0)) {
        return position;
      }
    }
  }
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None