Initialize depends set to an empty set to prevent a NPE when no depends given.

This commit is contained in:
Steve Anton 2013-04-10 16:30:30 -07:00 committed by md_5
parent c8c1028bd9
commit fecaf76acf

View File

@ -1,13 +1,16 @@
package net.md_5.bungee.api.plugin; package net.md_5.bungee.api.plugin;
import java.util.HashSet;
import java.util.Set; import java.util.Set;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor;
/** /**
* POJO representing the plugin.yml file. * POJO representing the plugin.yml file.
*/ */
@Data @Data
@NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
public class PluginDescription public class PluginDescription
{ {
@ -31,9 +34,5 @@ public class PluginDescription
/** /**
* Plugin hard dependencies. * Plugin hard dependencies.
*/ */
private Set<String> depends; private Set<String> depends = new HashSet<>();
public PluginDescription()
{
}
} }