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

paulk pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 324a8e6558b1ebd44ce7e1bb5963e81f12e9d2d4
Author: Paul King <[email protected]>
AuthorDate: Wed Apr 13 16:17:11 2022 +1000

    remove Xlint warning
---
 .../groovy-templates/src/test/java/groovy/text/TemplateTest.java    | 2 +-
 .../src/test/java/groovy/text/XmlTemplateEngineTest.java            | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/subprojects/groovy-templates/src/test/java/groovy/text/TemplateTest.java 
b/subprojects/groovy-templates/src/test/java/groovy/text/TemplateTest.java
index b4938d6345..736f66e8d5 100644
--- a/subprojects/groovy-templates/src/test/java/groovy/text/TemplateTest.java
+++ b/subprojects/groovy-templates/src/test/java/groovy/text/TemplateTest.java
@@ -37,7 +37,7 @@ public class TemplateTest extends TestCase {
     }
 
     public void testBinding() throws CompilationFailedException, 
ClassNotFoundException, IOException {
-        Map binding = new HashMap();
+        Map<String, String> binding = new HashMap<>();
         binding.put("sam", "pullara");
 
         Template template1 = new SimpleTemplateEngine().createTemplate("<%= 
sam %><% print sam %>");
diff --git 
a/subprojects/groovy-templates/src/test/java/groovy/text/XmlTemplateEngineTest.java
 
b/subprojects/groovy-templates/src/test/java/groovy/text/XmlTemplateEngineTest.java
index 39eb607e28..2a1746dcd6 100644
--- 
a/subprojects/groovy-templates/src/test/java/groovy/text/XmlTemplateEngineTest.java
+++ 
b/subprojects/groovy-templates/src/test/java/groovy/text/XmlTemplateEngineTest.java
@@ -26,7 +26,7 @@ import java.util.Map;
 public class XmlTemplateEngineTest extends TestCase {
 
     public void testBinding() throws Exception {
-        Map binding = new HashMap();
+        Map<String, String> binding = new HashMap();
         binding.put("Christian", "Stein");
 
         XmlTemplateEngine xmlTemplateEngine = new XmlTemplateEngine();
@@ -46,7 +46,7 @@ public class XmlTemplateEngineTest extends TestCase {
     }
 
     public void testQuotes() throws Exception {
-        Map binding = new HashMap();
+        Map<String, String> binding = new HashMap();
         binding.put("Christian", "Stein");
 
         XmlTemplateEngine xmlTemplateEngine = new XmlTemplateEngine();
@@ -66,7 +66,7 @@ public class XmlTemplateEngineTest extends TestCase {
     }
 
     public void testNamespaces() throws Exception {
-        Map binding = new HashMap();
+        Map<String, String> binding = new HashMap();
         binding.put("Christian", "Stein");
 
         XmlTemplateEngine xmlTemplateEngine = new XmlTemplateEngine();

Reply via email to