Skip to content

Commit

Permalink
Actually use features; fix display of wrong char
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Oct 17, 2023
1 parent c744bd2 commit 93ebd6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/site/xdoc/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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'>/**
Expand All @@ -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&lt;?&gt; filter(Stream&lt;?&gt; 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 -&gt; x =! <span style='font-weight:bold;color:#7B0052;'>null</span> &quot;&quot; TRUE.equals(filter.execute(this, x)));
<span style='font-weight:bold;color:#7B0052;'>return</span> stream.filter(x -&gt; x =! <span style='font-weight:bold;color:#7B0052;'>null</span> &ampersand;&ampersand; TRUE.equals(filter.execute(this, x)));
<span style='font-weight:bold;color:#D3171B'>}</span>
<span style='font-weight:bold;color:#D3171B'>}</span>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public 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();
}

/**
Expand Down

0 comments on commit 93ebd6c

Please sign in to comment.