From 1da1df156ef5c2f8521b8ecd28b6ad62bf410b97 Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 2 Oct 2016 15:44:46 +0100 Subject: [PATCH] Fix issues related to Node comparisons --- common/src/main/java/me/lucko/luckperms/core/Node.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/me/lucko/luckperms/core/Node.java b/common/src/main/java/me/lucko/luckperms/core/Node.java index a25645b58..3805f487a 100644 --- a/common/src/main/java/me/lucko/luckperms/core/Node.java +++ b/common/src/main/java/me/lucko/luckperms/core/Node.java @@ -38,8 +38,8 @@ import java.util.stream.IntStream; * An immutable permission node */ @SuppressWarnings({"WeakerAccess", "unused"}) -@ToString -@EqualsAndHashCode +@ToString(exclude = {"isPrefix", "isSuffix", "isMeta"}) +@EqualsAndHashCode(exclude = {"isPrefix", "isSuffix", "isMeta"}) public class Node implements me.lucko.luckperms.api.Node { private static final Pattern PREFIX_PATTERN = Pattern.compile("(?i)prefix\\.-?\\d+\\..*"); private static final Pattern SUFFIX_PATTERN = Pattern.compile("(?i)suffix\\.-?\\d+\\..*");