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:
Phillip Webb
2013-11-21 18:15:09 -08:00
parent 4de3291dc7
commit 59002f2456
540 changed files with 1943 additions and 1843 deletions

View File

@@ -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);

View File

@@ -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");