Skip to content

Commit

Permalink
remove sizeof library
Browse files Browse the repository at this point in the history
  • Loading branch information
agliznetsov authored and elaatifi committed Oct 3, 2021
1 parent d542c78 commit 702d558
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@
<artifactId>slf4j-api</artifactId>
</dependency>

<dependency>
<groupId>com.carrotsearch</groupId>
<artifactId>java-sizeof</artifactId>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand Down
4 changes: 1 addition & 3 deletions core/src/main/java/ma/glasnost/orika/StateReporter.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package ma.glasnost.orika;

import com.carrotsearch.sizeof.RamUsageEstimator;

import ma.glasnost.orika.converter.ConverterFactory;

/**
Expand Down Expand Up @@ -44,7 +42,7 @@ public static void reportCurrentState(StringBuilder out, MapperFactory mapperFac
* @return
*/
public static String humanReadableSizeInMemory(Object...objects) {
long size = RamUsageEstimator.sizeOfAll(objects);
long size = 0;
return String.format("%,.1f kB", size/1000.0);
}

Expand Down

0 comments on commit 702d558

Please sign in to comment.