Skip to content

Commit

Permalink
Sonar: Rethrow uncheck exception
Browse files Browse the repository at this point in the history
  • Loading branch information
zechmeister committed Nov 5, 2024
1 parent cce4ec5 commit c65b3f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.UncheckedIOException;

public class CachedBodyServletInputStream extends ServletInputStream {

Expand All @@ -24,7 +25,7 @@ public boolean isFinished() {
try {
return cachedBodyInputStream.available() == 0;
} catch (IOException e) {
throw new RuntimeException(e);
throw new UncheckedIOException(e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
public class CallbackVerificationFilter extends OncePerRequestFilter {
private final SenderClient senderClient;
private final String callbackSecret;
private static final Logger filterLogger = LoggerFactory.getLogger(CallbackVerificationFilter.class);
private static final Logger filterLogger =
LoggerFactory.getLogger(CallbackVerificationFilter.class);

public CallbackVerificationFilter(
SenderClient senderClient, @Value("${fitConnect.callbackSecret}") String callbackSecret) {
Expand Down

0 comments on commit c65b3f1

Please sign in to comment.