src/share/classes/com/sun/tools/javac/api/Formattable.java

changeset 136
8eafba4f61be
parent 80
5c9cdeb740f2
child 161
ddd75a295501
     1.1 --- a/src/share/classes/com/sun/tools/javac/api/Formattable.java	Thu Oct 09 16:04:29 2008 +0100
     1.2 +++ b/src/share/classes/com/sun/tools/javac/api/Formattable.java	Thu Oct 09 16:07:38 2008 +0100
     1.3 @@ -25,7 +25,7 @@
     1.4  
     1.5  package com.sun.tools.javac.api;
     1.6  
     1.7 -import java.util.ResourceBundle;
     1.8 +import java.util.Locale;
     1.9  
    1.10  /**
    1.11   * This interface must be implemented by any javac class that has non-trivial
    1.12 @@ -39,10 +39,11 @@
    1.13       * Used to obtain a localized String representing the object accordingly
    1.14       * to a given locale
    1.15       *
    1.16 -     * @param bundle resource bundle class used for localization
    1.17 +     * @param locale locale in which the object's representation is to be rendered
    1.18 +     * @param messages messages object used for localization
    1.19       * @return a locale-dependent string representing the object
    1.20       */
    1.21 -    public String toString(ResourceBundle bundle);
    1.22 +    public String toString(Locale locale, Messages messages);
    1.23      /**
    1.24       * Retrieve a pretty name of this object's kind
    1.25       * @return a string representing the object's kind

mercurial