projects
/
svjatoslav_commons.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
localized navigation menu
[svjatoslav_commons.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
commons
/
network
/
navigation
/
NavigationItem.java
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
22ba6b0
..
14c8b0a
100755
(executable)
--- a/
src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java
+++ b/
src/main/java/eu/svjatoslav/commons/network/navigation/NavigationItem.java
@@
-99,7
+99,8
@@
public class NavigationItem {
public String getTitle() {
if (localeToTitle.size() != 1)
public String getTitle() {
if (localeToTitle.size() != 1)
- throw new RuntimeException("there shall be exactly one title");
+ throw new RuntimeException(
+ "NavigationItem.getTitle() was called without locale parameter, but there there are multiple titles in diffirent locales available.");
return localeToTitle.values().iterator().next();
}
return localeToTitle.values().iterator().next();
}