replaced Long instantiations with Autoboxing

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>