package nullnessAnnotations;

import edu.umd.cs.findbugs.annotations.CheckForNull;
import edu.umd.cs.findbugs.annotations.NonNull;

public class TestFieldAnnotations {
	@NonNull Object x;
	@CheckForNull Object y;
	
	void f() {
		x = y;
	}
	void g() {
		y = x;
	}
	void h() {
		if (x == null) System.out.println("Huh?");
	}

}

Test for nonnull annotations on fields
Test for nonnull annotations on fields


git-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@5358 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3
