We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11351ac commit 6f7221cCopy full SHA for 6f7221c
src/main/java/no/nav/pto/veilarbportefolje/domene/Siste14aVedtakFilter.java
@@ -1,16 +1,18 @@
1
package no.nav.pto.veilarbportefolje.domene;
2
3
-import no.nav.pto.veilarbportefolje.sisteendring.SisteEndringsKategori;
+import lombok.extern.slf4j.Slf4j;
4
5
+@Slf4j
6
public enum Siste14aVedtakFilter {
7
HAR_14A_VEDTAK,
8
HAR_IKKE_14A_VEDTAK;
9
10
public static boolean contains(String value) {
11
try {
- SisteEndringsKategori.valueOf(value);
12
+ Siste14aVedtakFilter.valueOf(value);
13
return true;
- } catch (Exception e) {
14
+ } catch (IllegalArgumentException e) {
15
+ log.warn("Kunne ikke instanstiere enum - fikk ugyldig verdi.");
16
return false;
17
}
18
0 commit comments