Skip to content

Commit

Permalink
Maint/396 maintenance fix code scanning report issues (#504)
Browse files Browse the repository at this point in the history
* added to string

* removed clonable

* removed usless null comparison

* spotless

* added lombok annotation
  • Loading branch information
DanielOber authored Nov 11, 2024
1 parent 8f2dad4 commit b909e68
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -29,4 +29,5 @@ public abstract class BaseEntity implements Cloneable, Serializable {
@Id
@GeneratedValue(strategy = GenerationType.UUID)
private UUID id;

}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -23,6 +24,7 @@
@Component
@Order(1)
@Slf4j
@ToString
public class RequestResponseLoggingFilter implements Filter {

private static final String REQUEST_LOGGING_MODE_ALL = "all";
Expand Down Expand Up @@ -84,5 +86,4 @@ private boolean checkForLogging(final HttpServletRequest httpServletRequest) {
|| (REQUEST_LOGGING_MODE_CHANGING.equals(requestLoggingMode)
&& CHANGING_METHODS.contains(httpServletRequest.getMethod()));
}

}

0 comments on commit b909e68

Please sign in to comment.