Skip to content

Commit c92ddc5

Browse files
committed
Update spotbugs-maven-plugin to 4.9.6.0
1 parent f1e7861 commit c92ddc5

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
184184
<plugin>
185185
<groupId>com.github.spotbugs</groupId>
186186
<artifactId>spotbugs-maven-plugin</artifactId>
187-
<version>4.9.4.2</version>
187+
<version>4.9.6.0</version>
188188
<executions>
189189
<execution>
190190
<id>check</id>

src/main/java/org/fedoraproject/javapackages/validator/util/Common.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import org.apache.commons.compress.archivers.cpio.CpioArchiveEntry;
1010
import org.apache.commons.io.IOUtils;
1111

12+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
1213
import io.kojan.javadeptools.rpm.RpmArchiveInputStream;
1314
import io.kojan.javadeptools.rpm.RpmInfo;
1415
import io.kojan.javadeptools.rpm.RpmPackage;
@@ -21,6 +22,7 @@ public class Common {
2122
///
2223
/// @param entry The CPIO archive entry to resolve.
2324
/// @return The resolved file system path of the entry.
25+
@SuppressFBWarnings(value = {"DMI_HARDCODED_ABSOLUTE_FILENAME"})
2426
public static Path getEntryPath(CpioArchiveEntry entry) {
2527
return Path.of("/").resolve(Path.of("/").relativize(Path.of("/").resolve(Path.of(entry.getName()))));
2628
}

0 commit comments

Comments
 (0)