We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f61308d commit a3004afCopy full SHA for a3004af
src/main/java/org/jenkinsci/remoting/util/DurationStyle.java
@@ -16,6 +16,7 @@
16
17
package org.jenkinsci.remoting.util;
18
19
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
20
import java.time.Duration;
21
import java.time.temporal.ChronoUnit;
22
import java.util.Locale;
@@ -253,6 +254,7 @@ public static Unit fromChronoUnit(ChronoUnit chronoUnit) {
253
254
throw new IllegalArgumentException("Unknown unit " + chronoUnit);
255
}
256
257
+ @SuppressFBWarnings(value = "IMPROPER_UNICODE", justification = "not security sensitive")
258
public static Unit fromSuffix(String suffix) {
259
for (Unit candidate : values()) {
260
if (candidate.suffix.equals(suffix.toLowerCase(Locale.ROOT))) {
0 commit comments