Run IntelliJ IDEA inspections

This commit is contained in:
vemacs 2015-06-03 14:11:56 -06:00
parent c03765803c
commit 73ac6488ce
46 changed files with 134 additions and 158 deletions

View file

@ -29,7 +29,7 @@ public class Commandpotion extends EssentialsCommand {
final ItemStack stack = user.getBase().getItemInHand();
if (args.length == 0) {
final Set<String> potionslist = new TreeSet<String>();
final Set<String> potionslist = new TreeSet<>();
for (Map.Entry<String, PotionEffectType> entry : Potions.entrySet()) {
final String potionName = entry.getValue().getName().toLowerCase(Locale.ENGLISH);
if (potionslist.contains(potionName) || (user.isAuthorized("essentials.potion." + potionName))) {