Skip to content

Commit

Permalink
ignore PMD false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
tomix26 committed Nov 24, 2023
1 parent fa1b410 commit bc9d198
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-core</artifactId>
<version>6.25.0</version>
<version>6.55.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>6.25.0</version>
<version>6.55.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. " +
Expand Down

0 comments on commit bc9d198

Please sign in to comment.