Fix call to types.toArray() in ComponentPresetDatabase.java to generate array using correct type instead of trying to do a cast.
This commit is contained in:
parent
bd251831f7
commit
afbccd416d
@ -99,7 +99,7 @@ public class ComponentPresetDatabase extends Database<ComponentPreset> implement
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ComponentPreset> listForTypes( List<ComponentPreset.Type> types ) {
|
public List<ComponentPreset> listForTypes( List<ComponentPreset.Type> types ) {
|
||||||
return listForTypes( (ComponentPreset.Type[]) types.toArray() );
|
return listForTypes( types.toArray(new ComponentPreset.Type[0]) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user