cleanup and refactored to move to net.wpitchoune package
[pnews.git] / war / src / main / java / pnews / servlet / Pnews.java
index 69ad1bc..c51f946 100644 (file)
@@ -20,9 +20,11 @@ import javax.servlet.http.HttpServletResponse;
 
 import com.rometools.rome.io.FeedException;
 
-import pnews.Article;
-import pnews.Category;
-import pnews.Language;
+import net.wpitchoune.pnews.Article;
+import net.wpitchoune.pnews.ArticleStore;
+import net.wpitchoune.pnews.Category;
+import net.wpitchoune.pnews.Config;
+import net.wpitchoune.pnews.Language;
 
 public class Pnews extends HttpServlet {
         private static final String CLASS_NAME = Pnews.class.getName();
@@ -72,7 +74,7 @@ public class Pnews extends HttpServlet {
                         if (redirectURL != null) {
                                 a = ArticleStore.singleton.get(redirectURL);
                                 if (a != null)
-                                        a.readCount.incrementAndGet();
+                                        a.incrementReadCount();
                                 else
                                         LOG.severe("Cannot find the article " + redirectURL);