CloneSet2128


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10210.996class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110209
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/Factory.java
29230
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/Factory.java
Clone Instance
1
Line Count
10
Source Line
209
Source File
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);
    }


Clone Instance
2
Line Count
9
Source Line
230
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/Factory.java

        /**
         * 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);
    }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#565803c0]]
AnnotationElementDeclarationImpl 
12[[#565803c0]]
ASTBasedAnnotationElementDeclarationImpl