Fix remaining compiler warnings
Fix remaining Java compiler warnings, mainly around missing generics or deprecated code. Also add the `-Werror` compiler option to ensure that any future warnings will fail the build. Issue: SPR-11064
This commit is contained in:
@@ -73,8 +73,7 @@ public class VelocityToolboxViewTests {
|
||||
|
||||
vv.setUrl(templateName);
|
||||
vv.setApplicationContext(wac);
|
||||
@SuppressWarnings("unchecked")
|
||||
Map<String, Class> toolAttributes = new HashMap<String, Class>();
|
||||
Map<String, Class<?>> toolAttributes = new HashMap<String, Class<?>>();
|
||||
toolAttributes.put("math", MathTool.class);
|
||||
toolAttributes.put("link2", LinkTool.class);
|
||||
vv.setToolAttributes(toolAttributes);
|
||||
|
||||
@@ -265,7 +265,7 @@ public class VelocityViewTests {
|
||||
|
||||
vv.setUrl(templateName);
|
||||
vv.setApplicationContext(wac);
|
||||
Map<String, Class> toolAttributes = new HashMap<String, Class>();
|
||||
Map<String, Class<?>> toolAttributes = new HashMap<String, Class<?>>();
|
||||
toolAttributes.put("math", MathTool.class);
|
||||
vv.setToolAttributes(toolAttributes);
|
||||
vv.setDateToolAttribute("dateTool");
|
||||
|
||||
Reference in New Issue
Block a user