Fixed warnings about missing deprecation annotation and variable name in one test failing on Java greater version 9. This commit is simpler then 5847ee4d97
5847ee4d97