Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
35 | 2 | 0 | 1.000 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 35 | 412 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/Disassembler.java |
2 | 35 | 557 | 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(';'); } |
| ||||
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(';'); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |