java: use 'Byte.valueOf' instead of 'new Byte'

Change-Id: I5a9bc87c38cea2d5e671ed779eaedab92e98ac0d
java: use 'Integer.valueOf' instead of 'new Integer'

Change-Id: Ia4a847b58862e4f25d64a862f504b629fa336c63
java: use 'Long.valueOf' instead of 'new Long'

Change-Id: Idba02391126e5046f77b26b134a76424f7931e0d
java: use 'Short.valueOf' instead of 'new Short'

Change-Id: I2f0156899b75dd8a3a5600be887b6ac9b6fbdec0
java: no need to call toString() on a String object

Change-Id: I05fa4bf198b3d77b1217eb65b5a1c79915016522
remove unnecessary catch block

Change-Id: Id33384cee3444924e7e8de7d496f117f120b1876
java: methods in interfaces are implicitly public

Change-Id: I543fe5b8890668f60d6528a2a7ae6d099d5b4945
java: no need to explicitly code default constructors

the compiler will do it automatically

Change-Id: I6ee57c3500a4c1c1b96919a69b569686e6c0ead9
java: reduce the depth of some deeply nested if blocks

Change-Id: I3c0c7f08d4d8ea594e72fc0d9b93d085d4ab4bf5
java: replace 'new Integer' with 'Integer.valueOf'

Change-Id: I85aceccae2ba28d9ef2cbf9fb220c5072e5ed3cf
java: replace 'new Short' with 'Short.valueOf'

Change-Id: Ic0e3aca1c1459ab938e01f43c0212859d85075e8
java: always use braces for while loops

Change-Id: Iff896b0cace8b8305528b3b0140004ea856169ce
java: close ResultSet after use

Change-Id: I5b2903cf2928e19be203d80243c2ac2e75be28cb