apply some global java 7/8 adjustments