Uploaded image for project: 'SAStruts'
  1. SAStruts
  2. SASTRUTS-121

MessageResourcesUtilで可変長引数をサポートしました

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.0.4-sp7
    • 1.0.4-sp6
    • SAStruts
    • None

    Description

      細かい話になりますが、

      public static String getMessage(String key, Object... args){
      	return MessageResourcesUtil.getMessageResources().getMessage(key, args);
      }
      

      のようなメソッドがあると、いったんオブジェクト配列を生成する必要もなく、

      {0}

      に値を入れることができて使い勝手が良くなると考えています。

      現状のメソッドから考えると以下の2つが追加されるとうれしいです。

      public static String getMessage(Locale locale, String key, Object... args);
      public static String getMessage(String key, Object... args);
      

      Attachments

        Activity

          People

            higa higa
            shinsuke shinsuke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: