Suppress (unchecked) compiler warning in GemFireMockObjectsSupport.

This commit is contained in:
John Blum
2021-09-14 11:55:36 -07:00
parent 770b3c85cf
commit 666555a220

View File

@@ -590,6 +590,7 @@ public abstract class GemFireMockObjectsSupport extends MockObjectsSupport {
* @return the given {@link GemFireCache} object.
* @see org.apache.geode.cache.GemFireCache
*/
@SuppressWarnings("unchecked")
private static @Nullable <T extends GemFireCache> T referTo(@Nullable T gemfireCache) {
return (T) cacheReference.updateAndGet(currentCacheReference -> gemfireCache);
}