use default navigation matching
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 24 Dec 2013 23:31:04 +0000 (01:31 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 24 Dec 2013 23:31:04 +0000 (01:31 +0200)
src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java

index d40ff57..c66e22a 100755 (executable)
@@ -10,7 +10,7 @@ import eu.svjatoslav.commons.string.WildCardMatcher;
 
 public class NavigationItem {
 
-       private String matchingWildcard;
+       private final String matchingWildcard;
        private final Map<Locale, String> localeToTitle = new HashMap<Locale, String>();
        ArrayList<NavigationItem> subElements = new ArrayList<NavigationItem>();
        private Locale[] localeOrder;
@@ -31,6 +31,7 @@ public class NavigationItem {
                        final String... titles) {
                this.parent = parent;
                this.linkUrl = linkUrl;
+               matchingWildcard = linkUrl;
 
                initializeLocalizedTitles(titles);
        }