Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.weld.annotated.slim.unbacked;
 
 import java.util.Set;
 
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 class UnbackedAnnotatedParameter<X> extends UnbackedAnnotated implements AnnotatedParameter<X>, Serializable {
    private final int position;
    private final AnnotatedCallable<X> declaringCallable;
    public UnbackedAnnotatedParameter(Type baseTypeSet<TypetypeClosureSet<Annotationannotationsint positionAnnotatedCallable<X> declaringCallable) {
        super(baseTypetypeClosureannotations);
        this. = position;
        this. = declaringCallable;
    }
    public int getPosition() {
        return ;
    }
    public AnnotatedCallable<X> getDeclaringCallable() {
        return ;
    }
    @Override
    public String toString() {
        return Formats.formatAnnotatedParameter(this);
    }
    // Serialization
    private Object writeReplace() throws ObjectStreamException {
        return new SerializationProxy<X>(this);
    }
    private void readObject(ObjectInputStream streamthrows InvalidObjectException {
        throw ..proxyRequired();
    }
    private static class SerializationProxy<X> implements Serializable {
        private static final long serialVersionUID = 8979519845687646272L;
        private final AnnotatedCallable<X> callable;
        private final int position;
        public SerializationProxy(UnbackedAnnotatedParameter<X> parameter) {
            this. = parameter.getDeclaringCallable();
            this. = parameter.getPosition();
        }
        private Object readResolve() throws ObjectStreamException {
            return .getParameters().get();
        }
    }
New to GrepCode? Check out our FAQ X