@@ -15,17 +15,17 @@ private static void runJexlExpressionWithSandbox(String jexlExpr) {
1515 JexlSandbox sandbox = new JexlSandbox (false );
1616 sandbox .white (SandboxedJexl3 .class .getCanonicalName ());
1717 JexlEngine jexl = new JexlBuilder ().sandbox (sandbox ).create ();
18- JexlExpression e = jexl .createExpression (jexlExpr );
18+ JexlExpression e = jexl .createExpression (jexlExpr ); // Safe
1919 JexlContext jc = new MapContext ();
20- e .evaluate (jc );
20+ e .evaluate (jc ); // Safe
2121 }
2222
2323 private static void runJexlExpressionWithUberspectSandbox (String jexlExpr ) {
2424 JexlUberspect sandbox = new JexlUberspectSandbox ();
2525 JexlEngine jexl = new JexlBuilder ().uberspect (sandbox ).create ();
26- JexlExpression e = jexl .createExpression (jexlExpr );
26+ JexlExpression e = jexl .createExpression (jexlExpr ); // Safe
2727 JexlContext jc = new MapContext ();
28- e .evaluate (jc );
28+ e .evaluate (jc ); // Safe
2929 }
3030
3131 private static JexlBuilder STATIC_JEXL_BUILDER ;
@@ -39,7 +39,7 @@ private static void runJexlExpressionWithUberspectSandbox(String jexlExpr) {
3939 private static void runJexlExpressionViaJxltEngineWithSandbox (String jexlExpr ) {
4040 JexlEngine jexl = STATIC_JEXL_BUILDER .create ();
4141 JxltEngine jxlt = jexl .createJxltEngine ();
42- jxlt .createExpression (jexlExpr ).evaluate (new MapContext ());
42+ jxlt .createExpression (jexlExpr ).evaluate (new MapContext ()); // Safe
4343 }
4444
4545 private static class JexlUberspectSandbox implements JexlUberspect {
0 commit comments