View Javadoc
1   import edu.umd.cs.findbugs.annotations.ExpectWarning;
2   
3   abstract class AbstractMissingHashCode {
4   	int x;
5   
6   	@Override
7   	public boolean equals(Object o) {
8   		if (!(o instanceof AbstractMissingHashCode))
9   			return false;
10  		return x == ((AbstractMissingHashCode) o).x;
11  	}
12  
13  	@ExpectWarning("HE")
14  	static class StillMissingHashCode extends AbstractMissingHashCode {
15  		int y;
16  	}
17  }