Fix java compilation
Update the generated code to be able to compile and build the java project.
I test this PR using maven:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.252 s
[INFO] Finished at: 2021-05-09T23:09:08+02:00
[INFO] ------------------------------------------------------------------------
Edited by Damien Lacoste