From ec009ce34d84c450e640686f7c986440d1908fe3 Mon Sep 17 00:00:00 2001 From: Thomas Farr Date: Wed, 28 Feb 2024 14:48:01 +1300 Subject: [PATCH] Add additional reserved keywords Signed-off-by: Thomas Farr --- .../main/java/org/opensearch/client/codegen/NameSanitizer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java-codegen/src/main/java/org/opensearch/client/codegen/NameSanitizer.java b/java-codegen/src/main/java/org/opensearch/client/codegen/NameSanitizer.java index 83214e1031..2e44c30cae 100644 --- a/java-codegen/src/main/java/org/opensearch/client/codegen/NameSanitizer.java +++ b/java-codegen/src/main/java/org/opensearch/client/codegen/NameSanitizer.java @@ -15,6 +15,8 @@ public class NameSanitizer { private static final Set reservedWords = new HashSet<>() { { + add("default"); + add("native"); add("transient"); } };