Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 2 | 0.979 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 292 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/MethodInfo.java |
2 | 3 | 300 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/MethodInfo.java |
| ||||
/** * Answer true if the method is a class initializer, false otherwise. * @return boolean */ public boolean isClinit() { char[] selector = getSelector(); return selector[0] == '<' && selector.length == 8; // Can only match <clinit> } |
| ||||
/** * Answer true if the method is a constructor, false otherwise. * @return boolean */ public boolean isConstructor() { char[] selector = getSelector(); return selector[0] == '<' && selector.length == 6; // Can only match <init> } |
| |||
/** * Answer true if the method is a class initializer, false otherwise. * @return boolean */ /** * Answer true if the method is a constructor, false otherwise. * @return boolean */ public boolean [[#variable59f22d80]]() { char[] selector = getSelector(); return selector[0] == '<' && selector.length == [[#variable59f22d20]]; // Can only match <clinit> // Can only match <init> } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#59f22d80]] | isClinit |
1 | 2 | [[#59f22d80]] | isConstructor |
2 | 1 | [[#59f22d20]] | 8 |
2 | 2 | [[#59f22d20]] | 6 |