From a4f12f310bcce98e7ee70fe57249c141ffba0023 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Wed, 25 Dec 2013 01:56:18 +0200 Subject: [PATCH] default locale for root navigation item --- .../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 c66e22a..4e58e44 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(final Locale... localeOrder) { - if (localeOrder.length == 0) - this.localeOrder = new Locale[] { Locale.ENG }; - else - this.localeOrder = localeOrder; + public NavigationItem() { + this(new Locale[] { Locale.ENG }); + } + public NavigationItem(final Locale... localeOrder) { + this.localeOrder = localeOrder; matchingWildcard = null; linkUrl = null; } -- 2.20.1