++i;
if (++icomp >= mcomp || i == (otherdb.size()))
{
- ifetch.setText(MessageManager.formatMessage("label.source_to_target",new String[]{imname,sname}));
+ ifetch.setText(MessageManager.formatMessage("label.source_to_target",imname,sname));
dfetch.add(ifetch);
ifetch = new JMenu();
imname = null;
++dbi;
if (comp >= mcomp || dbi >= (dbclasses.length))
{
- dfetch.setText(MessageManager.formatMessage("label.source_to_target",new String[]{mname,dbclass}));
+ dfetch.setText(MessageManager.formatMessage("label.source_to_target",mname,dbclass));
rfetch.add(dfetch);
dfetch = new JMenu();
mname = null;
public static Locale getLocale() {
return loc;
}
- public static String formatMessage(String key, Object[] params){
- return MessageFormat.format(rb.getString(key), params);
+ public static String formatMessage(String key, Object... params){
+ return MessageFormat.format(rb.getString(key), (Object[]) params);
}
}