Suppress (unchecked) compiler warning in GemFireMockObjectsSupport.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user