mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
do not cast immutable set as unmodifiable set
This commit is contained in:
parent
b1efb68304
commit
ce8bda9f63
3 changed files with 5 additions and 5 deletions
|
|
@ -65,7 +65,7 @@ abstract class AbstractMaterialGroup(private val name: String) {
|
|||
/**
|
||||
* Get the group contained item as a set
|
||||
*/
|
||||
abstract fun getItemTypes(): ImmutableSet<ItemType>
|
||||
abstract fun getItemTypes(): Set<ItemType>
|
||||
|
||||
/**
|
||||
* Get the group non-inherited items as a set
|
||||
|
|
|
|||
|
|
@ -69,8 +69,8 @@ class ExcludeGroup(name: String) : AbstractMaterialGroup(name) {
|
|||
}
|
||||
}
|
||||
|
||||
override fun getItemTypes(): ImmutableSet<ItemType> {
|
||||
return Collections.unmodifiableSet(groupItems) as ImmutableSet<ItemType>
|
||||
override fun getItemTypes(): Set<ItemType> {
|
||||
return Collections.unmodifiableSet(groupItems)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -68,8 +68,8 @@ class IncludeGroup(name: String) : AbstractMaterialGroup(name) {
|
|||
}
|
||||
}
|
||||
|
||||
override fun getItemTypes(): ImmutableSet<ItemType> {
|
||||
return Collections.unmodifiableSet(groupItems) as ImmutableSet<ItemType>
|
||||
override fun getItemTypes(): Set<ItemType> {
|
||||
return Collections.unmodifiableSet(groupItems)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue