Author: sebb
Date: Tue Oct 17 16:01:51 2023
New Revision: 1084424
Log:
Fixes from source
Modified:
websites/production/commons/content/proper/commons-jexl/index.html
Modified: websites/production/commons/content/proper/commons-jexl/index.html
==============================================================================
--- websites/production/commons/content/proper/commons-jexl/index.html
(original)
+++ websites/production/commons/content/proper/commons-jexl/index.html Tue Oct
17 16:01:51 2023
@@ -436,7 +436,7 @@ and ensure their execution within contro
<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">/**
@@ -460,7 +460,7 @@ and ensure their execution within contro
* @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> &&
TRUE.equals(filter.execute(this, x)));
<span style="font-weight:bold;color:#D3171B">}</span>
<span style="font-weight:bold;color:#D3171B">}</span>