Format source code using google-java-format

To follow the java style used by gerrit core and the majority of gerrit
plugins, format the code using google-java-format version 1.7.

Change-Id: I5724e766eda231b064030c11a167ff3768d2c247
diff --git a/src/main/java/com/gerritforge/gerrit/modules/virtualhost/ForHiddenProject.java b/src/main/java/com/gerritforge/gerrit/modules/virtualhost/ForHiddenProject.java
index 7883e48..9c29237 100644
--- a/src/main/java/com/gerritforge/gerrit/modules/virtualhost/ForHiddenProject.java
+++ b/src/main/java/com/gerritforge/gerrit/modules/virtualhost/ForHiddenProject.java
@@ -14,10 +14,6 @@
 
 package com.gerritforge.gerrit.modules.virtualhost;
 
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Set;
-
 import com.google.gerrit.extensions.restapi.AuthException;
 import com.google.gerrit.server.CurrentUser;
 import com.google.gerrit.server.notedb.ChangeNotes;
@@ -29,6 +25,9 @@
 import com.google.gerrit.server.permissions.ProjectPermission;
 import com.google.gerrit.server.permissions.RefPermission;
 import com.google.gerrit.server.query.change.ChangeData;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Set;
 
 public class ForHiddenProject extends ForProject {
   private final ForRef forRef = new HiddenForRef();
@@ -64,7 +63,8 @@
     }
 
     @Override
-    public Set<RefPermission> test(Collection<RefPermission> permSet) throws PermissionBackendException {
+    public Set<RefPermission> test(Collection<RefPermission> permSet)
+        throws PermissionBackendException {
       return Collections.emptySet();
     }
   }
@@ -82,12 +82,14 @@
     }
 
     @Override
-    public void check(ChangePermissionOrLabel perm) throws AuthException, PermissionBackendException {
+    public void check(ChangePermissionOrLabel perm)
+        throws AuthException, PermissionBackendException {
       throwDenied();
     }
 
     @Override
-    public <T extends ChangePermissionOrLabel> Set<T> test(Collection<T> permSet) throws PermissionBackendException {
+    public <T extends ChangePermissionOrLabel> Set<T> test(Collection<T> permSet)
+        throws PermissionBackendException {
       return Collections.emptySet();
     }
   }
@@ -108,12 +110,12 @@
   }
 
   @Override
-  public Set<ProjectPermission> test(Collection<ProjectPermission> permSet) throws PermissionBackendException {
+  public Set<ProjectPermission> test(Collection<ProjectPermission> permSet)
+      throws PermissionBackendException {
     return Collections.emptySet();
   }
 
   private void throwDenied() throws AuthException {
     throw new AuthException("Resource does not exist");
   }
-
 }
diff --git a/src/main/java/com/gerritforge/gerrit/modules/virtualhost/GuiceModule.java b/src/main/java/com/gerritforge/gerrit/modules/virtualhost/GuiceModule.java
index 33588f3..6a52bf3 100644
--- a/src/main/java/com/gerritforge/gerrit/modules/virtualhost/GuiceModule.java
+++ b/src/main/java/com/gerritforge/gerrit/modules/virtualhost/GuiceModule.java
@@ -23,8 +23,10 @@
 
   @Override
   protected void configure() {
-    install(new FactoryModuleBuilder().implement(WithVirtualHostUser.class, WithVirtualHostUser.class)
-        .build(WithVirtualHostUser.Factory.class));
+    install(
+        new FactoryModuleBuilder()
+            .implement(WithVirtualHostUser.class, WithVirtualHostUser.class)
+            .build(WithVirtualHostUser.Factory.class));
 
     bind(PermissionBackend.class).to(VirtualHostPermissionBackend.class).in(Scopes.SINGLETON);
   }
diff --git a/src/main/java/com/gerritforge/gerrit/modules/virtualhost/VirtualHostConfig.java b/src/main/java/com/gerritforge/gerrit/modules/virtualhost/VirtualHostConfig.java
index 51547fd..d2d1cc9 100644
--- a/src/main/java/com/gerritforge/gerrit/modules/virtualhost/VirtualHostConfig.java
+++ b/src/main/java/com/gerritforge/gerrit/modules/virtualhost/VirtualHostConfig.java
@@ -14,9 +14,10 @@
 
 package com.gerritforge.gerrit.modules.virtualhost;
 
+import com.google.gerrit.server.config.SitePaths;
+import com.google.inject.Inject;
 import java.io.File;
 import java.io.IOException;
-
 import org.eclipse.jgit.errors.ConfigInvalidException;
 import org.eclipse.jgit.lib.Config;
 import org.eclipse.jgit.storage.file.FileBasedConfig;
