Annotation Interface NoAutoboxing


@Target(METHOD) @Retention(SOURCE) public @interface NoAutoboxing

Indicates that a Refaster rule should not allow autoboxing or autounboxing when typechecking a @BeforeTemplate match (its parameters, placeholder expressions, and return type against the matched expression).

This does not prevent an @AfterTemplate from changing the expression's type between boxed and primitive. For example, a rule whose @BeforeTemplate returns Boolean (matching a Boolean expression without boxing or unboxing) and whose @AfterTemplate returns boolean will still replace a boxed expression with a primitive one.

Author:
lowasser@google.com (Louis Wasserman)