Skip to content

Commit 7902126

Browse files
committed
private static final classes to be final (checkstyle)
1 parent 838a8a0 commit 7902126

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/test/java/org/lmdbjava/ComparatorTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public void equalBuffers() {
143143
/**
144144
* Tests {@link ByteArrayProxy}.
145145
*/
146-
private static class ByteArrayRunner implements ComparatorRunner {
146+
private static final class ByteArrayRunner implements ComparatorRunner {
147147

148148
@Override
149149
public int compare(final byte[] o1, final byte[] o2) {
@@ -155,7 +155,7 @@ public int compare(final byte[] o1, final byte[] o2) {
155155
/**
156156
* Tests {@link ByteBufferProxy}.
157157
*/
158-
private static class ByteBufferRunner implements ComparatorRunner {
158+
private static final class ByteBufferRunner implements ComparatorRunner {
159159

160160
@Override
161161
public int compare(final byte[] o1, final byte[] o2) {
@@ -199,7 +199,7 @@ private ByteBuffer arrayToBuffer(final byte[] arr, final int bufferCapacity) {
199199
/**
200200
* Tests {@link DirectBufferProxy}.
201201
*/
202-
private static class DirectBufferRunner implements ComparatorRunner {
202+
private static final class DirectBufferRunner implements ComparatorRunner {
203203

204204
@Override
205205
public int compare(final byte[] o1, final byte[] o2) {
@@ -213,7 +213,7 @@ public int compare(final byte[] o1, final byte[] o2) {
213213
/**
214214
* Tests using Guava's {@link SignedBytes} comparator.
215215
*/
216-
private static class GuavaSignedBytes implements ComparatorRunner {
216+
private static final class GuavaSignedBytes implements ComparatorRunner {
217217

218218
@Override
219219
public int compare(final byte[] o1, final byte[] o2) {
@@ -225,7 +225,7 @@ public int compare(final byte[] o1, final byte[] o2) {
225225
/**
226226
* Tests using Guava's {@link UnsignedBytes} comparator.
227227
*/
228-
private static class GuavaUnsignedBytes implements ComparatorRunner {
228+
private static final class GuavaUnsignedBytes implements ComparatorRunner {
229229

230230
@Override
231231
public int compare(final byte[] o1, final byte[] o2) {
@@ -237,7 +237,7 @@ public int compare(final byte[] o1, final byte[] o2) {
237237
/**
238238
* Tests {@link ByteBufProxy}.
239239
*/
240-
private static class NettyRunner implements ComparatorRunner {
240+
private static final class NettyRunner implements ComparatorRunner {
241241

242242
@Override
243243
public int compare(final byte[] o1, final byte[] o2) {
@@ -254,7 +254,7 @@ public int compare(final byte[] o1, final byte[] o2) {
254254
* Tests {@link String} by providing a reference implementation of what a
255255
* comparator involving ASCII-encoded bytes should return.
256256
*/
257-
private static class StringRunner implements ComparatorRunner {
257+
private static final class StringRunner implements ComparatorRunner {
258258

259259
@Override
260260
public int compare(final byte[] o1, final byte[] o2) {

src/test/java/org/lmdbjava/KeyRangeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ private void verify(final KeyRange<Integer> range, final int... expected) {
233233
* We use <code>Integer</code> rather than the primitive to represent a
234234
* <code>null</code> buffer.
235235
*/
236-
private static class FakeCursor {
236+
private static final class FakeCursor {
237237

238238
private static final int[] KEYS = new int[]{2, 4, 6, 8};
239239
private int position;

0 commit comments

Comments
 (0)