@Documented
@Retention(value=RUNTIME)
@Target(value={TYPE_USE,TYPE_PARAMETER})
@SubtypeOf(value=UnknownSignedness.class)
@DefaultFor(typeKinds={BYTE,INT,LONG,SHORT,FLOAT,DOUBLE},
types={java.lang.Byte.class,java.lang.Integer.class,java.lang.Long.class,java.lang.Short.class,java.lang.Float.class,java.lang.Double.class})
@UpperBoundFor(typeKinds={FLOAT,DOUBLE},
types={java.lang.Float.class,java.lang.Double.class})
public @interface Signed
The value is to be interpreted as signed. That is, if the most significant bit in the bitwise
representation is set, then the bits should be interpreted as a negative number.
- See the Checker Framework Manual:
- Signedness Checker