jdk 1.6, fixed some compiler warnings