CloneSet382


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
35201.000statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
135412
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Disassembler.java
235557
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Disassembler.java
Clone Instance
1
Line Count
35
Source Line
412
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Disassembler.java

                if (((accessFlags&  IModifierConstants.ACC_NATIVE) == 0) &&
                                   ((accessFlags&  IModifierConstants.ACC_ABSTRACT) == 0)) {
                        buffer.append(" {"); //$NON-NLS-1$
                        final char[] returnType = Signature.getReturnType(methodDescriptor);
                        if (returnType.length == 1) {
                                switch (returnType[0]) {
                                        case 'V':
                                                writeNewLine(buffer, lineSeparator, tabNumber);
                                                break;
                                        case 'I':
                                        case 'B':
                                        case 'J':
                                        case 'D':
                                        case 'F':
                                        case 'S':
                                        case 'C':
                                                writeNewLine(buffer, lineSeparator, tabNumber + 1);
                                                buffer.append("return 0;"); //$NON-NLS-1$
                                                writeNewLine(buffer, lineSeparator, tabNumber);
                                                break;
                                        default:
                                                // boolean
                                                writeNewLine(buffer, lineSeparator, tabNumber + 1);
                                                buffer.append("return false;"); //$NON-NLS-1$
                                                writeNewLine(buffer, lineSeparator, tabNumber);
                                      }
                        }
                        else   {
                                // object
                                writeNewLine(buffer, lineSeparator, tabNumber + 1);
                                buffer.append("return null;"); //$NON-NLS-1$
                                writeNewLine(buffer, lineSeparator, tabNumber);
                        }
                        buffer.append('}');
                }
                else   {
                        buffer.append(';');
                }


Clone Instance
2
Line Count
35
Source Line
557
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Disassembler.java

                        if (((accessFlags&  IModifierConstants.ACC_NATIVE) == 0) &&
                                           ((accessFlags&  IModifierConstants.ACC_ABSTRACT) == 0)) {
                                buffer.append(" {"); //$NON-NLS-1$
                                final char[] returnType = Signature.getReturnType(methodDescriptor);
                                if (returnType.length == 1) {
                                        switch (returnType[0]) {
                                                case 'V':
                                                        writeNewLine(buffer, lineSeparator, tabNumber);
                                                        break;
                                                case 'I':
                                                case 'B':
                                                case 'J':
                                                case 'D':
                                                case 'F':
                                                case 'S':
                                                case 'C':
                                                        writeNewLine(buffer, lineSeparator, tabNumber + 1);
                                                        buffer.append("return 0;"); //$NON-NLS-1$
                                                        writeNewLine(buffer, lineSeparator, tabNumber);
                                                        break;
                                                default:
                                                        // boolean
                                                        writeNewLine(buffer, lineSeparator, tabNumber + 1);
                                                        buffer.append("return false;"); //$NON-NLS-1$
                                                        writeNewLine(buffer, lineSeparator, tabNumber);
                                              }
                                }
                                else   {
                                        // object
                                        writeNewLine(buffer, lineSeparator, tabNumber + 1);
                                        buffer.append("return null;"); //$NON-NLS-1$
                                        writeNewLine(buffer, lineSeparator, tabNumber);
                                }
                                buffer.append('}');
                        }
                        else   {
                                buffer.append(';');
                        }


Clone AbstractionParameter Count: 0Parameter Bindings

if (((accessFlags&IModifierConstants.ACC_NATIVE) == 0) && ((accessFlags&IModifierConstants.ACC_ABSTRACT) == 0)) {
  buffer.append(" {"); //$NON-NLS-1$
  final char[] returnType = Signature.getReturnType(methodDescriptor);
  if (returnType.length == 1) {
    switch (returnType[0]) {
      case 'V':
        writeNewLine(buffer, lineSeparator, tabNumber);
        break;
      case 'I':
      case 'B':
      case 'J':
      case 'D':
      case 'F':
      case 'S':
      case 'C':
        writeNewLine(buffer, lineSeparator, tabNumber + 1);
        buffer.append("return 0;"); //$NON-NLS-1$
        writeNewLine(buffer, lineSeparator, tabNumber);
        break;
      default:
        // boolean
        writeNewLine(buffer, lineSeparator, tabNumber + 1);
        buffer.append("return false;"); //$NON-NLS-1$
        writeNewLine(buffer, lineSeparator, tabNumber);
    }
  }
  else {
    // object
    writeNewLine(buffer, lineSeparator, tabNumber + 1);
    buffer.append("return null;"); //$NON-NLS-1$
    writeNewLine(buffer, lineSeparator, tabNumber);
  }
  buffer.append('}');
}
else {
  buffer.append(';');
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None