mercredi 2 août 2017

Is there a viable alternative to guava's TypeToken in version 20 and earlier?

I am using guava to help with reflection on generics, and TypeToken.resolve() is like the magic sauce that makes everything easy. However, it is only available in guava versions that require Java version 8. For various reasons, it would be easier in our build environment to use Java 7. Is there an easy out, or do I just need to suck it up and ensure Java 8 support is everywhere?





Aucun commentaire:

Enregistrer un commentaire