statful/statful-client-java

Remove Java 8 features

Closed this issue · 0 comments

Usage of Objects::nonNull should not be present

To make sure we are enforcing this Travis should be building with jdk7 instead of 8 since just setting the source and target is not reliable.

"Note: Merely setting the target option does not guarantee that your code actually runs on a JRE with the specified version. The pitfall is unintended usage of APIs that only exist in later JREs which would make your code fail at runtime with a linkage error. To avoid this issue, you can either configure the compiler's boot classpath to match the target JRE or use the Animal Sniffer Maven Plugin to verify your code doesn't use unintended APIs. In the same way, setting the source option does not guarantee that your code actually compiles on a JDK with the specified version. To compile your code with a specific JDK version, different than the one used to launch Maven, refer to the Compile Using A Different JDK example."

https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html