diff --git a/core-java-collections-list/src/main/java/com/baeldung/list/primitive/PrimitivesListPerformance.java b/core-java-collections-list/src/main/java/com/baeldung/list/primitive/PrimitivesListPerformance.java index 1d4d0e250d8a..bd37e5e74ee5 100644 --- a/core-java-collections-list/src/main/java/com/baeldung/list/primitive/PrimitivesListPerformance.java +++ b/core-java-collections-list/src/main/java/com/baeldung/list/primitive/PrimitivesListPerformance.java @@ -31,7 +31,7 @@ public boolean addArrayList() { } @Benchmark - public boolean addTIntList() { + public boolean addTroveIntList() { return tList.add(getValue); } @@ -51,7 +51,7 @@ public int getArrayList() { } @Benchmark - public int getTIntList() { + public int getTroveIntList() { return tList.get(getValue); } @@ -71,7 +71,7 @@ public boolean containsArrayList() { } @Benchmark - public boolean containsTIntList() { + public boolean containsTroveIntList() { return tList.contains(getValue); }