removing unnecessary boxing and unboxing

Above Java 5 all boxing and unboxing are done automatically, it does not impact on performance, but get the code clean.