package net.md_5.bungee.api.plugin;

import java.util.Set;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * POJO representing the plugin.yml file.
 */
@Data
@AllArgsConstructor
public class PluginDescription
{

    /**
     * Friendly name of the plugin.
     */
    private String name;
    /**
     * Plugin main class. Needs to extend {@link Plugin}.
     */
    private String main;
    /**
     * Plugin version.
     */
    private String version;
    /**
     * Plugin author.
     */
    private String author;
    /**
     * Plugin hard dependencies.
     */
    private Set<String> depends;

    public PluginDescription()
    {
    }
}

@@ -30,16 +30,42 @@
 lugin;%0A%0A
+import java.util.HashSet;%0A
 import j
@@ -74,24 +74,24 @@
 a.util.Set;%0A
-
 import lombo
@@ -131,16 +131,49 @@
 ok.Data;
+%0Aimport lombok.NoArgsConstructor;
 %0A%0A/**%0A *
@@ -220,14 +220,33 @@
  */%0A
-
 @Data%0A
+@NoArgsConstructor%0A
 @All
@@ -687,52 +687,26 @@
 ends
-;%0A%0A    public PluginDescription()%0A    %7B%0A    %7D
+ = new HashSet%3C%3E();
 %0A%7D%0A

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