Fixed indent and javadoc from previous commit

This commit is contained in:
Florian CUNY 2019-05-11 14:28:57 +02:00
parent 8ce47772c2
commit b4fe70da0c
2 changed files with 57 additions and 57 deletions

View File

@ -1,22 +1,21 @@
package world.bentobox.bentobox.managers;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.bukkit.Bukkit;
import org.bukkit.event.HandlerList;
import org.bukkit.event.Listener;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.api.addons.Addon;
import world.bentobox.bentobox.api.flags.Flag;
import world.bentobox.bentobox.lists.Flags;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
/**
* @author Poslovitch
* @author tastybento
@ -42,17 +41,18 @@ public class FlagsManager {
}
/**
* Register a new flag.
* Registers a new flag.
* Consider using {@link #registerFlag(Addon, Flag)} instead if your flag declares a listener.
* @param flag flag to be registered
* @return true if successfully registered, false if not, e.g., because one with the same ID already exists
* @see Consider using {@link #registerFlag(Addon, Flag)} instead if your flag declares a listener
* @see #registerFlag(Addon, Flag)
*/
public boolean registerFlag(@NonNull Flag flag) {
return registerFlag(null, flag);
}
/**
* Register a new flag.
* Registers a new flag.
* @param addon - addon that is registering this flag
* @param flag flag to be registered
* @return true if successfully registered, false if not, e.g., because one with the same ID already exists