CloneSet3488


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9220.979class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1936
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/TrackedNodePosition.java
2950
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/TrackedNodePosition.java
Clone Instance
1
Line Count
9
Source Line
36
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/TrackedNodePosition.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.corext.dom.ITrackedNodePosition#getStartPosition()
         */
        public int getStartPosition() {
                if (this.group.isEmpty()) {
                        return this.node.getStartPosition();
                }
                IRegion coverage = TextEdit.getCoverage(this.group.getTextEdits());
                if (coverage == null) {
                        return this.node.getStartPosition();
                }
                return coverage.getOffset();
        }


Clone Instance
2
Line Count
9
Source Line
50
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/TrackedNodePosition.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.internal.corext.dom.ITrackedNodePosition#getLength()
         */
        public int getLength() {
                if (this.group.isEmpty()) {
                        return this.node.getLength();
                }
                IRegion coverage = TextEdit.getCoverage(this.group.getTextEdits());
                if (coverage == null) {
                        return this.node.getLength();
                }
                return coverage.getLength();
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/* (non-Javadoc)
         * @see org.eclipse.jdt.internal.corext.dom.ITrackedNodePosition#getStartPosition()
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.internal.corext.dom.ITrackedNodePosition#getLength()
         */
public int  [[#variableba447aa0]]() {
  if (this.group.isEmpty()) {
    return this.node. [[#variableba447aa0]]();
  }
  IRegion coverage = TextEdit.getCoverage(this.group.getTextEdits());
  if (coverage == null) {
    return this.node. [[#variableba447aa0]]();
  }
  return coverage. [[#variableba447a40]]();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#ba447aa0]]
getStartPosition 
12[[#ba447aa0]]
getLength 
21[[#ba447a40]]
getOffset 
22[[#ba447a40]]
getLength