Make a change to remove additional ambiguity among Messages.raw methods. The
version with arguments (Object, Object...) has been renamed to fromObject, as
it may have been seen as a conflict with one or more other raw methods. There
was only a single existing use of the renamed method, and it has been updated.
| | |
| | | * @return a message object that will render the same in all locales; |
| | | * null if <code>object</code> is null |
| | | */ |
| | | static public Message raw(Object object, Object... arguments) { |
| | | static public Message fromObject(Object object, Object... arguments) { |
| | | Message message = null; |
| | | if (object != null) { |
| | | CharSequence cs = object.toString(); |
| | |
| | | boolean isSelected, |
| | | boolean cellHasFocus) |
| | | { |
| | | JLabel l = makeJLabel(IconType.NO_ICON, Message.raw(value), textStyle); |
| | | JLabel l = makeJLabel(IconType.NO_ICON, Message.fromObject(value), |
| | | textStyle); |
| | | l.setBorder(new EmptyBorder(TOP_INSET_SECONDARY_FIELD, 0, 0, 0)); |
| | | return l; |
| | | } |