diff --git a/core/src/main/java/org/apache/spark/util/collection/unsafe/sort/UnsafeInMemorySorter.java b/core/src/main/java/org/apache/spark/util/collection/unsafe/sort/UnsafeInMemorySorter.java index 761ced66f78cf..ff00f8c1c7517 100644 --- a/core/src/main/java/org/apache/spark/util/collection/unsafe/sort/UnsafeInMemorySorter.java +++ b/core/src/main/java/org/apache/spark/util/collection/unsafe/sort/UnsafeInMemorySorter.java @@ -216,7 +216,7 @@ public void expandPointerArray(LongArray newArray) { if (array != null) { if (newArray.size() < array.size()) { // checkstyle.off: RegexpSinglelineJava - throw new SparkOutOfMemoryError("_LEGACY_ERROR_TEMP_3301", new HashMap()); + throw new SparkOutOfMemoryError("_LEGACY_ERROR_TEMP_3301", new HashMap<>()); // checkstyle.on: RegexpSinglelineJava } Platform.copyMemory(