...
This noncompliant code example uses the System.runFinalizersOnExit()
method to simulate a garbage collection run (note that this method is deprecated because of thread-safety issues MET36MET15-J. Do not use deprecated or obsolete methods).
...