Fixed compiler warnings from Java6 days.