Revert "update all connectors for new CDK version and more stringent javac checks"
This reverts commit 18ad87bbd1.
This commit is contained in:
@@ -163,7 +163,6 @@ public class MongoUtil {
|
||||
try (final MongoCursor<Document> cursor = output.allowDiskUse(true).cursor()) {
|
||||
if (cursor.hasNext()) {
|
||||
final Document stats = cursor.next();
|
||||
@SuppressWarnings("unchecked")
|
||||
final Map<String, Object> storageStats = (Map<String, Object>) stats.get(MongoConstants.STORAGE_STATS_KEY);
|
||||
if (storageStats != null && !storageStats.isEmpty()) {
|
||||
return Optional.of(new CollectionStatistics((Number) storageStats.get(MongoConstants.COLLECTION_STATISTICS_COUNT_KEY),
|
||||
@@ -255,7 +254,6 @@ public class MongoUtil {
|
||||
|
||||
try (final MongoCursor<Document> cursor = output.allowDiskUse(true).cursor()) {
|
||||
while (cursor.hasNext()) {
|
||||
@SuppressWarnings("unchecked")
|
||||
final Map<String, String> fields = ((List<Map<String, String>>) cursor.next().get("fields")).get(0);
|
||||
discoveredFields.addAll(fields.entrySet().stream()
|
||||
.map(e -> new MongoField(e.getKey(), convertToSchemaType(e.getValue())))
|
||||
|
||||
Reference in New Issue
Block a user