revert code grammar to java 6