diff --git a/src/main/java/org/usb4java/utils/BufferUtils.java b/src/main/java/org/usb4java/utils/BufferUtils.java index cafb81f..07a92cd 100644 --- a/src/main/java/org/usb4java/utils/BufferUtils.java +++ b/src/main/java/org/usb4java/utils/BufferUtils.java @@ -18,10 +18,10 @@ import java.nio.LongBuffer; public final class BufferUtils { /** The native size of the type int. */ - private static final int intSize = Integer.SIZE / Byte.SIZE; + private static final int INT_SIZE = Integer.SIZE / Byte.SIZE; /** The native size of the type long. */ - private static final int longSize = Long.SIZE / Byte.SIZE; + private static final int LONG_SIZE = Long.SIZE / Byte.SIZE; /** * Private constructor to prevent instantiation. @@ -52,7 +52,7 @@ public final class BufferUtils */ public static IntBuffer allocateIntBuffer() { - return ByteBuffer.allocateDirect(intSize).asIntBuffer(); + return ByteBuffer.allocateDirect(INT_SIZE).asIntBuffer(); } /** @@ -62,7 +62,7 @@ public final class BufferUtils */ public static LongBuffer allocateLongBuffer() { - return ByteBuffer.allocateDirect(longSize).asLongBuffer(); + return ByteBuffer.allocateDirect(LONG_SIZE).asLongBuffer(); } /**