Clean up unqualified imports in PunchType

Cosmetic only — replace fully-qualified java.util.Optional/Arrays references
with imports. No behavior change. Recompiled and retested against the real
Visma API using the updated kumare-adapter-spring-visma-time jar; all 7
endpoints still return 200 with the expected data.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-12 18:06:35 -03:00
co-authored by Claude Sonnet 5
parent 568248083b
commit 97d411811c
@@ -4,6 +4,9 @@
*/ */
package io.kumare.iqr.mod.visma.action; package io.kumare.iqr.mod.visma.action;
import java.util.Arrays;
import java.util.Optional;
/** /**
* *
* @author Albino * @author Albino
@@ -30,11 +33,11 @@ public enum PunchType {
return this == EXIT; return this == EXIT;
} }
public static java.util.Optional<PunchType> fromDisplay(String s) { public static Optional<PunchType> fromDisplay(String s) {
if (s == null) { if (s == null) {
return java.util.Optional.empty(); return Optional.empty();
} }
return java.util.Arrays.stream(values()) return Arrays.stream(values())
.filter(p -> p.display.equalsIgnoreCase(s)) .filter(p -> p.display.equalsIgnoreCase(s))
.findFirst(); .findFirst();
} }