1 package at.rseiler.spbee.core.annotation;
2
3 import java.lang.annotation.Retention;
4 import java.lang.annotation.RetentionPolicy;
5 import java.lang.annotation.Target;
6
7 import static java.lang.annotation.ElementType.FIELD;
8 import static java.lang.annotation.ElementType.METHOD;
9
10 /**
11 * Indicates that the annotated method should return null instead of throwing a
12 * {@link at.rseiler.spbee.core.exception.ObjectDoesNotExist} exception.
13 *
14 * @author Reinhard Seiler {@literal <rseiler.developer@gmail.com>}
15 */
16 @Target(value = {METHOD, FIELD})
17 @Retention(RetentionPolicy.SOURCE)
18 public @interface ReturnNull {
19 }