From e5fd2409c85141a020eb023977d12c2276776173 Mon Sep 17 00:00:00 2001 From: Ivan Frade Date: Fri, 9 Feb 2024 09:18:37 -0800 Subject: [PATCH] ChangedPathFilter: Suppress warning about backing array (errorprone) Errorprone warns about direct access to the underlying array. That is the intention of this code, and those ByteBuffers are created with ByteBuffer#wrap() so it should be safe. Change-Id: Ic8e8b288f08ac794cf7f09dfccfefcba0a4685bf --- .../jgit/internal/storage/commitgraph/ChangedPathFilter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/ChangedPathFilter.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/ChangedPathFilter.java index 53d921e8f8..ad3ce50181 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/ChangedPathFilter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/ChangedPathFilter.java @@ -87,6 +87,7 @@ public class ChangedPathFilter { * the paths that the filter must match * @return the corresponding filter */ + @SuppressWarnings("ByteBufferBackingArray") public static ChangedPathFilter fromPaths(Set paths) { if (paths.isEmpty()) { return EMPTY; -- 2.39.5