Annotate mockRegionDataAccessOperations(..) with @SuppressWarnings('unchecked').

Annotate mockSelectResults() and mockLucenceIndexFactory(..) with @SuppressWarnings('unchecked').
This commit is contained in:
John Blum
2020-09-16 16:13:51 -07:00
parent 3a2811f52b
commit e0eaeacc60

View File

@@ -2058,6 +2058,7 @@ public abstract class GemFireMockObjectsSupport extends MockObjectsSupport {
return mockQueryStatistics;
}
@SuppressWarnings("unchecked")
private static <T> SelectResults<T> mockSelectResults() {
ObjectType mockObjectType = mock(ObjectType.class, withSettings().lenient());
@@ -2115,6 +2116,7 @@ public abstract class GemFireMockObjectsSupport extends MockObjectsSupport {
return mockLuceneIndexFactory(null);
}
@SuppressWarnings("unchecked")
private static LuceneIndexFactory mockLuceneIndexFactory(Map<LuceneIndexKey, LuceneIndex> luceneIndexes) {
LuceneIndexFactory mockLuceneIndexFactory = mock(LuceneIndexFactory.class);
@@ -2529,6 +2531,7 @@ public abstract class GemFireMockObjectsSupport extends MockObjectsSupport {
return mockRegionAttributes;
}
@SuppressWarnings("unchecked")
private static <K, V> void mockRegionDataAccessOperations(Region<K, V> mockRegion,
RegionAttributes<K, V> mockRegionAttributes) {
@@ -3403,6 +3406,7 @@ public abstract class GemFireMockObjectsSupport extends MockObjectsSupport {
localGemFireProperties.putAll(withGemFireSystemProperties());
}
@SuppressWarnings("unchecked")
private static Properties withGemFireApiProperties(Object cacheFactory, String gemfirePropertiesFieldName) {
Class<?> cacheFactoryType = Optional.ofNullable(cacheFactory)