From 0292d384f84f55a78312ae0132f700caec245315 Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Mon, 15 Jun 2020 18:23:12 -0700 Subject: [PATCH] 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 --- .../java/src/main/java/org/tensorflow/lite/Interpreter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tensorflow/lite/java/src/main/java/org/tensorflow/lite/Interpreter.java b/tensorflow/lite/java/src/main/java/org/tensorflow/lite/Interpreter.java index 0f8b7b5c2f2..7c9c5644f47 100644 --- a/tensorflow/lite/java/src/main/java/org/tensorflow/lite/Interpreter.java +++ b/tensorflow/lite/java/src/main/java/org/tensorflow/lite/Interpreter.java @@ -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 protected void finalize() throws Throwable { try {