Fixed syntax errors with Java 1.6