Changes

Summary

  1. Fixed an Exception caused by casting an Array to Permission[] (commit: d4e1a04) (details)
  2. Use Collection#toArray(T[]) instead. (commit: d33af52) (details)
Commit d4e1a04253e7483f9069ca0f74ff677cad28d8e9 by noreply
Fixed an Exception caused by casting an Array to Permission[]
(commit: d4e1a04)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/Permission.java (diff)
Commit d33af5293e45e4f397cd87e7b4f1a03874e679ae by noreply
Use Collection#toArray(T[]) instead.
Like the toArray() method, this method acts as bridge between
array-based and collection-based APIs. Further, this method allows
precise control over the runtime type of the output array, and may,
under certain circumstances, be used to save allocation costs.
(commit: d33af52)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/Permission.java (diff)