[Java]: Minor tidy up of PR for DirectBuffer bounds check and non-native byte order testing.