mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
16.22.2007 4b75ccc54565a9c317f8f1f33790380ba32efabb
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.
2 files modified
5 ■■■■■ changed files
opends/src/messages/src/org/opends/messages/Message.java 2 ●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/ui/UIFactory.java 3 ●●●● patch | view | raw | blame | history
opends/src/messages/src/org/opends/messages/Message.java
@@ -112,7 +112,7 @@
   * @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();
opends/src/quicksetup/org/opends/quicksetup/ui/UIFactory.java
@@ -1694,7 +1694,8 @@
          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;
      }