From bc9d198655eaa020e30ed1fe1dd0d663b878b249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Van=C4=9Bk?= Date: Fri, 24 Nov 2023 12:46:07 +0100 Subject: [PATCH] ignore PMD false positives --- pom.xml | 4 ++-- .../db/postgres/embedded/DefaultPostgresBinaryResolver.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 84de872..5c4fb83 100644 --- a/pom.xml +++ b/pom.xml @@ -206,13 +206,13 @@ net.sourceforge.pmd pmd-core - 6.25.0 + 6.55.0 compile net.sourceforge.pmd pmd-java - 6.25.0 + 6.55.0 compile diff --git a/src/main/java/io/zonky/test/db/postgres/embedded/DefaultPostgresBinaryResolver.java b/src/main/java/io/zonky/test/db/postgres/embedded/DefaultPostgresBinaryResolver.java index b44efc7..b90fda6 100644 --- a/src/main/java/io/zonky/test/db/postgres/embedded/DefaultPostgresBinaryResolver.java +++ b/src/main/java/io/zonky/test/db/postgres/embedded/DefaultPostgresBinaryResolver.java @@ -63,8 +63,8 @@ public InputStream getPgBinary(String system, String machineHardware) throws IOE return resource.getInputStream(); } - if ((StringUtils.equals(system, "Darwin") && StringUtils.equals(machineHardware, "aarch64")) - || (StringUtils.equals(system, "Windows") && StringUtils.equals(architecture, "arm_64"))) { + if ((StringUtils.equals(system, "Darwin") && StringUtils.equals(machineHardware, "aarch64")) // NOPMD + || (StringUtils.equals(system, "Windows") && StringUtils.equals(architecture, "arm_64"))) { // NOPMD resource = findPgBinary(normalize(format("postgres-%s-%s.txz", system, "x86_64"))); if (resource != null) { logger.warn("No native binaries supporting ARM architecture found. " +