diff --git a/refarch-backend/src/main/java/de/muenchen/refarch/configuration/nfcconverter/NfcRequestFilter.java b/refarch-backend/src/main/java/de/muenchen/refarch/configuration/nfcconverter/NfcRequestFilter.java index ac233017..c6776425 100644 --- a/refarch-backend/src/main/java/de/muenchen/refarch/configuration/nfcconverter/NfcRequestFilter.java +++ b/refarch-backend/src/main/java/de/muenchen/refarch/configuration/nfcconverter/NfcRequestFilter.java @@ -85,7 +85,7 @@ protected void doFilterInternal(final HttpServletRequest request, final HttpServ final String contentType = request.getContentType(); log.debug("ContentType for request with URI: \"{}\"", contentType); - if (contentTypes != null && contentTypes.contains(contentType)) { + if (contentTypes.contains(contentType)) { log.debug("Processing request {}.", request.getRequestURI()); filterChain.doFilter(new NfcRequest(request, contentTypes), response); } else { diff --git a/refarch-backend/src/main/java/de/muenchen/refarch/domain/BaseEntity.java b/refarch-backend/src/main/java/de/muenchen/refarch/domain/BaseEntity.java index 8a87b388..5b2e7163 100644 --- a/refarch-backend/src/main/java/de/muenchen/refarch/domain/BaseEntity.java +++ b/refarch-backend/src/main/java/de/muenchen/refarch/domain/BaseEntity.java @@ -20,7 +20,7 @@ @Setter @ToString @EqualsAndHashCode -public abstract class BaseEntity implements Cloneable, Serializable { +public abstract class BaseEntity implements Serializable { @Serial private static final long serialVersionUID = 1L; @@ -29,4 +29,5 @@ public abstract class BaseEntity implements Cloneable, Serializable { @Id @GeneratedValue(strategy = GenerationType.UUID) private UUID id; + } diff --git a/refarch-backend/src/main/java/de/muenchen/refarch/security/RequestResponseLoggingFilter.java b/refarch-backend/src/main/java/de/muenchen/refarch/security/RequestResponseLoggingFilter.java index a3da5157..8842535a 100644 --- a/refarch-backend/src/main/java/de/muenchen/refarch/security/RequestResponseLoggingFilter.java +++ b/refarch-backend/src/main/java/de/muenchen/refarch/security/RequestResponseLoggingFilter.java @@ -11,6 +11,7 @@ import java.io.IOException; import java.util.Arrays; import java.util.List; +import lombok.ToString; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.core.annotation.Order; @@ -23,6 +24,7 @@ @Component @Order(1) @Slf4j +@ToString public class RequestResponseLoggingFilter implements Filter { private static final String REQUEST_LOGGING_MODE_ALL = "all"; @@ -84,5 +86,4 @@ private boolean checkForLogging(final HttpServletRequest httpServletRequest) { || (REQUEST_LOGGING_MODE_CHANGING.equals(requestLoggingMode) && CHANGING_METHODS.contains(httpServletRequest.getMethod())); } - }