diff --git a/src/main/java/io/getunleash/util/ConstraintMerger.java b/src/main/java/io/getunleash/util/ConstraintMerger.java index 7440decb..28db759e 100644 --- a/src/main/java/io/getunleash/util/ConstraintMerger.java +++ b/src/main/java/io/getunleash/util/ConstraintMerger.java @@ -17,8 +17,7 @@ public static List mergeConstraints( Optional.ofNullable(strategy.getConstraints()) .orElseGet(Collections::emptyList), Optional.ofNullable(strategy.getSegments()) - .orElseGet(Collections::emptyList) - .stream() + .orElseGet(Collections::emptyList).stream() .map(repository::getSegment) .map(s -> s == null ? DENY_SEGMENT : s) .map(Segment::getConstraints) diff --git a/src/test/java/io/getunleash/util/IpAddressMatcherTest.java b/src/test/java/io/getunleash/util/IpAddressMatcherTest.java index 8b2bf5cb..f9d48f37 100644 --- a/src/test/java/io/getunleash/util/IpAddressMatcherTest.java +++ b/src/test/java/io/getunleash/util/IpAddressMatcherTest.java @@ -19,9 +19,7 @@ import org.junit.jupiter.api.Test; -/** - * @author Luke Taylor - */ +/** @author Luke Taylor */ class IpAddressMatcherTest { private final IpAddressMatcher v6matcher = new IpAddressMatcher("fe80::21f:5bff:fe33:bd68"); private final IpAddressMatcher v4matcher = new IpAddressMatcher("192.168.1.104");