X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2Fresources%2FBundle.java;fp=src%2Fbe%2Fnikiroo%2Futils%2Fresources%2FBundle.java;h=21021e065f05a938f4521bfb5fd399b40847a77d;hb=24604392c3aa6d9298aacd10fde7bb2df1322a10;hp=68c236fa108e7f54d842775d408607f7e2a7551c;hpb=a09479d87b08405ab24ff87abd1a47ac8ca29165;p=nikiroo-utils.git diff --git a/src/be/nikiroo/utils/resources/Bundle.java b/src/be/nikiroo/utils/resources/Bundle.java index 68c236f..21021e0 100644 --- a/src/be/nikiroo/utils/resources/Bundle.java +++ b/src/be/nikiroo/utils/resources/Bundle.java @@ -143,7 +143,8 @@ public class Bundle> { /** * Return the value associated to the given id as a {@link String}. *

- * If no value is associated, take the default one if any. + * If no value is associated (or if it is empty!), take the default one if + * any. * * @param id * the id of the value to get @@ -168,7 +169,6 @@ public class Bundle> { } } - //TODO: is it ok? need to jDoc? if (rep == null || rep.isEmpty()) { return def; }