Override getSupportedSouceVersion() to avoid warnings in Java7

This PR should resolve the issue #778.