Remove javadoc comments from overriding methods.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / SoneTemplatePage.java
index 8c196e5..9df00b7 100644 (file)
@@ -31,17 +31,16 @@ import net.pterodactylus.sone.notify.ListNotificationFilters;
 import net.pterodactylus.sone.web.page.FreenetRequest;
 import net.pterodactylus.sone.web.page.FreenetTemplatePage;
 import net.pterodactylus.util.notify.Notification;
-import net.pterodactylus.util.object.HashCode;
 import net.pterodactylus.util.template.Template;
 import net.pterodactylus.util.template.TemplateContext;
 
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.ImmutableMap;
-
 import freenet.clients.http.SessionManager.Session;
 import freenet.clients.http.ToadletContext;
 import freenet.support.api.HTTPRequest;
 
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+
 /**
  * Base page for the Sone web interface.
  *
@@ -203,9 +202,6 @@ public class SoneTemplatePage extends FreenetTemplatePage {
        // TEMPLATEPAGE METHODS
        //
 
-       /**
-        * {@inheritDoc}
-        */
        @Override
        protected String getPageTitle(FreenetRequest request) {
                if (pageTitleKey != null) {
@@ -214,25 +210,16 @@ public class SoneTemplatePage extends FreenetTemplatePage {
                return "";
        }
 
-       /**
-        * {@inheritDoc}
-        */
        @Override
        protected List<Map<String, String>> getAdditionalLinkNodes(FreenetRequest request) {
                return ImmutableList.<Map<String, String>> builder().add(ImmutableMap.<String, String> builder().put("rel", "search").put("type", "application/opensearchdescription+xml").put("title", "Sone").put("href", "http://" + request.getHttpRequest().getHeader("host") + "/Sone/OpenSearch.xml").build()).build();
        }
 
-       /**
-        * {@inheritDoc}
-        */
        @Override
        protected Collection<String> getStyleSheets() {
                return Arrays.asList("css/sone.css");
        }
 
-       /**
-        * {@inheritDoc}
-        */
        @Override
        protected String getShortcutIcon() {
                return "images/icon.png";
@@ -248,9 +235,6 @@ public class SoneTemplatePage extends FreenetTemplatePage {
                return requireLogin;
        }
 
-       /**
-        * {@inheritDoc}
-        */
        @Override
        protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
                super.processTemplate(request, templateContext);
@@ -267,12 +251,9 @@ public class SoneTemplatePage extends FreenetTemplatePage {
                List<Notification> notifications = ListNotificationFilters.filterNotifications(webInterface.getNotifications().getNotifications(), currentSone);
                Collections.sort(notifications, Notification.CREATED_TIME_SORTER);
                templateContext.set("notifications", notifications);
-               templateContext.set("notificationHash", HashCode.hashCode(notifications));
+               templateContext.set("notificationHash", notifications.hashCode());
        }
 
-       /**
-        * {@inheritDoc}
-        */
        @Override
        protected String getRedirectTarget(FreenetRequest request) {
                if (requiresLogin() && (getCurrentSone(request.getToadletContext(), false) == null)) {
@@ -300,17 +281,11 @@ public class SoneTemplatePage extends FreenetTemplatePage {
                return null;
        }
 
-       /**
-        * {@inheritDoc}
-        */
        @Override
        protected boolean isFullAccessOnly() {
                return webInterface.getCore().getPreferences().isRequireFullAccess();
        }
 
-       /**
-        * {@inheritDoc}
-        */
        @Override
        public boolean isEnabled(ToadletContext toadletContext) {
                if (webInterface.getCore().getPreferences().isRequireFullAccess() && !toadletContext.isAllowedFullAccess()) {