summaryrefslogtreecommitdiffstats
path: root/components/datalake-handler/feeder/src/main/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'components/datalake-handler/feeder/src/main/java/com')
-rw-r--r--components/datalake-handler/feeder/src/main/java/com/mongodb/internal/validator/CollectibleDocumentFieldNameValidator.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/components/datalake-handler/feeder/src/main/java/com/mongodb/internal/validator/CollectibleDocumentFieldNameValidator.java b/components/datalake-handler/feeder/src/main/java/com/mongodb/internal/validator/CollectibleDocumentFieldNameValidator.java
index e7a8e1b9..cde4d43d 100644
--- a/components/datalake-handler/feeder/src/main/java/com/mongodb/internal/validator/CollectibleDocumentFieldNameValidator.java
+++ b/components/datalake-handler/feeder/src/main/java/com/mongodb/internal/validator/CollectibleDocumentFieldNameValidator.java
@@ -42,15 +42,7 @@ public class CollectibleDocumentFieldNameValidator implements FieldNameValidator
throw new IllegalArgumentException("Field name can not be null");
}
- /* dl change
- if (fieldName.contains(".")) {
- return false;
- }*/
-
- if (fieldName.startsWith("$") && !EXCEPTIONS.contains(fieldName)) {
- return false;
- }
- return true;
+ return !fieldName.startsWith("$") || EXCEPTIONS.contains(fieldName);
}
@Override