@@ -24,9 +25,6 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import com.google.gerrit.server.config.SitePaths;
-import com.google.inject.Inject;
-
 public class VirtualHostConfig {
   private static final Logger log = LoggerFactory.getLogger(VirtualHostConfig.class);
   private static final String[] EMPTY_PROJECTS_ARRAY = new String[0];
diff --git a/src/main/java/com/gerritforge/gerrit/modules/virtualhost/VirtualHostFilter.java b/src/main/java/com/gerritforge/gerrit/modules/virtualhost/VirtualHostFilter.java
index e5decb0..99eaa19 100644
--- a/src/main/java/com/gerritforge/gerrit/modules/virtualhost/VirtualHostFilter.java
+++ b/src/main/java/com/gerritforge/gerrit/modules/virtualhost/VirtualHostFilter.java
@@ -15,7 +15,6 @@
 package com.gerritforge.gerrit.modules.virtualhost;
 
 import java.io.IOException;
-
 import javax.servlet.Filter;
 import javax.servlet.FilterChain;
 import javax.servlet.FilterConfig;
@@ -27,8 +26,7 @@
 public class VirtualHostFilter implements Filter {
 
   @Override
-  public void init(FilterConfig filterConfig) throws ServletException {
-  }
+  public void init(FilterConfig filterConfig) throws ServletException {}
 
   @Override
   public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
@@ -38,6 +36,5 @@
   }
 
   @Override
-  public void destroy() {
-  }
+  public void destroy() {}
 }
diff --git a/src/main/java/com/gerritforge/gerrit/modules/virtualhost/WithVirtualHostUser.java b/src/main/java/com/gerritforge/gerrit/modules/virtualhost/WithVirtualHostUser.java
index 587287d..89e9e61 100644
--- a/src/main/java/com/gerritforge/gerrit/modules/virtualhost/WithVirtualHostUser.java
+++ b/src/main/java/com/gerritforge/gerrit/modules/virtualhost/WithVirtualHostUser.java
@@ -14,20 +14,19 @@
 
 package com.gerritforge.gerrit.modules.virtualhost;
 
-import java.util.Collection;
-import java.util.Set;
-
 import com.google.gerrit.extensions.api.access.GlobalOrPluginPermission;
 import com.google.gerrit.extensions.restapi.AuthException;
 import com.google.gerrit.reviewdb.client.Project.NameKey;
 import com.google.gerrit.server.CurrentUser;
 import com.google.gerrit.server.permissions.PermissionBackend.ForProject;
 import com.google.gerrit.server.permissions.PermissionBackend.WithUser;
-import com.google.inject.Inject;
-import com.google.inject.assistedinject.Assisted;
 import com.google.gerrit.server.permissions.PermissionBackendException;
 import com.google.gerrit.server.project.DefaultPermissionBackend;
 import com.google.gerrit.server.project.RefPatternMatcher;
+import com.google.inject.Inject;
+import com.google.inject.assistedinject.Assisted;
+import java.util.Collection;
+import java.util.Set;
 
 public class WithVirtualHostUser extends WithUser {
   private final CurrentUser user;
@@ -40,7 +39,9 @@
   }
 
   @Inject
-  WithVirtualHostUser(VirtualHostConfig config, DefaultPermissionBackend defaultBackend,
+  WithVirtualHostUser(
+      VirtualHostConfig config,
+      DefaultPermissionBackend defaultBackend,
       @Assisted CurrentUser user) {
     this.config = config;
     this.defaultPermissionBackend = defaultBackend;
@@ -50,8 +51,10 @@
 
   @Override
   public ForProject project(NameKey project) {
-    if (!config.isEnabled() || matches(project.get(),
-        CurrentServerName.get().map(config::getProjects).orElse(config.defaultProjects))) {
+    if (!config.isEnabled()
+        || matches(
+            project.get(),
+            CurrentServerName.get().map(config::getProjects).orElse(config.defaultProjects))) {
       return wrapped.project(project);
     }
 
@@ -68,12 +71,14 @@
   }
 
   @Override
-  public void check(GlobalOrPluginPermission perm) throws AuthException, PermissionBackendException {
+  public void check(GlobalOrPluginPermission perm)
+      throws AuthException, PermissionBackendException {
     wrapped.check(perm);
   }
 
   @Override
-  public <T extends GlobalOrPluginPermission> Set<T> test(Collection<T> permSet) throws PermissionBackendException {
+  public <T extends GlobalOrPluginPermission> Set<T> test(Collection<T> permSet)
+      throws PermissionBackendException {
     return wrapped.test(permSet);
   }
 }