cleanup
authorAndreas Müller <a.mueller@bgbm.org>
Tue, 26 Jun 2018 14:57:52 +0000 (16:57 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Tue, 26 Jun 2018 14:58:08 +0000 (16:58 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/SearchManager.java

index 14bc578ad0d5e424ea3cfb0b286042a196a78139..56768cf43adb37ff01c81fb4ea7fc132cf9b0a37 100644 (file)
@@ -53,8 +53,6 @@ import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
  */
 public class SearchManager {
 
-       public static final List NO_RESULTS = Arrays.asList(new Object[]{});
-
        public static final String WILDCARD = "*"; //$NON-NLS-1$
 
        public static int NO_COUNT = -1;
@@ -75,13 +73,13 @@ public class SearchManager {
                        IIdentifiableEntityServiceConfigurator configurator) {
                if(true){
                    //if activated again remember to add uuid search results like in other searches
-                       return NO_RESULTS;
+                       return Arrays.asList(new NameRelationship[]{});
                }
 
                List<NameRelationship> relationships = new ArrayList<>();
                List<RelationshipBase> all = CdmStore.getService(INameService.class).getAllRelationships(0, 0);
 
-               for (RelationshipBase relationship : all){
+               for (RelationshipBase<?,?,?> relationship : all){
                        if(relationship instanceof NameRelationship){
                                relationships.add((NameRelationship) relationship);
                        }