Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/classes/sun/rmi/rmic/newrmic/Resources.java
          +++ new/src/share/classes/sun/rmi/rmic/newrmic/Resources.java
↓ open down ↓ 61 lines elided ↑ open up ↑
  62   62      /**
  63   63       * Returns the text of the rmic resource for the specified key
  64   64       * formatted with the specified arguments.
  65   65       **/
  66   66      public static String getText(String key, String... args) {
  67   67          String format = getString(key);
  68   68          if (format == null) {
  69   69              format = "missing resource key: key = \"" + key + "\", " +
  70   70                  "arguments = \"{0}\", \"{1}\", \"{2}\"";
  71   71          }
  72      -        return MessageFormat.format(format, (Object[]) args);
       72 +        return MessageFormat.format(format, args);
  73   73      }
  74   74  
  75   75      /**
  76   76       * Returns the rmic resource string for the specified key.
  77   77       **/
  78   78      private static String getString(String key) {
  79   79          if (resourcesExt != null) {
  80   80              try {
  81   81                  return resourcesExt.getString(key);
  82   82              } catch (MissingResourceException e) {
↓ open down ↓ 13 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX