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 {