public class BadThingsToDoWithSignedBytes {
	public byte[] buf;

	boolean isHundred(int pos) {
		int b = buf[pos];
		return b == 100 || b == 200;
	}

	boolean isHundred2(int pos) {
		int b = buf[pos];
		switch (b) {
		case 100:
		case 200:
			return true;
		default:
			return false;
		}
	}

}

Add test case for bad things to do with signed bytes
Add test case for bad things to do with signed bytes


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