Allow metrics-reporter-config to compile under java 8.

This allows reporter-config to be compiled under java 8. Fairly uncontroversial but I thought it would be best to create a pull request.