Annotation Type NewObject
-
@Documented @Retention(RUNTIME) @Target({TYPE_USE,TYPE_PARAMETER}) @TargetLocations({EXPLICIT_LOWER_BOUND,EXPLICIT_UPPER_BOUND}) @SubtypeOf({GuardedBy.class,GuardSatisfied.class}) @DefaultFor(CONSTRUCTOR_RESULT) @QualifierForLiterals({STRING,PRIMITIVE}) public @interface NewObject
A type that represents a newly-constructed object. It can be treated as having any@
GuardedBy
type. Typically, it is only written on factory method return types.