Skip to content

Commit

Permalink
eliminate warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Jan 20, 2024
1 parent 98187cb commit bed12e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/io/wcm/handler/link/impl/LinkHandlerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ public final class LinkHandlerImpl implements LinkHandler {
@SuppressWarnings({
"null", "unused",
"java:S6541", "java:S3776", "java:S2589", // ignore complexity
"java:S112" // runtime exception
"java:S112", // runtime exception
"java:S1192" // redundant string literals
})
@SuppressFBWarnings({ "CORRECTNESS", "STYLE" })
Link processRequest(@NotNull LinkRequest linkRequest) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ private Page getTargetPage(String targetPath, InternalLinkResolverOptions option
* @param options Link resolver options
* @return true if target context should be used
*/
@SuppressWarnings("java:S1871")
private boolean useTargetContext(InternalLinkResolverOptions options) {
if (options.isUseTargetContext() && !options.isRewritePathToContext()) {
return true;
Expand Down

0 comments on commit bed12e3

Please sign in to comment.