Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 4 | 0.967 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 270 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java |
2 | 8 | 280 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java |
| ||||
private final static PreviewSnippet ANNOTATION_DECL_PREVIEW = new PreviewSnippet( CodeFormatter.K_CLASS_BODY_DECLARATIONS, "@interface MyAnnotation { String value(); }\n@interface OtherAnnotation { }\n" //$NON-NLS-1$ ); private final static PreviewSnippet ANNOTATION_MODIFIER_PREVIEW = new PreviewSnippet( CodeFormatter.K_CLASS_BODY_DECLARATIONS, "@Annot(x=23, y=-3)\npublic class A { }\n" //$NON-NLS-1$ ); |
| ||||
private final static PreviewSnippet ENUM_PREVIEW = new PreviewSnippet( CodeFormatter.K_CLASS_BODY_DECLARATIONS, "enum MyEnum { GREEN(0, 1), RED() {\nvoid process() {}\n}\n}" //$NON-NLS-1$ ); private final static PreviewSnippet PARAMETERIZED_TYPE_REFERENCE_PREVIEW = new PreviewSnippet( CodeFormatter.K_CLASS_BODY_DECLARATIONS, "Map<String, Element> map=\n new HashMap<String, Element>();" //$NON-NLS-1$ ); |
| |||
private final static PreviewSnippet [[#variable77409ce0]]= new PreviewSnippet(CodeFormatter.K_CLASS_BODY_DECLARATIONS, [[#variable77409680]]); private final static PreviewSnippet [[#variable77409600]]= new PreviewSnippet(CodeFormatter.K_CLASS_BODY_DECLARATIONS, [[#variable76cd75a0]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#77409ce0]] | ENUM_PREVIEW |
1 | 2 | [[#77409ce0]] | ANNOTATION_DECL_PREVIEW |
2 | 1 | [[#77409680]] | "enum MyEnum { GREEN(0, 1), RED() {\nvoid process() {}\n}\n}" //$NON-NLS-1$ |
2 | 2 | [[#77409680]] | "@interface MyAnnotation { String value(); }\n@interface OtherAnnotation { }\n" //$NON-NLS-1$ |
3 | 1 | [[#77409600]] | PARAMETERIZED_TYPE_REFERENCE_PREVIEW |
3 | 2 | [[#77409600]] | ANNOTATION_MODIFIER_PREVIEW |
4 | 1 | [[#76cd75a0]] | "Map<String, Element> map=\n new HashMap<String, Element>();" //$NON-NLS-1$ |
4 | 2 | [[#76cd75a0]] | "@Annot(x=23, y=-3)\npublic class A { }\n" //$NON-NLS-1$ |