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=85abfe73da7ae5c3139c20acc98e103abf0a4e7b;hb=d18e136e69f03efe5fd6b8e6536cf8ad9033da1a;hp=5932cfff71db0793a074a0bddccf9b56a5b34e25;hpb=22f24988413c71e7240e0a32994160b3ffa54c57;p=nikiroo-utils.git diff --git a/src/be/nikiroo/utils/resources/Bundle.java b/src/be/nikiroo/utils/resources/Bundle.java index 5932cff..85abfe7 100644 --- a/src/be/nikiroo/utils/resources/Bundle.java +++ b/src/be/nikiroo/utils/resources/Bundle.java @@ -182,7 +182,7 @@ public class Bundle> { return def; } - + /** * Set the value associated to the given id as a {@link Boolean}. * @@ -196,7 +196,6 @@ public class Bundle> { setString(id.name(), BundleHelper.fromBoolean(value)); } - /** * Return the value associated to the given id as an {@link Integer}. * @@ -240,7 +239,7 @@ public class Bundle> { public void setInteger(E id, int value) { setString(id.name(), BundleHelper.fromInteger(value)); } - + /** * Return the value associated to the given id as a {@link Character}. * @@ -505,12 +504,11 @@ public class Bundle> { String[] list = meta.list(); boolean nullable = meta.nullable(); String def = meta.def(); - String info = meta.info(); boolean array = meta.array(); // Default, empty values -> NULL - if (desc.length() + list.length + info.length() + def.length() == 0 - && !group && nullable && format == Meta.Format.STRING) { + if (desc.length() + list.length + def.length() == 0 && !group + && nullable && format == Meta.Format.STRING) { return null; } @@ -525,7 +523,7 @@ public class Bundle> { } else { builder.append(" (FORMAT: ").append(format) .append(nullable ? "" : " (required)"); - builder.append(") ").append(info); + builder.append(") "); if (list.length > 0) { builder.append("\n# ALLOWED VALUES:");