Keep compatibility with Java 7 and 8
Merge pull request #4 from yskkin/fix/java-version

Keep compatibility with Java 7 and 8