Skip to content

Commit d77ef01

Browse files
committed
backport stable-API PainlessPlugin#baseWhiteList() from main
1 parent ad1eb64 commit d77ef01

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/lang-painless/src/main/java/org/elasticsearch/painless/PainlessPlugin.java

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ public final class PainlessPlugin extends Plugin implements ScriptPlugin, Extens
7474
WhitelistLoader.loadFromResourceFiles(PainlessPlugin.class, WhitelistAnnotationParser.BASE_ANNOTATION_PARSERS, BASE_WHITELIST_FILES)
7575
);
7676

77+
public static List<Whitelist> baseWhiteList() {
78+
return BASE_WHITELISTS;
79+
}
80+
7781
/*
7882
* Contexts from Core that need custom whitelists can add them to the map below.
7983
* Whitelist resources should be added as appropriately named, separate files

0 commit comments

Comments
 (0)