removes the java 1.7 only method
Merge pull request #270 from mosesn/1.6-compat

removes the java 1.7 only method