]> source.dussan.org Git - archiva.git/commitdiff
fix sonar issue : Double assignment of field
authorOlivier Lamy <olamy@apache.org>
Tue, 14 Jun 2011 08:46:07 +0000 (08:46 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 14 Jun 2011 08:46:07 +0000 (08:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1135408 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/SearchAction.java

index 818f5e0db1e0afaf1ba88f651c24bee409af9a81..0fd44d4e64401b5f3cc9b78600023084f115ff73 100644 (file)
@@ -87,7 +87,7 @@ public class SearchAction
 
     private static final String COMPLETE_QUERY_STRING_SEPARATOR = ";";
 
-    private List<String> managedRepositoryList;
+    private List<String> managedRepositoryList = new ArrayList<String>();
 
     private String groupId;
 
@@ -135,7 +135,6 @@ public class SearchAction
 
     public void prepare()
     {
-        managedRepositoryList = new ArrayList<String>();
         managedRepositoryList = getObservableRepos();
 
         if ( managedRepositoryList.size() > 0 )