Class NullnessExample
java.lang.Object
NullnessExample
public class NullnessExample
extends Object
This class illustrates a correct use of the @NonNull type annotation.
The class doesn't do anything -- it is merely meant to be compiled.
Compilation will produce no warning messages.
Also see NullnessExampleWithWarnings
, an example of incorrect use
of the @NonNull type annotation. See the Nullness checker documentation
for larger examples of annotated code.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullnessExample
public NullnessExample()
example
public void example()
exampleGenerics
@NonNull
public String exampleGenerics()