This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-jexl.git
The following commit(s) were added to refs/heads/master by this push: new 93ebd6ce Actually use features; fix display of wrong char 93ebd6ce is described below commit 93ebd6cebf3e37fe87ffce834352502284d1f594 Author: Sebb <s...@apache.org> AuthorDate: Tue Oct 17 15:59:19 2023 +0100 Actually use features; fix display of wrong char --- src/site/xdoc/index.xml | 4 ++-- src/test/java/org/apache/commons/jexl3/examples/StreamTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml index 68683c7f..0106c13f 100644 --- a/src/site/xdoc/index.xml +++ b/src/site/xdoc/index.xml @@ -139,7 +139,7 @@ and ensure their execution within controlled functional constraints. <span style='color:#3F7F5F'>// Restricted permissions to a safe set but with URI allowed </span> JexlPermissions permissions = <span style='font-weight:bold;color:#7B0052;'>new</span> ClassPermissions(java.net.URI.class); <span style='color:#3F7F5F'>// Create the engine -</span> jexl = <span style='font-weight:bold;color:#7B0052;'>new</span> JexlBuilder().permissions(permissions).create(); +</span> jexl = <span style='font-weight:bold;color:#7B0052;'>new</span> JexlBuilder().features(features).permissions(permissions).create(); <span style='font-weight:bold;color:#D3171B'>}</span> <span style='color:#3F5FBF'>/** @@ -163,7 +163,7 @@ and ensure their execution within controlled functional constraints. * @return the filtered stream */</span> <span style='font-weight:bold;color:#7B0052;'>public</span> Stream<?> filter(Stream<?> stream, <span style='font-weight:bold;color:#7B0052;'>final</span> JexlScript filter) <span style='font-weight:bold;color:#D3171B'>{</span> - <span style='font-weight:bold;color:#7B0052;'>return</span> stream.filter(x -> x =! <span style='font-weight:bold;color:#7B0052;'>null</span> "" TRUE.equals(filter.execute(this, x))); + <span style='font-weight:bold;color:#7B0052;'>return</span> stream.filter(x -> x =! <span style='font-weight:bold;color:#7B0052;'>null</span> &ersand;&ersand; TRUE.equals(filter.execute(this, x))); <span style='font-weight:bold;color:#D3171B'>}</span> <span style='font-weight:bold;color:#D3171B'>}</span> diff --git a/src/test/java/org/apache/commons/jexl3/examples/StreamTest.java b/src/test/java/org/apache/commons/jexl3/examples/StreamTest.java index a596f496..f1223f7f 100644 --- a/src/test/java/org/apache/commons/jexl3/examples/StreamTest.java +++ b/src/test/java/org/apache/commons/jexl3/examples/StreamTest.java @@ -51,7 +51,7 @@ public class StreamTest { // Restricted permissions to a safe set but with URI allowed final JexlPermissions permissions = new ClassPermissions(java.net.URI.class); // Create the engine - jexl = new JexlBuilder().permissions(permissions).create(); + jexl = new JexlBuilder().features(features).permissions(permissions).create(); } /**