d/t/java: add --sun-misc-unsafe-memory-access=allow to suppress deprecation warning

This MR addresses 1128378.

Protobuf implementation in main relies on Unsafe calls. I have added a command line option to suppress the deprecation warning.

Testing:

  • Ran autopkgtests with Java 25 default:
$ autopkgtest --apt-pocket=proposed=src:java-common -U -B salsa/osmpbf/ -- lxd ubuntu-daily:resolute
...
autopkgtest [14:46:29]: test osmpbf-outline: -----------------------]
autopkgtest [14:46:30]: test osmpbf-outline:  - - - - - - - - - - results - - - - - - - - - -
osmpbf-outline       PASS
autopkgtest [14:46:30]: @@@@@@@@@@@@@@@@@@@@ summary
java                 PASS
osmpbf-outline       PASS

Merge request reports

Loading