java version
DuwonPark opened this issue · 2 comments
Hello Sir.
In history
java version properties in pom.xml
8 => 12 => 8
and README.md
8 > 13 but still 8
Is any reason for this?
Hi,
Thanks for reaching out :-) !
Yes there is a reason. Actually there are 2 reasons.
Firstly: According to our Java driver team, Java 8 is the most used version so I wanted to make sure I support this version as well as the newest version of the JDK.
So to prevent myself from using any of the Java 9-13 features, I set the pom.xml to Java 8 so the compiler will tell me instantly if I use one of the new features.
Secondly: On my computer I'm up to date and I'm using the latest JDK 13 but most people still don't have it installed so if I put java 13 in the pom.xml, it would only compile and run for the people with JDK 13 installed.
By choosing to set java 8 in the pom.xml, it works for both.
But if you don't want to work with JDK 8 anymore and you are happy to use JDK 13, you can update the pom.xml and bump the java version to 13. It will work :-). That's all you have to do.
You will be able to clean a few things in the code like the inner class inferred types for example ;-). If you use IntelliJ they will show in grey as they are not mandatory anymore in JDK 13.
I hope you find this little project helpful.
Cheers,
Maxime.