Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.weld.annotated.slim.unbacked;
 
 import static org.jboss.weld.util.collections.WeldCollections.immutableList;
 
import  edu.umd.cs.findbugs.annotations.SuppressWarnings;
@SuppressWarnings(value = { "SE_BAD_FIELD""SE_NO_SUITABLE_CONSTRUCTOR""SE_NO_SERIALVERSIONID" }, justification = "False positive from FindBugs - serialization is handled by SerializationProxy.")
    public static <X> AnnotatedConstructor<X> of(AnnotatedConstructor<X> originalConstructorUnbackedAnnotatedType<X> declaringTypeSharedObjectCache cache) {
        return new UnbackedAnnotatedConstructor<X>(originalConstructor.getBaseType(), originalConstructor.getTypeClosure(), originalConstructor.getAnnotations(), declaringType,
                originalConstructor.getParameters(), originalConstructor.getJavaMember(), cache);
    }
    private final Constructor<X> constructor;
    private final List<AnnotatedParameter<X>> parameters;
    public UnbackedAnnotatedConstructor(Type baseTypeSet<TypetypeClosureSet<AnnotationannotationsUnbackedAnnotatedType<X> declaringType,
            List<AnnotatedParameter<X>> originalParametersConstructor<X> constructorSharedObjectCache cache) {
        super(baseTypetypeClosurecache.getSharedSet(annotations), declaringType);
        this. = constructor;
        List<AnnotatedParameter<X>> parameters = new ArrayList<AnnotatedParameter<X>>(originalParameters.size());
        for (AnnotatedParameter<X> originalParameter : originalParameters) {
            parameters.add(new UnbackedAnnotatedParameter<X>(originalParameter.getBaseType(), originalParameter.getTypeClosure(), cache.getSharedSet(originalParameter.getAnnotations()),
                    originalParameter.getPosition(), this));
        }
        this. = immutableList(parameters);
    }
    public Constructor<X> getJavaMember() {
        return ;
    }
    public List<AnnotatedParameter<X>> getParameters() {
        return ;
    }
    @Override
    public String toString() {
        return Formats.formatAnnotatedConstructor(this);
    }
    // Serialization
    private Object writeReplace() throws ObjectStreamException {
        return new UnbackedMemberIdentifier<X>(getDeclaringType(), AnnotatedTypes.createConstructorId(getAnnotations(), getParameters()));
    }
    private void readObject(ObjectInputStream streamthrows InvalidObjectException {
        throw ..proxyRequired();
    }
New to GrepCode? Check out our FAQ X