fixed compilation with jd7
authorJean-Philippe Orsini <orsinije@fr.ibm.com>
Thu, 12 Oct 2017 14:36:30 +0000 (16:36 +0200)
committerJean-Philippe Orsini <orsinije@fr.ibm.com>
Thu, 12 Oct 2017 14:36:30 +0000 (16:36 +0200)
war/src/main/java/pnews/servlet/Pnews.java

index d15315e..01489f8 100644 (file)
@@ -91,7 +91,7 @@ public class Pnews extends HttpServlet {
                                 rp.getWriter().write(html);
                         } else {
                                 LOG.severe("writeArticles cannot retrieve any articles");
-                                html = HTML.toHTML(new ArrayList<>(), cat);
+                                html = HTML.toHTML(new ArrayList<Article>(), cat);
                                 rp.setContentType("text/html");
                                 rp.getWriter().write(html);
                         }