From 97d411811c9a77d746387e78b020f5fe82c614bd Mon Sep 17 00:00:00 2001 From: Decano989 Date: Wed, 12 Aug 2026 18:06:35 -0300 Subject: [PATCH] Clean up unqualified imports in PunchType MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../java/io/kumare/iqr/mod/visma/action/PunchType.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/kumare/iqr/mod/visma/action/PunchType.java b/src/main/java/io/kumare/iqr/mod/visma/action/PunchType.java index 35b28e7..bad177f 100644 --- a/src/main/java/io/kumare/iqr/mod/visma/action/PunchType.java +++ b/src/main/java/io/kumare/iqr/mod/visma/action/PunchType.java @@ -4,6 +4,9 @@ */ package io.kumare.iqr.mod.visma.action; +import java.util.Arrays; +import java.util.Optional; + /** * * @author Albino @@ -30,11 +33,11 @@ public enum PunchType { return this == EXIT; } - public static java.util.Optional fromDisplay(String s) { + public static Optional fromDisplay(String s) { 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)) .findFirst(); }