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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user