Class Nullness
- java.lang.Object
-
- io.openapiprocessor.jsonschema.support.Nullness
-
public class Nullness extends java.lang.Objectbased on org/checkerframework/checker/nullness/util/NullnessUtil.java
-
-
Constructor Summary
Constructors Constructor Description Nullness()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> @NonNull TnonNull(@Nullable T value)static <T> @NonNull Tnullable(@Nullable T value)suppress nullable warning for values that may be null.
-
-
-
Method Detail
-
nonNull
@EnsuresNonNull("#1") public static <T> @NonNull T nonNull(@Nullable T value)
-
nullable
@EnsuresNonNull("#1") public static <T> @NonNull T nullable(@Nullable T value)suppress nullable warning for values that may be null.- Type Parameters:
T- the type ofvalue- Parameters:
value- the value that may be null- Returns:
value
-
-