Skip to content

Commit

Permalink
Mute the spotbugs issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlatombe committed May 13, 2024
1 parent f61308d commit a3004af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/jenkinsci/remoting/util/DurationStyle.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package org.jenkinsci.remoting.util;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.Locale;
Expand Down Expand Up @@ -253,6 +254,7 @@ public static Unit fromChronoUnit(ChronoUnit chronoUnit) {
throw new IllegalArgumentException("Unknown unit " + chronoUnit);
}

@SuppressFBWarnings(value = "IMPROPER_UNICODE", justification = "not security sensitive")
public static Unit fromSuffix(String suffix) {
for (Unit candidate : values()) {
if (candidate.suffix.equals(suffix.toLowerCase(Locale.ROOT))) {
Expand Down

0 comments on commit a3004af

Please sign in to comment.