Class NullnessExampleWithWarnings

java.lang.Object
  extended by NullnessExampleWithWarnings

public class NullnessExampleWithWarnings
extends Object

This class illustrates an incorrect use of the @NonNull type annotation. The class doesn't do anything -- it is merely meant to be compiled. Compilation will produce warning messages.

Also see NullnessExample, an example of correct use of the @NonNull type annotation. See the Nullness checker documentation for larger examples of annotated code.


Constructor Summary
Constructor and Description
NullnessExampleWithWarnings()
           
 
Method Summary
Modifier and Type Method and Description
 void example()
           
 String exampleGenerics()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullnessExampleWithWarnings

public NullnessExampleWithWarnings()
Method Detail

example

public void example()

exampleGenerics

@NonNull
public String exampleGenerics()