resolve compiler warnings (for JDK 1.6 baseline)