package jp.sourceforge.mikutoga.pmd;
+import java.util.List;
import java.util.Locale;
import java.util.ResourceBundle;
BONEDDYNAMICS(0x02),
;
+ private static final ResourceBundle.Control NOFALLBACK;
private static final String FAMILY_NAME =
"jp.sourceforge.mikutoga.pmd.resources.RigidBehaviorTypeName";
+ static{
+ List<String> rbforms = ResourceBundle.Control.FORMAT_DEFAULT;
+ NOFALLBACK = ResourceBundle.Control.getNoFallbackControl(rbforms);
+
+ String name = FOLLOWBONE.getClass().getPackage().getName();
+ assert FAMILY_NAME.startsWith(name);
+ }
+
+
private final byte encoded;
/**
*/
public String getGuiName(){
Locale locale = Locale.getDefault();
+ assert locale != null;
return getGuiName(locale);
}
*/
public String getGuiName(Locale locale){
if(locale == null) return getGuiName();
- ResourceBundle rb = ResourceBundle.getBundle(FAMILY_NAME, locale);
+ ResourceBundle rb =
+ ResourceBundle.getBundle(FAMILY_NAME, locale, NOFALLBACK);
String key = name();
String result = rb.getString(key);
return result;