Project

General

Profile

« Previous | Next » 

Revision 9f42f4d1

Added by Andreas Müller almost 6 years ago

revert cleanup

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/SearchManager.java
53 53
 */
54 54
public class SearchManager {
55 55

  
56
	public static final List NO_RESULTS = Arrays.asList(new Object[]{});
57

  
56 58
	public static final String WILDCARD = "*"; //$NON-NLS-1$
57 59

  
58 60
	public static int NO_COUNT = -1;
......
73 75
			IIdentifiableEntityServiceConfigurator configurator) {
74 76
		if(true){
75 77
		    //if activated again remember to add uuid search results like in other searches
76
			return Arrays.asList(new NameRelationship[]{});
78
			return NO_RESULTS;
77 79
		}
78 80

  
79 81
		List<NameRelationship> relationships = new ArrayList<>();
80 82
		List<RelationshipBase> all = CdmStore.getService(INameService.class).getAllRelationships(0, 0);
81 83

  
82
		for (RelationshipBase<?,?,?> relationship : all){
84
		for (RelationshipBase relationship : all){
83 85
			if(relationship instanceof NameRelationship){
84 86
				relationships.add((NameRelationship) relationship);
85 87
			}

Also available in: Unified diff