Skip to content

Commit

Permalink
Add suppressed warning for empty array.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Sep 24, 2024
1 parent da7f6d3 commit 2062aa2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,7 @@ public static ClassFileLocator ofRuntimeJar() throws IOException {
* {@inheritDoc}
*/
@MaybeNull
@SuppressFBWarnings(value = "PZLA_PREFER_ZERO_LENGTH_ARRAYS", justification = "Null value indicates failed lookup.")
protected byte[] doLocate(String path) throws IOException {
ZipEntry zipEntry = jarFile.getEntry(path);
if (zipEntry == null) {
Expand Down Expand Up @@ -1286,6 +1287,7 @@ public static ClassFileLocator of(File folder, ClassFileVersion classFileVersion
* {@inheritDoc}
*/
@MaybeNull
@SuppressFBWarnings(value = "PZLA_PREFER_ZERO_LENGTH_ARRAYS", justification = "Null value indicates failed lookup.")
protected byte[] doLocate(String path) throws IOException {
File file = new File(folder, path);
if (file.exists()) {
Expand Down

0 comments on commit 2062aa2

Please sign in to comment.