From 6d3ccc2cd1dd478bf9fb7f2cdd04be15eb6f1ce6 Mon Sep 17 00:00:00 2001 From: Jan Wielemaker Date: Fri, 7 Jun 2024 09:42:28 +0200 Subject: [PATCH] TEST: removed Garbo.java This file uses the deprecated ``finalize()`` method and does not seem to be used anywhere. --- src/test/java/CMakeLists.txt | 1 - src/test/java/org/jpl7/standalone/Garbo.java | 21 -------------------- 2 files changed, 22 deletions(-) delete mode 100644 src/test/java/org/jpl7/standalone/Garbo.java diff --git a/src/test/java/CMakeLists.txt b/src/test/java/CMakeLists.txt index 49b1d0ef..62eb5dbd 100644 --- a/src/test/java/CMakeLists.txt +++ b/src/test/java/CMakeLists.txt @@ -12,7 +12,6 @@ set(JPL_JAR ${CMAKE_BINARY_DIR}/packages/jpl/src/main/java/jpl.jar) set(TEST org/jpl7/standalone/SyntaxError.java org/jpl7/standalone/Masstest.java - org/jpl7/standalone/Garbo.java org/jpl7/standalone/FetchBigTree.java org/jpl7/standalone/Versions.java org/jpl7/standalone/CelsiusConverter.java diff --git a/src/test/java/org/jpl7/standalone/Garbo.java b/src/test/java/org/jpl7/standalone/Garbo.java deleted file mode 100644 index 7f9cd02f..00000000 --- a/src/test/java/org/jpl7/standalone/Garbo.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.jpl7.standalone; - -public class Garbo { - public static int created = 0; - public static int destroyed = 0; - // - public final int i; - - public Garbo() { - this.i = created++; - } - - protected void finalize() throws Throwable { - try { - destroyed++; - // System.out.println("gced["+i+"]"); - } finally { - super.finalize(); - } - } -}