This version of sizeof
includes a number of changes to improve Java 9+ support and a number of code cleanups.
Link to fixed issues in this release.
Maven dependency:
<dependency>
<groupId>org.ehcache</groupId>
<artifactId>sizeof</artifactId>
<version>0.4.0</version>
</dependency>