Sebastian Sdorra avatar Sebastian Sdorra committed 29d27bf

indent

Comments (0)

Files changed (1)

scm-webapp/src/main/java/sonia/scm/BindingExtensionProcessor.java

 
 //~--- non-JDK imports --------------------------------------------------------
 
+import com.google.common.collect.Sets;
 import com.google.inject.Binder;
 import com.google.inject.Module;
 import com.google.inject.multibindings.Multibinder;
    */
   public BindingExtensionProcessor()
   {
-    this.moduleSet = new HashSet<Module>();
-    this.extensions = new HashSet<Class<?>>();
+    this.moduleSet = Sets.newHashSet();
+    this.extensions = Sets.newHashSet();
   }
 
   //~--- methods --------------------------------------------------------------
         if (logger.isInfoEnabled())
         {
           logger.info("bind AuthenticationHandler {}",
-                      extensionClass.getName());
+            extensionClass.getName());
         }
 
         binder.bind(extensionClass);
         if (logger.isInfoEnabled())
         {
           logger.info("bind AuthenticaitonListener {}",
-                      extensionClass.getName());
+            extensionClass.getName());
         }
 
         binder.bind(extensionClass);
         if (logger.isInfoEnabled())
         {
           logger.info("bind ChangesetPreProcessor {}",
-                      extensionClass.getName());
+            extensionClass.getName());
         }
 
         changesetPreProcessorBinder.addBinding().to(extensionClass);
       }
-      else if (ChangesetPreProcessorFactory.class.isAssignableFrom(
-              extensionClass))
+      else if (
+        ChangesetPreProcessorFactory.class.isAssignableFrom(extensionClass))
       {
         if (logger.isInfoEnabled())
         {
           logger.info("bind ChangesetPreProcessorFactory {}",
-                      extensionClass.getName());
+            extensionClass.getName());
         }
 
         changesetPreProcessorFactoryBinder.addBinding().to(extensionClass);
         if (logger.isInfoEnabled())
         {
           logger.info("bind FileObjectPreProcessor {}",
-                      extensionClass.getName());
+            extensionClass.getName());
         }
 
         fileObjectPreProcessorBinder.addBinding().to(extensionClass);
       }
-      else if (FileObjectPreProcessorFactory.class.isAssignableFrom(
-              extensionClass))
+      else if (
+        FileObjectPreProcessorFactory.class.isAssignableFrom(extensionClass))
       {
         if (logger.isInfoEnabled())
         {
           logger.info("bind FileObjectPreProcessorFactory {}",
-                      extensionClass.getName());
+            extensionClass.getName());
         }
 
         fileObjectPreProcessorFactoryBinder.addBinding().to(extensionClass);
         if (logger.isInfoEnabled())
         {
           logger.info("bind BlameLinePreProcessor {}",
-                      extensionClass.getName());
+            extensionClass.getName());
         }
 
         blameLinePreProcessorBinder.addBinding().to(extensionClass);
       }
-      else if (BlameLinePreProcessorFactory.class.isAssignableFrom(
-              extensionClass))
+      else if (
+        BlameLinePreProcessorFactory.class.isAssignableFrom(extensionClass))
       {
         if (logger.isInfoEnabled())
         {
           logger.info("bind BlameLinePreProcessorFactory {}",
-                      extensionClass.getName());
+            extensionClass.getName());
         }
 
         blameLinePreProcessorFactoryBinder.addBinding().to(extensionClass);
         if (logger.isInfoEnabled())
         {
           logger.info("bind RepositoryRequestListener {}",
-                      extensionClass.getName());
+            extensionClass.getName());
         }
 
         repositoryRequestListenerBinder.addBinding().to(extensionClass);
         if (logger.isInfoEnabled())
         {
           logger.info("bind ServletContextListener {}",
-                      extensionClass.getName());
+            extensionClass.getName());
         }
 
         servletContextListenerBinder.addBinding().to(extensionClass);
         if (logger.isInfoEnabled())
         {
           logger.info("bind RepositoryServiceResolver {}",
-                      extensionClass.getName());
+            extensionClass.getName());
         }
 
         repositoryServiceResolverBinder.addBinding().to(extensionClass);
    *
    */
   private <T> void bind(Binder binder, Class<T> type,
-                        Class<? extends T> bindingType)
+    Class<? extends T> bindingType)
   {
     if (logger.isDebugEnabled())
     {
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.