From: Svjatoslav Agejenko Date: Tue, 24 Dec 2013 23:31:04 +0000 (+0200) Subject: use default navigation matching X-Git-Tag: svjatoslavcommons-1.8~118 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=0797aedfb9f9c8094430285dc93d5437ddc81829;p=svjatoslav_commons.git use default navigation matching --- diff --git a/src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java b/src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java index d40ff57..c66e22a 100755 --- a/src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java +++ b/src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java @@ -10,7 +10,7 @@ import eu.svjatoslav.commons.string.WildCardMatcher; public class NavigationItem { - private String matchingWildcard; + private final String matchingWildcard; private final Map localeToTitle = new HashMap(); ArrayList subElements = new ArrayList(); private Locale[] localeOrder; @@ -31,6 +31,7 @@ public class NavigationItem { final String... titles) { this.parent = parent; this.linkUrl = linkUrl; + matchingWildcard = linkUrl; initializeLocalizedTitles(titles); }