From 6be3493bba1a8dc1b61563b73a6a1ca990674304 Mon Sep 17 00:00:00 2001 From: Mikael Capelle Date: Mon, 5 Mar 2018 17:55:51 +0100 Subject: [PATCH] Clean code. --- src/main/org/insa/algo/ArcFilterFactory.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/org/insa/algo/ArcFilterFactory.java b/src/main/org/insa/algo/ArcFilterFactory.java index 76bfefb..41d26e2 100644 --- a/src/main/org/insa/algo/ArcFilterFactory.java +++ b/src/main/org/insa/algo/ArcFilterFactory.java @@ -36,8 +36,9 @@ public class ArcFilterFactory { filters.add(new ArcFilter() { @Override public boolean isAllowed(Arc arc) { - return arc.getRoadInformation().getAccessRestrictions().isAllowedForAny(AccessMode.MOTORCAR, - EnumSet.complementOf(EnumSet.of(AccessRestriction.FORBIDDEN, AccessRestriction.PRIVATE))); + return arc.getRoadInformation().getAccessRestrictions() + .isAllowedForAny(AccessMode.MOTORCAR, EnumSet.complementOf(EnumSet + .of(AccessRestriction.FORBIDDEN, AccessRestriction.PRIVATE))); } @Override