Skip to content

Commit

Permalink
Sorted EntityTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
hylkevds committed Jun 23, 2023
1 parent c7396b5 commit f4bfef2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
import de.fraunhofer.iosb.ilt.frostserver.property.type.TypeComplex;
import de.fraunhofer.iosb.ilt.frostserver.property.type.TypeSimpleCustom;
import de.fraunhofer.iosb.ilt.frostserver.property.type.TypeSimplePrimitive;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -62,12 +62,12 @@ public class ModelRegistry {
/**
* All entity types.
*/
private final Set<EntityType> entityTypes = new LinkedHashSet<>();
private final Set<EntityType> entityTypes = new TreeSet<>();

/**
* All entity types accessible to non-admin users.
*/
private final Set<EntityType> entityTypesNonAdmin = new LinkedHashSet<>();
private final Set<EntityType> entityTypesNonAdmin = new TreeSet<>();

/**
* All property types by their name.
Expand Down

0 comments on commit f4bfef2

Please sign in to comment.