Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 1 | 0.996 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 209 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/Factory.java |
2 | 9 | 230 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/Factory.java |
| ||||
public static AnnotationValue createDefaultValue( Object domValue, AnnotationElementDeclarationImpl decl, BaseProcessorEnv env ) { if (domValue == null) return null; final Object converted = convertDOMValueToMirrorValue( domValue, null, decl, decl, env, decl.getReturnType()); return createAnnotationValueFromDOMValue(converted, null, -1, decl, env); } |
| ||||
/** * Build an {@link AnnotationValue} object based on the given dom value. * @param domValue default value according to the DOM API. * @param decl the element declaration whose default value is <code>domValue</code> * if domValue is an annotation, then this is the declaration it annotated. * In all other case, this parameter is ignored. * @param env * @return an annotation value */ public static AnnotationValue createDefaultValue(Object domValue, ASTBasedAnnotationElementDeclarationImpl decl, BaseProcessorEnv env) { if (domValue == null) return null; final Object converted = convertDOMValueToMirrorValue( domValue, null, decl, decl, env, decl.getReturnType()); return createAnnotationValueFromDOMValue(converted, null, -1, decl, env); } |
| |||
/** * Build an {@link AnnotationValue} object based on the given dom value. * @param domValue default value according to the DOM API. * @param decl the element declaration whose default value is <code>domValue</code> * if domValue is an annotation, then this is the declaration it annotated. * In all other case, this parameter is ignored. * @param env * @return an annotation value */ public static AnnotationValue createDefaultValue(Object domValue, [[#variable565803c0]] decl, BaseProcessorEnv env) { if (domValue == null) return null; final Object converted = convertDOMValueToMirrorValue(domValue, null, decl, decl, env, decl.getReturnType()); return createAnnotationValueFromDOMValue(converted, null, -1, decl, env); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#565803c0]] | AnnotationElementDeclarationImpl |
1 | 2 | [[#565803c0]] | ASTBasedAnnotationElementDeclarationImpl |