mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-31 20:33:52 -07:00
[Bleeding] Cleaned up unsafe casts. Addresses BUKKIT-844
Removed internal collection leaks from PluginDescriptionFile BREAKING: PluginDescriptionFile.getAuthors() now returns List instead of ArrayList Various places with unsafe generics, notably List<Object> getList() in Configurations are now referenced as <?>. This is nonbreaking, but sourcecode will need to be revised when compiled. By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
@@ -9,7 +9,6 @@ import java.util.Map.Entry;
|
||||
/**
|
||||
* A list of event handlers, stored per-event. Based on lahwran's fevents.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public class HandlerList {
|
||||
/**
|
||||
* Handler array. This field being an array is the key to this system's speed.
|
||||
@@ -203,6 +202,7 @@ public class HandlerList {
|
||||
*
|
||||
* @return the list of all handler lists
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static ArrayList<HandlerList> getHandlerLists() {
|
||||
return (ArrayList<HandlerList>) allLists.clone();
|
||||
}
|
||||
|
Reference in New Issue
Block a user