From 84e21f2fddf177c8e754e1bc0cbd0a8560088026 Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Tue, 2 Apr 2024 16:27:31 -0700 Subject: [PATCH] Suppress expected deprecation warnings for test cases using test-specific code --- core/src/test/java/com/riiablo/mpq_bytebuf/MpqTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/test/java/com/riiablo/mpq_bytebuf/MpqTest.java b/core/src/test/java/com/riiablo/mpq_bytebuf/MpqTest.java index ca081814..454f0ed3 100644 --- a/core/src/test/java/com/riiablo/mpq_bytebuf/MpqTest.java +++ b/core/src/test/java/com/riiablo/mpq_bytebuf/MpqTest.java @@ -199,6 +199,7 @@ class MpqTest extends RiiabloTest { "data\\global\\tiles\\ACT1\\TOWN\\townN1.ds1", "data\\local\\font\\LATIN\\font42.DC6", }) + @SuppressWarnings("deprecation") void contains(String filename) { assertTrue(mpq.contains(filename, DEFAULT_LOCALE)); } @@ -223,6 +224,7 @@ class MpqTest extends RiiabloTest { "data\\global\\CHARS\\PA\\HD\\PAHDBHMGH1HS.dcc", "data\\global\\CHARS\\SO\\SH\\SOSHBSHKKHTH.dcc", }) + @SuppressWarnings("deprecation") void contains(String filename) { assertTrue(mpq.contains(filename, DEFAULT_LOCALE)); }