Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 0 | 1.000 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 2713 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Signature.java |
2 | 3 | 62 | plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/RuntimeSignature.java |
| ||||
/** * Converts the given type signature to a readable string. The signature is expected to * be dot-based. * * <p> * For example: * <pre> * <code> * toString("[Ljava.lang.String;") -> "java.lang.String[]" * toString("I") -> "int" * toString("+QObject;") -> "? extends Object" * </code> * </pre> * </p> * <p> * Note: This method assumes that a type signature containing a <code>'$'</code> * is an inner type signature. While this is correct in most cases, someone could * define a non-inner type name containing a <code>'$'</code>. Handling this * correctly in all cases would have required resolving the signature, which * generally not feasible. * </p> * * @param signature the type signature * @return the string representation of the type * @exception IllegalArgumentException if the signature is not syntactically * correct */ public static String toString(String signature) throws IllegalArgumentException { return new String(toCharArray(signature.toCharArray())); } |
| ||||
public static String toString(String signature) throws IllegalArgumentException { return new String(toCharArray(signature.toCharArray())); } |
| |||
/** * Converts the given type signature to a readable string. The signature is expected to * be dot-based. * * <p> * For example: * <pre> * <code> * toString("[Ljava.lang.String;") -> "java.lang.String[]" * toString("I") -> "int" * toString("+QObject;") -> "? extends Object" * </code> * </pre> * </p> * <p> * Note: This method assumes that a type signature containing a <code>'$'</code> * is an inner type signature. While this is correct in most cases, someone could * define a non-inner type name containing a <code>'$'</code>. Handling this * correctly in all cases would have required resolving the signature, which * generally not feasible. * </p> * * @param signature the type signature * @return the string representation of the type * @exception IllegalArgumentException if the signature is not syntactically * correct */ public static String toString(String signature) throws IllegalArgumentException { return new String(toCharArray(signature.toCharArray())); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |