mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
CE-936 - Wrap sets w/ HashSets, for mutability.
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
package com.kingsrook.qqq.backend.core.model.metadata.tables;
|
||||
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
@ -50,7 +51,7 @@ public enum Capability
|
||||
*******************************************************************************/
|
||||
public static Set<Capability> allReadCapabilities()
|
||||
{
|
||||
return (Set.of(TABLE_QUERY, TABLE_GET, TABLE_COUNT, QUERY_STATS));
|
||||
return (new HashSet<>(Set.of(TABLE_QUERY, TABLE_GET, TABLE_COUNT, QUERY_STATS)));
|
||||
}
|
||||
|
||||
|
||||
@ -60,7 +61,7 @@ public enum Capability
|
||||
*******************************************************************************/
|
||||
public static Set<Capability> allWriteCapabilities()
|
||||
{
|
||||
return (Set.of(TABLE_INSERT, TABLE_UPDATE, TABLE_DELETE));
|
||||
return (new HashSet<>(Set.of(TABLE_INSERT, TABLE_UPDATE, TABLE_DELETE)));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user