/** * Binds the supplied annotation to the supplied fixed value. * * @param type The type of the annotation being bound. * @param value The value to bind to this annotation. * @param <T> The annotation type. * @return A new builder for an advice that considers the supplied annotation type during binding. */ @SuppressWarnings("unchecked") public <T extends Annotation> WithCustomMapping bindSerialized(Class<T> type, Serializable value) { return bindSerialized(type, value, (Class<Serializable>) value.getClass()); }