exo10: code cleanups.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 11 Apr 2018 16:56:09 +0000 (18:56 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 11 Apr 2018 16:56:09 +0000 (18:56 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
ROOT/exo10/WEB-INF/src/date/DateRefresh.java

index 24cbd5f..32aa39a 100644 (file)
@@ -10,13 +10,8 @@ import javax.servlet.annotation.WebServlet;
 // Extend HttpServlet class
 public class DateRefresh extends HttpServlet {
 
-   //private java.util.Date d;
-   //private Integer count;
-
    public void init() throws ServletException {
       // Do required initialization
-      //d = new java.util.Date(); // DateRefresh at init time, do not change
-      //count = 0;
    }
 
    public void doGet(HttpServletRequest request, HttpServletResponse response)
@@ -27,18 +22,14 @@ public class DateRefresh extends HttpServlet {
       response.addHeader("Refresh", "1");
 
       // Actual logic goes here.
-      //count++;
       PrintWriter out = response.getWriter();
       out.println("<html>");
       out.println("<body>");
       out.println("Date " + new java.util.Date().toString());
-      //out.println("<br>");
-      //out.println("GET call number " + count);
       out.println("</body>");
       out.println("</html>");
    }
 
    public void destroy() {
-      //count = 0;
    }
 }