Skip to content

Commit

Permalink
When you synchronize on a field, it should be final
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejagodzinski committed Oct 25, 2021
1 parent da75176 commit 10c38ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/test/java/HttpEventCollector_JavaLoggingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
public final class HttpEventCollector_JavaLoggingTest {

private String httpEventCollectorName = "JavaLoggingTest";
List<List<HttpEventCollectorEventInfo>> errors = new ArrayList<>();
List<HttpEventCollectorErrorHandler.ServerErrorException> logEx = new ArrayList<>();
private final List<List<HttpEventCollectorEventInfo>> errors = new ArrayList<>();
private final List<HttpEventCollectorErrorHandler.ServerErrorException> logEx = new ArrayList<>();

/**
* sending a message via httplogging using java.logging to splunk
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/HttpEventCollector_Log4j2Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

public final class HttpEventCollector_Log4j2Test {
private String httpEventCollectorName = "Log4j2Test";
List<List<HttpEventCollectorEventInfo>> errors = new ArrayList<>();
List<HttpEventCollectorErrorHandler.ServerErrorException> logEx = new ArrayList<>();
private final List<List<HttpEventCollectorEventInfo>> errors = new ArrayList<>();
private final List<HttpEventCollectorErrorHandler.ServerErrorException> logEx = new ArrayList<>();

/**
* sending a message via httplogging using log4j2 to splunk
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/HttpEventCollector_LogbackTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
public final class HttpEventCollector_LogbackTest {

private String httpEventCollectorName = "LogbackTest";
List<List<HttpEventCollectorEventInfo>> errors = new ArrayList<>();
List<HttpEventCollectorErrorHandler.ServerErrorException> logEx = new ArrayList<>();
private final List<List<HttpEventCollectorEventInfo>> errors = new ArrayList<>();
private final List<HttpEventCollectorErrorHandler.ServerErrorException> logEx = new ArrayList<>();

/**
* sending a message via httplogging using logback to splunk
Expand Down

0 comments on commit 10c38ba

Please sign in to comment.