From 6ddfea297cc4a1136503a454631f5bc5c72412b1 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Tue, 14 Jan 2014 21:49:36 +0200 Subject: [PATCH] fixed default locale selection for web navigation --- .../commons/network/navigation/NavigationItem.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 a9ad856..6ab67e2 100755 --- a/src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java +++ b/src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java @@ -17,12 +17,12 @@ public class NavigationItem { private NavigationItem parent; private final String linkUrl; - public NavigationItem() { - this(Locale.ENG); - } - public NavigationItem(final Locale... localeOrder) { - this.localeOrder = localeOrder; + if (localeOrder.length == 0) + this.localeOrder = new Locale[] { Locale.ENG }; + else + this.localeOrder = localeOrder; + matchingPattern = null; linkUrl = null; } -- 2.20.1