You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/06/01 11:51:11 UTC

(commons-jexl) 05/08: Use diamond

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jexl.git

commit 115caaab4ebbe62ae07714ed923588fecab5955c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri May 31 23:20:46 2024 -0400

    Use diamond
---
 src/test/java/org/example/SomeTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/example/SomeTest.java b/src/test/java/org/example/SomeTest.java
index 359ff9e3..bc8affbe 100644
--- a/src/test/java/org/example/SomeTest.java
+++ b/src/test/java/org/example/SomeTest.java
@@ -89,7 +89,7 @@ public class SomeTest {
    */
   @Test
   public void testCustomFunctionPermissions() {
-      Map<String, Object> funcs = new HashMap<String, Object>();
+      Map<String, Object> funcs = new HashMap<>();
       funcs.put("math", new MyMath());
       JexlPermissions permissions = JexlPermissions.parse("org.example.*");
       JexlEngine jexl = new JexlBuilder().permissions(permissions).namespaces(funcs).create();