From 5a6f236a8009eb3aa116845cf299bb7788338ef4 Mon Sep 17 00:00:00 2001 From: dev-mlb <19797865+dev-mlb@users.noreply.github.com> Date: Mon, 9 Sep 2024 15:02:56 -0400 Subject: [PATCH] errorprone :: ignore ByteBufferBackingArray warnings in BaseDataObjectTest for deprecated calls --- src/test/java/emissary/core/BaseDataObjectTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/emissary/core/BaseDataObjectTest.java b/src/test/java/emissary/core/BaseDataObjectTest.java index f42de51d05..96fc53d7cf 100755 --- a/src/test/java/emissary/core/BaseDataObjectTest.java +++ b/src/test/java/emissary/core/BaseDataObjectTest.java @@ -254,6 +254,7 @@ void testShortName() { } @Test + @SuppressWarnings("ByteBufferBackingArray") void testByteArrays() { this.b.setHeader("A fine header".getBytes()); this.b.setFooter("A good footer".getBytes()); @@ -263,6 +264,7 @@ void testByteArrays() { assertEquals("A good footer", new String(this.b.footer()), "Footer bytes"); assertEquals("alternate view", new String(this.b.getAlternateView("TESTVIEW")), "Alt view bytes"); + // remove @SuppressWarnings("ByteBufferBackingArray") when these deprecated calls are removed/updated final ByteBuffer hb = this.b.headerBuffer(); final ByteBuffer fb = this.b.footerBuffer(); final ByteBuffer db = this.b.dataBuffer();