package npe;

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

public class CheckForNullField {
	@CheckForNull Object x;
	 public int getNonNullXDoNotReport() {
		if (x == null) 
			x = new Object(); 
		return x.hashCode();
	}
	 public Object getNonNullXDoNotReport2() {
		if (x != null) return x.hashCode();
		x = new Object(); 
		return x.hashCode();
	}
}

Add test case for @CheckForNull fields
Add test case for @CheckForNull fields


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