Skip to content

Commit

Permalink
EA-3704 sonarq issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SrishtiSingh-eu committed Jan 30, 2024
1 parent 145b2f9 commit 28e082e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ private String getInfoEndpointResponse() throws TranslationApiException {
.bodyToMono(String.class)
.block();
} catch (Exception e) {
LOGGER.debug("Translation API Client call failed - {}", e.getMessage());
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Translation API Client call failed - {}", e.getMessage());
}
throw new TranslationApiException("Translation API Client call failed - " + e.getMessage(), e);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ public static Set<LanguagePair> getTranslationLanguagePairs(String json, Set<Lan
}
// make pairs
source.stream().forEach(v -> target.stream().forEach(t -> translationLanguages.add(new LanguagePair(v, t))));
source.clear();
target.clear();
}
}
}
Expand Down

0 comments on commit 28e082e

Please sign in to comment.