Skip to content

Commit

Permalink
fjerner no sonar greier
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvemb committed Feb 6, 2025
1 parent 38003d0 commit dc5065c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public List<Class<?>> getClassesWithAnnotation(Class<?> annotationClass) {
try {
jsonTypes.add(Class.forName(className));
} catch (ClassNotFoundException e) {
LOG.error("Kan ikke finne klasse i Classpath, som funnet i Jandex index", e);// NOSONAR
LOG.error("Kan ikke finne klasse i Classpath, som funnet i Jandex index", e);
}
}
}
Expand All @@ -147,7 +147,7 @@ public List<Class<?>> getClasses(Predicate<ClassInfo> predicate, Predicate<Class
}
}
} catch (ClassNotFoundException e) {
LOG.error("Kan ikke finne klasse i Classpath, som funnet i Jandex index", e);// NOSONAR
LOG.error("Kan ikke finne klasse i Classpath, som funnet i Jandex index", e);
}
}
return cls;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ private OrganisasjonsnummerValidator() {
public static boolean erGyldig(String orgnummer) {

// Skal inneholde 9 siffer og kun tall
if (orgnummer == null || (orgnummer = orgnummer.trim()).length() != 9) { // NOSONAR
if (orgnummer == null || (orgnummer = orgnummer.trim()).length() != 9) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ private static String fileScriptLocation() {

private static void settJdniOppslag(DataSource dataSource) {
try {
new EnvEntry("jdbc/defaultDS", dataSource); // NOSONAR
new EnvEntry("jdbc/defaultDS", dataSource);
} catch (NamingException e) {
throw new IllegalStateException("Feil under registrering av JDNI-entry for default datasource", e); // NOSONAR
throw new IllegalStateException("Feil under registrering av JDNI-entry for default datasource", e);
}
}

Expand Down

0 comments on commit dc5065c

Please sign in to comment.