Skip to content

Commit

Permalink
MDCHandler - fix sonar findings (#1816)
Browse files Browse the repository at this point in the history
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
  • Loading branch information
avgustinmm authored Aug 12, 2024
1 parent e105429 commit a99e80b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.eclipse.hawkbit.im.authentication.TenantAwareAuthenticationDetails;
import org.slf4j.MDC;
Expand All @@ -28,7 +29,7 @@
import java.util.Objects;
import java.util.concurrent.Callable;

@NoArgsConstructor
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class MDCHandler {

public static String MDC_KEY_TENANT = "tenant";
Expand Down Expand Up @@ -126,6 +127,7 @@ public RuntimeException toRuntimeException() {
}
}

@NoArgsConstructor(access = AccessLevel.PRIVATE)
public static class Filter {

public static void addLoggingFilter(final HttpSecurity httpSecurity) {
Expand Down

0 comments on commit a99e80b

Please sign in to comment.