From 746b0badda86adfa458bf546df2f46c513d6d8e3 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 11 Nov 2022 20:08:38 +0000 Subject: [PATCH] Fix ErrorProne finding in WmTests Fixes: out/soong/.intermediates/frameworks/base/services/tests/wmtests/WmTests/android_common/errorprone/srcjars/frameworks/base/services/tests/wmtests/src/com/android/server/wm/LetterboxConfigurationPersisterTest.java:75: error: [JUnit4TearDownNotRun] tearDown() method will not be run; please add JUnit's @After annotation Bug: 258754271 Bug: 256019562 Test: m RUN_ERROR_PRONE=true javac-check lint-check Change-Id: Iafaf8d43984816e6d5434205d935cc1d8843a34d --- .../android/server/wm/LetterboxConfigurationPersisterTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/tests/wmtests/src/com/android/server/wm/LetterboxConfigurationPersisterTest.java b/services/tests/wmtests/src/com/android/server/wm/LetterboxConfigurationPersisterTest.java index 1246d1ee46e88..1be9de78cd27d 100644 --- a/services/tests/wmtests/src/com/android/server/wm/LetterboxConfigurationPersisterTest.java +++ b/services/tests/wmtests/src/com/android/server/wm/LetterboxConfigurationPersisterTest.java @@ -35,6 +35,7 @@ import com.android.internal.annotations.VisibleForTesting; import junit.framework.Assert; +import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -72,6 +73,7 @@ public class LetterboxConfigurationPersisterTest { mLetterboxConfigurationPersister.start(); } + @After public void tearDown() throws InterruptedException { deleteConfiguration(mLetterboxConfigurationPersister, mPersisterQueue); waitForCompletion(mPersisterQueue);