From ca611427fb2a9ce726b67d8f3116b89f716c30ff Mon Sep 17 00:00:00 2001 From: Wenjun Ruan Date: Tue, 15 Nov 2022 15:07:13 +0800 Subject: [PATCH] Fix compile error in jdk11 due to toArray confusion --- .../main/java/org/apache/geode/internal/cache/EntriesSet.java | 2 +- .../java/org/apache/geode/internal/cache/PartitionedRegion.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/EntriesSet.java b/geode-core/src/main/java/org/apache/geode/internal/cache/EntriesSet.java index 526dd1aaad84..3d0626ad4272 100644 --- a/geode-core/src/main/java/org/apache/geode/internal/cache/EntriesSet.java +++ b/geode-core/src/main/java/org/apache/geode/internal/cache/EntriesSet.java @@ -242,7 +242,7 @@ public int size() { @Override public Object[] toArray() { - return toArray(null); + return toArray((Object[]) null); } @Override diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java b/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java index e14a159fc26c..61a0aaed0226 100755 --- a/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java +++ b/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java @@ -6213,7 +6213,7 @@ public int size() { @Override public Object[] toArray() { - return toArray(null); + return toArray((Object[]) null); } @Override