Skip to content

Commit

Permalink
fix spotbugs CT_CONSTRUCTOR_THROW error
Browse files Browse the repository at this point in the history
  • Loading branch information
osiegmar committed Mar 29, 2024
1 parent bdf5fe2 commit 0ffcc52
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/de/siegmar/logbackgelf/GelfUdpChunker.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.NoSuchElementException;
import java.util.function.LongSupplier;

class GelfUdpChunker {
final class GelfUdpChunker {

/**
* Maximum number of chunks, as defined per GELF Format Specification.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;

public class SimpleObjectPool<T extends BasePooledObject> implements Closeable {
public final class SimpleObjectPool<T extends BasePooledObject> implements Closeable {

private static final int MILLIS_PER_SECOND = 1000;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

class CustomX509TrustManagerTest {
final class CustomX509TrustManagerTest {

private static final String HOSTNAME = "graylog.foo.bar";

Expand Down
4 changes: 2 additions & 2 deletions src/test/java/de/siegmar/logbackgelf/X509Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private static KeyPair generateKeyPair() throws NoSuchAlgorithmException {
return keyGen.genKeyPair();
}

static class CABuilder {
static final class CABuilder {

private final KeyPair keyPair;
private final X509Certificate caCertificate;
Expand Down Expand Up @@ -127,7 +127,7 @@ private X509Certificate build() throws NoSuchAlgorithmException,
}

@SuppressWarnings("PMD.AvoidFieldNameMatchingMethodName")
static class CertBuilder {
static final class CertBuilder {

private final KeyPair keyPair;
private LocalDate validFrom = LocalDate.now();
Expand Down

0 comments on commit 0ffcc52

Please sign in to comment.