java: Fix read_opc_u2() signedness issues

Signed-off-by: Pekka Enberg <penberg@iki.fi>