]> source.dussan.org Git - archiva.git/commitdiff
fix formatting
authorOlivier Lamy <olamy@apache.org>
Thu, 3 Nov 2011 15:19:00 +0000 (15:19 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 3 Nov 2011 15:19:00 +0000 (15:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1197180 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSearchService.java

index cc7b60690d8deec41090304bff06746fe72b727d..d71f26a4d37686cf34bcf382387c068534e44547 100644 (file)
@@ -49,7 +49,6 @@ import org.springframework.stereotype.Service;
 import javax.inject.Inject;
 import javax.servlet.http.HttpServletRequest;
 import java.util.ArrayList;
-import java.util.Collection;
 import java.util.Collections;
 import java.util.List;
 
@@ -141,18 +140,18 @@ public class DefaultSearchService
         }
     }
 
-    public GroupIdList getAllGroupIds(List<String> selectedRepos)
+    public GroupIdList getAllGroupIds( List<String> selectedRepos )
         throws ArchivaRestServiceException
     {
         List<String> observableRepos = getObservableRepos();
         List<String> repos = ListUtils.intersection( observableRepos, selectedRepos );
-        if (repos == null || repos.isEmpty())
+        if ( repos == null || repos.isEmpty() )
         {
             return new GroupIdList( Collections.<String>emptyList() );
         }
         try
         {
-            return new GroupIdList( new ArrayList<String>( repositorySearch.getAllGroupIds( getPrincipal(), repos  ) ) );
+            return new GroupIdList( new ArrayList<String>( repositorySearch.getAllGroupIds( getPrincipal(), repos ) ) );
         }
         catch ( RepositorySearchException e )
         {
@@ -293,7 +292,8 @@ public class DefaultSearchService
 
     protected String getBaseUrl( HttpServletRequest req )
     {
-        return req.getScheme() + "://" + req.getServerName()
-            + ( req.getServerPort() == 80 ? "" : ":" + req.getServerPort() ) + req.getContextPath();
+        return req.getScheme() + "://" + req.getServerName() + ( req.getServerPort() == 80
+            ? ""
+            : ":" + req.getServerPort() ) + req.getContextPath();
     }
 }