Skip to content

Commit 6449112

Browse files
Feature/sonar (#209)
* Update JdbcDoclet.java * Update Kodeverk.java * Update FeilmeldingDoclet.java * Update KonfigverdiDoclet.java * Update SigrunRestClient.java * Update WebServiceDoclet.java
1 parent 032ccc1 commit 6449112

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

felles/db/src/main/java/no/nav/vedtak/felles/db/doc/JdbcDoclet.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public boolean run(DocletEnvironment environment) {
9393
return true;
9494
} catch (SQLException | Error | RuntimeException e) {
9595
reporter.print(Kind.ERROR, e.getMessage());
96-
e.printStackTrace();
96+
e.printStackTrace(); // NOSONAR
9797
return false;
9898
}
9999
}

felles/db/src/main/java/no/nav/vedtak/felles/db/doc/model/Kodeverk.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
public class Kodeverk implements MarkupOutput {
1616

1717
public static final String KODEVERK_PK_SPEC = System.getProperty("doc.plugin.jdbc.kodeverk.pk", "KODE");
18-
public static final Set<String> KODEVERK_UNNTAK_KOLONNER = toList(
18+
protected static final Set<String> KODEVERK_UNNTAK_KOLONNER = toList(
1919
System.getProperty("doc.plugin.jdbc.kodeverk.kolonne.unntak",
2020
"ENDRET_AV, OPPRETTET_AV, ENDRET_TID, OPPRETTET_TID"));
2121

felles/feil/src/main/java/no/nav/vedtak/feil/doc/FeilmeldingDoclet.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public boolean run(DocletEnvironment docEnv) {
6161
return true;
6262
} catch (Error | RuntimeException e) {
6363
reporter.print(Kind.ERROR, e.getMessage());
64-
e.printStackTrace();
64+
e.printStackTrace(); // NOSONAR
6565
}
6666
return false;
6767
}

felles/util/src/main/java/no/nav/vedtak/konfig/doc/KonfigverdiDoclet.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public boolean run(DocletEnvironment environment) {
5454
return true;
5555
} catch (Error | RuntimeException e) {
5656
reporter.print(Kind.ERROR, e.getMessage());
57-
e.printStackTrace();
57+
e.printStackTrace(); // NOSONAR
5858
return false;
5959
}
6060
}

integrasjon/sigrun-klient/src/main/java/no/nav/vedtak/felles/integrasjon/sigrun/SigrunRestClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private HttpRequestBase lagRequestSSG(long aktørId, String år) {
9191
try {
9292
build = builder.build();
9393
} catch (URISyntaxException e) {
94-
e.printStackTrace();
94+
throw new IllegalArgumentException("Kunne ikke lage URI for hente data fra Sigrun", e);
9595
}
9696
HttpRequestBase request = new HttpGet(build);
9797
request.addHeader(NAV_PERSONIDENT, String.valueOf(aktørId));

integrasjon/webservice/src/main/java/no/nav/vedtak/felles/integrasjon/felles/ws/doc/WebServiceDoclet.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public boolean run(DocletEnvironment environment) {
5353
return true;
5454
} catch (Error | RuntimeException e) {
5555
reporter.print(Kind.ERROR, e.getMessage());
56-
e.printStackTrace();
56+
e.printStackTrace(); // NOSONAR
5757
return false;
5858
}
5959
}

0 commit comments

Comments
 (0)