Sam Adams avatar Sam Adams committed 7251318

Fixed checkstyle violations

Comments (0)

Files changed (4)

quixote-repository-chempound/src/main/java/uk/ac/cam/ch/wwmm/quixote/QuixoteChempoundServletConfig.java

 package uk.ac.cam.ch.wwmm.quixote;
 
-import com.google.inject.AbstractModule;
+import com.google.inject.Module;
 import net.chempound.webapp.ChempoundServletConfig;
 
 /**
         super();
     }
 
-    protected AbstractModule getPluginsModule() {
+    protected Module getPluginsModule() {
         return new QuixotePluginsModule();
     }
 

quixote-repository-chempound/src/main/java/uk/ac/cam/ch/wwmm/quixote/QuixoteWebappLauncher.java

 package uk.ac.cam.ch.wwmm.quixote;
 
-import com.google.inject.AbstractModule;
+import com.google.inject.Module;
 import net.chempound.webapp.ChempoundWebappLauncher;
 
 /**
     }
 
     @Override
-    protected AbstractModule getPluginsModule() {
+    protected Module getPluginsModule() {
         return new QuixotePluginsModule();
     }
 

quixote-repository-standalone/src/checkstyle/suppressions.xml

+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE suppressions PUBLIC
+        "-//Puppy Crawl//DTD Suppressions 1.1//EN"
+        "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
+<suppressions>
+    <suppress files="src/main/java/EmbeddedJettyServer.java$" checks="PackageDeclaration" />
+</suppressions>

quixote-repository-standalone/src/main/java/EmbeddedJettyServer.java

 /**
  * @author Sam Adams
  */
-public class EmbeddedJettyServer {
+public final class EmbeddedJettyServer {
 
     private final Map<String,String> initParams = new HashMap<String, String>();
     private final WebAppContext webAppContext;
     }
 
     private void checkUri() {
-        String uri = System.getProperty("chempound.uri");
+        final String uri = System.getProperty("chempound.uri");
         if (uri == null) {
             initParams.put("chempound.uri", "http://localhost:8181/");
             port = 8181;
         } else {
-            URI u = URI.create(uri);
+            final URI u = URI.create(uri);
             port = u.getPort() == -1 ? 80 : u.getPort();
         }
     }
 
-    public static void main(String[] args) throws Exception {
+    public static void main(final String[] args) throws Exception {
         final EmbeddedJettyServer server = new EmbeddedJettyServer();
         server.run();
     }
 
-}
+}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.