fix java1.6 compiler error