CloneSet1518


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16210.975class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116141
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/LocalVariable.java
216189
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.java
Clone Instance
1
Line Count
16
Source Line
141
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/LocalVariable.java

        /**
         * @see ISourceReference
         */
        public String getSource() throws JavaModelException {
                IOpenable openable = this.parent.getOpenableParent();
                IBuffer buffer = openable.getBuffer();
                if (buffer == null) {
                        return null;
                }
                ISourceRange range = getSourceRange();
                int offset = range.getOffset();
                int length = range.getLength();
                if (offset == -1 || length == 0)  {
                        return null;
                }
                try {
                        return buffer.getText(offset, length);
                } catch (RuntimeException e) {
                        return null;
                  }
        }


Clone Instance
2
Line Count
16
Source Line
189
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.java

/**
 * @see ISourceReference
 */
public String getSource() throws JavaModelException {
        IOpenable openable = getOpenableParent();
        IBuffer buffer = openable.getBuffer();
        if (buffer == null) {
                return null;
        }
        ISourceRange range = getSourceRange();
        int offset = range.getOffset();
        int length = range.getLength();
        if (offset == -1 || length == 0)  {
                return null;
        }
        try {
                return buffer.getText(offset, length);
        } catch (RuntimeException e) {
                return null;
          }
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
 * @see ISourceReference
 */
/**
         * @see ISourceReference
         */
public String getSource() throws JavaModelException {
  IOpenable openable = [[#variable58f4e4e0]];
  IBuffer buffer = openable.getBuffer();
  if (buffer == null) {
    return null;
  }
  ISourceRange range = getSourceRange();
  int offset = range.getOffset();
  int length = range.getLength();
  if (offset == -1 || length == 0) {
    return null;
  }
  try {
    return buffer.getText(offset, length);
  }
  catch (RuntimeException e) {
    return null;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#58f4e4e0]]
getOpenableParent() 
12[[#58f4e4e0]]
this.parent.getOpenableParent()