Skip to content

Commit

Permalink
chore: spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Nov 20, 2024
1 parent e4628ce commit 26d7016
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/io/getunleash/util/ConstraintMerger.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public static List<Constraint> 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)
Expand Down
4 changes: 3 additions & 1 deletion src/test/java/io/getunleash/util/IpAddressMatcherTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@

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");
Expand Down

0 comments on commit 26d7016

Please sign in to comment.