Skip to content

Commit

Permalink
errorprone :: NonFinalStaticFields in SizeUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-mlb committed Sep 18, 2024
1 parent e402c8d commit 090b472
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/emissary/util/SizeUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ public class SizeUtil {
/**
* A flag to indicate whether we are running 32 or 64 bit JVM. Note that this is the JVM bits and not the OS bits
*/
private static boolean arch64 = false;
private static final boolean arch64;

/**
* A reference/pointer size in a non-compressed Ops JVM. Default is 32-bit = 4 bytes
*/
private static long refSize = 4L;
private static final long refSize;

/**
* Object overhead
Expand All @@ -32,6 +32,9 @@ public class SizeUtil {
if (System.getProperty("os.arch").contains("64")) {
arch64 = true;
refSize = 8L;
} else {
arch64 = false;
refSize = 4L;
}
}

Expand Down

0 comments on commit 090b472

Please sign in to comment.