From 403435e29675082c1b1538f1ecd91e2189aadeb9 Mon Sep 17 00:00:00 2001 From: kristenhaerum Date: Tue, 23 Jan 2024 14:56:16 +0100 Subject: [PATCH] Sonar trivia #deploy-tenor-search-service --- .../consumers/command/GetTenorTestdata.java | 2 +- .../apps/tenorsearchservice/consumers/dto/InfoType.java | 1 + .../apps/tenorsearchservice/consumers/dto/Kilde.java | 6 +++--- .../nav/testnav/apps/tenorsearchservice/domain/Lookups.java | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/consumers/command/GetTenorTestdata.java b/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/consumers/command/GetTenorTestdata.java index a2e8dbe8c55..9cdc41d3e2c 100644 --- a/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/consumers/command/GetTenorTestdata.java +++ b/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/consumers/command/GetTenorTestdata.java @@ -41,7 +41,7 @@ public Mono call() { log.info("Query-parameter: {}", query); var requestParams = Map.of( - "kilde", getKilde(kilde).getKilde(), + "kilde", getKilde(kilde).getTenorKilde(), "query", query, "alle", "*"); diff --git a/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/consumers/dto/InfoType.java b/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/consumers/dto/InfoType.java index 88c28c09237..1c38ab34e20 100644 --- a/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/consumers/dto/InfoType.java +++ b/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/consumers/dto/InfoType.java @@ -1,5 +1,6 @@ package no.nav.testnav.apps.tenorsearchservice.consumers.dto; +@SuppressWarnings("java:S115") public enum InfoType { IdenterKun, Noekkelinfo, diff --git a/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/consumers/dto/Kilde.java b/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/consumers/dto/Kilde.java index 0459d60696d..2dd7f055213 100644 --- a/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/consumers/dto/Kilde.java +++ b/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/consumers/dto/Kilde.java @@ -8,9 +8,9 @@ public enum Kilde { FREG("freg"), FORETAKSREGISTRET("brreg-er-fr"); - private final String kilde; + private final String tenorKilde; - Kilde(String kilde) { - this.kilde = kilde; + Kilde(String tenorKilde) { + this.tenorKilde = tenorKilde; } } diff --git a/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/domain/Lookups.java b/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/domain/Lookups.java index 2586bd2c3aa..a06f4026e49 100644 --- a/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/domain/Lookups.java +++ b/apps/tenor-search-service/src/main/java/no/nav/testnav/apps/tenorsearchservice/domain/Lookups.java @@ -5,6 +5,7 @@ import lombok.Getter; @Getter +@SuppressWarnings("java:S115") @AllArgsConstructor(access = AccessLevel.PRIVATE) public enum Lookups {