Suppress a deprecation warning for Object.finalize

The API is deprecated starting in JDK 9:
https://bugs.openjdk.java.net/browse/JDK-8165641

PiperOrigin-RevId: 316587198
Change-Id: Icafed5879fd50973e955522a176aa11a8773090b
This commit is contained in:
Liam Miller-Cushon 2020-06-15 18:23:12 -07:00 committed by TensorFlower Gardener
parent 2f45ee867d
commit 0292d384f8
1 changed files with 2 additions and 0 deletions

View File

@ -507,6 +507,8 @@ public final class Interpreter implements AutoCloseable {
} }
} }
// for Object.finalize, see https://bugs.openjdk.java.net/browse/JDK-8165641
@SuppressWarnings("deprecation")
@Override @Override
protected void finalize() throws Throwable { protected void finalize() throws Throwable {
try { try {