From 50ade462d2aba610bc8e8eb6d4f86b02344d75f1 Mon Sep 17 00:00:00 2001 From: Tianli Feng Date: Tue, 2 Aug 2022 20:45:58 -0700 Subject: [PATCH] Add javadoc to note class WhitelistClass should be final Signed-off-by: Tianli Feng --- .../main/java/org/opensearch/painless/spi/WhitelistClass.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lang-painless/spi/src/main/java/org/opensearch/painless/spi/WhitelistClass.java b/modules/lang-painless/spi/src/main/java/org/opensearch/painless/spi/WhitelistClass.java index fd7c3f19d3719..b76f9002f40e8 100644 --- a/modules/lang-painless/spi/src/main/java/org/opensearch/painless/spi/WhitelistClass.java +++ b/modules/lang-painless/spi/src/main/java/org/opensearch/painless/spi/WhitelistClass.java @@ -54,7 +54,7 @@ * Classes will automatically extend other allowlisted classes if the Java class they represent is a * subclass of other classes including Java interfaces. * - * @deprecated As of 2.2, because supporting inclusive language, replaced by {@link AllowlistClass} + * @deprecated As of 2.2, because supporting inclusive language, replaced by {@link AllowlistClass}. The class was declared with final keyword. */ @Deprecated public class WhitelistClass { @@ -78,7 +78,7 @@ public class WhitelistClass { public final Map, Object> painlessAnnotations; /** Standard constructor. All values must be not {@code null}. */ - WhitelistClass( + public WhitelistClass( String origin, String javaClassName, List allowlistConstructors,