User: pathoss 
  Date: 02/05/15 00:13:04

  Modified:    core/src/xdoclet/util Tag: MODULE_REFACTORING_BRANCH
                        Translator.java
  Log:
  Made the class final, done some small javadoc updates.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.5.2.3   +16 -12    xdoclet/core/src/xdoclet/util/Translator.java
  
  Index: Translator.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/util/Translator.java,v
  retrieving revision 1.5.2.2
  retrieving revision 1.5.2.3
  diff -u -w -r1.5.2.2 -r1.5.2.3
  --- Translator.java   12 May 2002 11:58:04 -0000      1.5.2.2
  +++ Translator.java   15 May 2002 07:13:04 -0000      1.5.2.3
  @@ -4,6 +4,10 @@
    */
   package xdoclet.util;
   
  +import java.text.MessageFormat;
  +import java.util.HashMap;
  +import java.util.Map;
  +
   import java.util.MissingResourceException;
   import java.util.ResourceBundle;
   
  @@ -14,22 +18,22 @@
    *
    * @author    <a href="mailto:[EMAIL PROTECTED]";>Andrew Stevens</a>
    * @created   Jan 18, 2002
  - * @version   $Revision: 1.5.2.2 $
  + * @version   $Revision: 1.5.2.3 $
    */
  -public class Translator
  +public final class Translator
   {
  -    private final static java.lang.String DEFAULT_BUNDLE = "xdoclet.Messages";
  -    private static java.util.Map bundles = new java.util.HashMap();
  +    private final static String DEFAULT_BUNDLE = "xdoclet.Messages";
  +    private static Map bundles = new HashMap(5);
   
       /**
  -     * All methods/fields are static, so prevent creating instances
  +     * All methods/fields are static, so prevent creating instances.
        */
       private Translator()
       {
       }
   
       /**
  -     * Gets the String attribute of the Translator class
  +     * Gets the String attribute of the Translator class.
        *
        * @param resourceKey  Describe what the parameter does
        * @return             The String value
  @@ -40,7 +44,7 @@
       }
   
       /**
  -     * Gets the String attribute of the Translator class
  +     * Gets the String attribute of the Translator class.
        *
        * @param resourceKey  Describe what the parameter does
        * @param arguments    Describe what the parameter does
  @@ -52,7 +56,7 @@
       }
   
       /**
  -     * Gets the String attribute of the Translator class
  +     * Gets the String attribute of the Translator class.
        *
        * @param bundleKey    Describe what the parameter does
        * @param resourceKey  Describe what the parameter does
  @@ -64,7 +68,7 @@
       }
   
       /**
  -     * Gets the String attribute of the Translator class
  +     * Gets the String attribute of the Translator class.
        *
        * @param bundleKey    Describe what the parameter does
        * @param resourceKey  Describe what the parameter does
  @@ -99,7 +103,7 @@
   
               log.debug("resource=" + resource);
   
  -            String msg = java.text.MessageFormat.format(resource, arguments);
  +            String msg = MessageFormat.format(resource, arguments);
   
               log.debug("return message: " + msg);
   
  @@ -114,9 +118,9 @@
       }
   
       /**
  -     * Gets the Bundle attribute of the Translator class
  +     * Gets the Bundle attribute of the Translator class.
        *
  -     * @param bundleKey                     Describe what the parameter does
  +     * @param bundleKey                     The key of the Bundle to return
        * @return                              The Bundle value
        * @exception MissingResourceException  Describe the exception
        */
  
  
  

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to