Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc9d198

Browse files
committed
ignore PMD false positives
1 parent fa1b410 commit bc9d198

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,13 @@
206206
<dependency>
207207
<groupId>net.sourceforge.pmd</groupId>
208208
<artifactId>pmd-core</artifactId>
209-
<version>6.25.0</version>
209+
<version>6.55.0</version>
210210
<scope>compile</scope>
211211
</dependency>
212212
<dependency>
213213
<groupId>net.sourceforge.pmd</groupId>
214214
<artifactId>pmd-java</artifactId>
215-
<version>6.25.0</version>
215+
<version>6.55.0</version>
216216
<scope>compile</scope>
217217
</dependency>
218218
</dependencies>

src/main/java/io/zonky/test/db/postgres/embedded/DefaultPostgresBinaryResolver.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public InputStream getPgBinary(String system, String machineHardware) throws IOE
6363
return resource.getInputStream();
6464
}
6565

66-
if ((StringUtils.equals(system, "Darwin") && StringUtils.equals(machineHardware, "aarch64"))
67-
|| (StringUtils.equals(system, "Windows") && StringUtils.equals(architecture, "arm_64"))) {
66+
if ((StringUtils.equals(system, "Darwin") && StringUtils.equals(machineHardware, "aarch64")) // NOPMD
67+
|| (StringUtils.equals(system, "Windows") && StringUtils.equals(architecture, "arm_64"))) { // NOPMD
6868
resource = findPgBinary(normalize(format("postgres-%s-%s.txz", system, "x86_64")));
6969
if (resource != null) {
7070
logger.warn("No native binaries supporting ARM architecture found. " +

0 commit comments

Comments
 (0)