Skip to content

Commit

Permalink
[Java] Fix Checkstyle warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyazelenko committed Jan 9, 2024
1 parent 8663ae7 commit 95540ab
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private static boolean outputMatches(final OutputConsole console, final String e
.count() == 1;
}

private static class OutputConsole
private static final class OutputConsole
{
private final OutputStream outputBytes = new ByteArrayOutputStream();
private final PrintStream sysOut = new PrintStream(outputBytes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ void manyRandomOperations()
}
}

private static class TestHarness
private static final class TestHarness
{
final PriorityHeapTimerService timerService = new PriorityHeapTimerService(this::onTimerEvent);
final Long2LongHashMap timerDeadlines = new Long2LongHashMap(-1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public void close()
CloseHelper.quietCloseAll(publication, subscription);
}

private class EchoMonitor implements EchoMonitorMBean
private final class EchoMonitor implements EchoMonitorMBean
{
/**
* Get the correaltionId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private static Stream<Arguments> strategyConfigurations()
Arguments.of(null, null, null, "|fc=tagged,g:123", "|gtag=123"));
}

private static class State
private static final class State
{
private int numMessagesToSend;
private int numMessagesLeftToSend;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ private static FailureCaseParams appendOverPreexistingSegmentFile()
}

@SuppressWarnings("UnusedReturnValue")
private static class StreamParams
private static final class StreamParams
{
private String endpoint;
private int initialTermId = 1337;
Expand Down Expand Up @@ -933,7 +933,7 @@ private enum RecordingState
}

@SuppressWarnings("UnusedReturnValue")
private static class RecordingParams
private static final class RecordingParams
{
private final StreamParams stream = new StreamParams();
private long startPosition;
Expand Down Expand Up @@ -1031,7 +1031,7 @@ private interface SegmentFileExpectation
}

@SuppressWarnings("UnusedReturnValue")
private static class TestCaseParams
private static final class TestCaseParams
{
private final RecordingParams source = new RecordingParams();
private final RecordingParams destination = new RecordingParams();
Expand Down Expand Up @@ -1154,7 +1154,7 @@ public String toString()
}

@SuppressWarnings("UnusedReturnValue")
private static class FailureCaseParams
private static final class FailureCaseParams
{
private final RecordingParams source = new RecordingParams();
private final RecordingParams destination = new RecordingParams();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ void filterErrors(List<Path> paths, MutableInteger count, StringBuilder errors,
throws IOException;
}

private static class ArchiveMarkFileDissector implements MarkFileDissector
private static final class ArchiveMarkFileDissector implements MarkFileDissector
{
public String filename()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2162,7 +2162,7 @@ public byte[] onChallenge(final byte[] encodedChallenge)
}
};

private class KeepAlive implements Runnable
private final class KeepAlive implements Runnable
{
private long keepAliveDeadlineMs;
private EpochClock epochClock;
Expand Down Expand Up @@ -2243,7 +2243,7 @@ int newLeaderEvent()
}
}

private static class BackupListener implements ClusterBackupEventsListener
private static final class BackupListener implements ClusterBackupEventsListener
{
public void onBackupQuery()
{
Expand Down

0 comments on commit 95540ab

Please sign in to comment.