diff --git a/javax-servlets/pom.xml b/javax-servlets/pom.xml index 4fe4575e48..f1804b4d02 100644 --- a/javax-servlets/pom.xml +++ b/javax-servlets/pom.xml @@ -7,6 +7,18 @@ com.root ServletmavenExample 1.0-SNAPSHOT + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.7 + 1.7 + + + + diff --git a/javax-servlets/src/test/java/com/root/FormServletTest.java b/javax-servlets/src/test/java/com/root/FormServletTest.java index 437741e12d..67b419683f 100644 --- a/javax-servlets/src/test/java/com/root/FormServletTest.java +++ b/javax-servlets/src/test/java/com/root/FormServletTest.java @@ -21,7 +21,7 @@ public class FormServletTest { HttpClient client = new DefaultHttpClient(); HttpPost method = new HttpPost("http://localhost:8080/calculateServlet"); - List nvps = new ArrayList(); + List nvps = new ArrayList<>(); nvps.add(new BasicNameValuePair("height", String.valueOf(2))); nvps.add(new BasicNameValuePair("weight", String.valueOf(80)));