CloneSet366


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
42201.000class_body_declarations[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1421507
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/Scribe.java
2421465
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/Scribe2.java
Clone Instance
1
Line Count
42
Source Line
1507
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/Scribe.java

        private void resize() {
                System.arraycopy(this.edits, 0, (this.edits = new OptimizedReplaceEdit[this.editsIndex * 2]), 0, this.editsIndex);
        }

        public void space() {
                if ( !this.needSpace) return;
                this.lastNumberOfNewLines = 0;
                this.pendingSpace = true;
                this.column++;
                this.needSpace = false;
        }

        public String toString() {
                StringBuffer stringBuffer = new StringBuffer();
                stringBuffer.
                         append("(page width = " + this.pageWidth + ") - (tabChar = "); //$NON-NLS-1$//$NON-NLS-2$
                switch (this.tabChar) {
                        case DefaultCodeFormatterOptions.TAB:
                                 stringBuffer.append("TAB"); //$NON-NLS-1$
                                 break;
                        case DefaultCodeFormatterOptions.SPACE:
                                 stringBuffer.append("SPACE"); //$NON-NLS-1$
                                 break;
                        default:
                                 stringBuffer.append("MIXED"); //$NON-NLS-1$
                      }
                stringBuffer
                        .append(") - (tabSize = " + this.tabLength + ")") //$NON-NLS-1$//$NON-NLS-2$
                        .append(this.lineSeparator)
                        .append("(line = " + this.line + ") - (column = " + this.column + ") - (identationLevel = " + this.indentationLevel + ")")      //$NON-NLS-1$   //$NON-NLS-2$   //$NON-NLS-3$   //$NON-NLS-4$
                        .append(this.lineSeparator)
                        .append("(needSpace = " + this.needSpace + ") - (lastNumberOfNewLines = " + this.lastNumberOfNewLines + ") - (checkLineWrapping = " + this.checkLineWrapping + ")")     //$NON-NLS-1$   //$NON-NLS-2$   //$NON-NLS-3$   //$NON-NLS-4$
                        .append(this.lineSeparator)
                        .append("==================================================================================")   //$NON-NLS-1$
                .        append(this.lineSeparator);
                printRule(stringBuffer);
                return stringBuffer.toString();
        }

        public void unIndent() {
                this.indentationLevel -= this.indentationSize;
                this.numberOfIndentations--;
        }


Clone Instance
2
Line Count
42
Source Line
1465
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/Scribe2.java

        private void resize() {
                System.arraycopy(this.edits, 0, (this.edits = new OptimizedReplaceEdit[this.editsIndex * 2]), 0, this.editsIndex);
        }

        public void space() {
                if ( !this.needSpace) return;
                this.lastNumberOfNewLines = 0;
                this.pendingSpace = true;
                this.column++;
                this.needSpace = false;
        }

        public String toString() {
                StringBuffer stringBuffer = new StringBuffer();
                stringBuffer.
                         append("(page width = " + this.pageWidth + ") - (tabChar = "); //$NON-NLS-1$//$NON-NLS-2$
                switch (this.tabChar) {
                        case DefaultCodeFormatterOptions.TAB:
                                 stringBuffer.append("TAB"); //$NON-NLS-1$
                                 break;
                        case DefaultCodeFormatterOptions.SPACE:
                                 stringBuffer.append("SPACE"); //$NON-NLS-1$
                                 break;
                        default:
                                 stringBuffer.append("MIXED"); //$NON-NLS-1$
                      }
                stringBuffer
                        .append(") - (tabSize = " + this.tabLength + ")") //$NON-NLS-1$//$NON-NLS-2$
                        .append(this.lineSeparator)
                        .append("(line = " + this.line + ") - (column = " + this.column + ") - (identationLevel = " + this.indentationLevel + ")")      //$NON-NLS-1$   //$NON-NLS-2$   //$NON-NLS-3$   //$NON-NLS-4$
                        .append(this.lineSeparator)
                        .append("(needSpace = " + this.needSpace + ") - (lastNumberOfNewLines = " + this.lastNumberOfNewLines + ") - (checkLineWrapping = " + this.checkLineWrapping + ")")     //$NON-NLS-1$   //$NON-NLS-2$   //$NON-NLS-3$   //$NON-NLS-4$
                        .append(this.lineSeparator)
                        .append("==================================================================================")   //$NON-NLS-1$
                .        append(this.lineSeparator);
                printRule(stringBuffer);
                return stringBuffer.toString();
        }

        public void unIndent() {
                this.indentationLevel -= this.indentationSize;
                this.numberOfIndentations--;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private void resize() {
  System.arraycopy(this.edits, 0, (this.edits = new OptimizedReplaceEdit[this.editsIndex * 2]), 0, this.editsIndex);
}

public void space() {
  if ( !this.needSpace)
    return;
  this.lastNumberOfNewLines = 0;
  this.pendingSpace = true;
  this.column++;
  this.needSpace = false;
}

public String toString() {
  StringBuffer stringBuffer = new StringBuffer();
  stringBuffer.append("(page width = " + this.pageWidth + ") - (tabChar = "); //$NON-NLS-1$//$NON-NLS-2$
  switch (this.tabChar) {
    case DefaultCodeFormatterOptions.TAB:
      stringBuffer.append("TAB"); //$NON-NLS-1$
      break;
    case DefaultCodeFormatterOptions.SPACE:
      stringBuffer.append("SPACE"); //$NON-NLS-1$
      break;
    default:
      stringBuffer.append("MIXED"); //$NON-NLS-1$
  }
  stringBuffer.append(") - (tabSize = " + this.tabLength + ")") //$NON-NLS-1$//$NON-NLS-2$
  .append(this.lineSeparator).append("(line = " + this.line + ") - (column = " + this.column + ") - (identationLevel = " + this.indentationLevel + ")") //$NON-NLS-1$   //$NON-NLS-2$   //$NON-NLS-3$   //$NON-NLS-4$
  .append(this.lineSeparator).append("(needSpace = " + this.needSpace + ") - (lastNumberOfNewLines = " + this.lastNumberOfNewLines + ") - (checkLineWrapping = " + this.checkLineWrapping + ")") //$NON-NLS-1$   //$NON-NLS-2$   //$NON-NLS-3$   //$NON-NLS-4$
  .append(this.lineSeparator).append("==================================================================================") //$NON-NLS-1$
  .append(this.lineSeparator);
  printRule(stringBuffer);
  return stringBuffer.toString();
}

public void unIndent() {
  this.indentationLevel -= this.indentationSize;
  this.numberOfIndentations--;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None