mirror of https://github.com/swig/swig
[java] Suppress System.runFinalization() removal warnings
These need to be addressed, but meanwhile it makes running the testsuite with OpenJDK 21 or newer unhelpfully noisy so suppressing it seems more helpful than not. Closes: #2819
This commit is contained in:
parent
8a19cb77ad
commit
ec56bff28d
|
@ -10,6 +10,8 @@ public class cpp11_std_unique_ptr_runme {
|
|||
}
|
||||
}
|
||||
|
||||
// Suppress warning about System.runFinalization() call.
|
||||
@SuppressWarnings({"deprecation", "removal"})
|
||||
private static void WaitForGC()
|
||||
{
|
||||
System.gc();
|
||||
|
|
|
@ -12,6 +12,8 @@ public class director_pass_by_value_runme {
|
|||
}
|
||||
}
|
||||
|
||||
// Suppress warning about System.runFinalization() call.
|
||||
@SuppressWarnings({"deprecation", "removal"})
|
||||
private static void WaitForGC() {
|
||||
System.gc();
|
||||
System.runFinalization();
|
||||
|
|
|
@ -13,6 +13,8 @@ public class java_director_runme {
|
|||
}
|
||||
}
|
||||
|
||||
// Suppress warning about System.runFinalization() call.
|
||||
@SuppressWarnings({"deprecation", "removal"})
|
||||
private static void WaitForGC()
|
||||
{
|
||||
System.gc();
|
||||
|
|
|
@ -13,6 +13,8 @@ public class li_boost_intrusive_ptr_runme {
|
|||
// Debugging flag
|
||||
public final static boolean debug = false;
|
||||
|
||||
// Suppress warning about System.runFinalization() call.
|
||||
@SuppressWarnings({"deprecation", "removal"})
|
||||
private static void WaitForGC()
|
||||
{
|
||||
System.gc();
|
||||
|
@ -23,6 +25,8 @@ public class li_boost_intrusive_ptr_runme {
|
|||
}
|
||||
}
|
||||
|
||||
// Suppress warning about System.runFinalization() call.
|
||||
@SuppressWarnings({"deprecation", "removal"})
|
||||
public static void main(String argv[])
|
||||
{
|
||||
if (debug)
|
||||
|
|
|
@ -13,6 +13,8 @@ public class li_boost_shared_ptr_runme {
|
|||
// Debugging flag
|
||||
public final static boolean debug = false;
|
||||
|
||||
// Suppress warning about System.runFinalization() call.
|
||||
@SuppressWarnings({"deprecation", "removal"})
|
||||
private static void WaitForGC()
|
||||
{
|
||||
System.gc();
|
||||
|
@ -23,6 +25,8 @@ public class li_boost_shared_ptr_runme {
|
|||
}
|
||||
}
|
||||
|
||||
// Suppress warning about System.runFinalization() call.
|
||||
@SuppressWarnings({"deprecation", "removal"})
|
||||
public static void main(String argv[])
|
||||
{
|
||||
if (debug)
|
||||
|
|
|
@ -10,6 +10,8 @@ public class li_std_auto_ptr_runme {
|
|||
}
|
||||
}
|
||||
|
||||
// Suppress warning about System.runFinalization() call.
|
||||
@SuppressWarnings({"deprecation", "removal"})
|
||||
private static void WaitForGC()
|
||||
{
|
||||
System.gc();
|
||||
|
|
Loading…
Reference in New Issue