tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1722513 - /tomcat/trunk/java/org/apache/naming/StringManager.java
Date Fri, 01 Jan 2016 17:49:48 GMT
Author: markt
Date: Fri Jan  1 17:49:48 2016
New Revision: 1722513

URL: http://svn.apache.org/viewvc?rev=1722513&view=rev
Log:
Fix Javadoc (copied from main StringManager impl)

Modified:
    tomcat/trunk/java/org/apache/naming/StringManager.java

Modified: tomcat/trunk/java/org/apache/naming/StringManager.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/naming/StringManager.java?rev=1722513&r1=1722512&r2=1722513&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/naming/StringManager.java (original)
+++ tomcat/trunk/java/org/apache/naming/StringManager.java Fri Jan  1 17:49:48 2016
@@ -132,8 +132,11 @@ public class StringManager {
      * Get a string from the underlying resource bundle and format
      * it with the given set of arguments.
      *
-     * @param key
-     * @param args
+     * @param key  The key for the required message
+     * @param args The values to insert into the message
+     *
+     * @return The request string formatted with the provided arguments or the
+     *         key if the key was not found.
      */
     public String getString(final String key, final Object... args) {
         String value = getString(key);
@@ -159,6 +162,8 @@ public class StringManager {
      * StringManager will be created and returned.
      *
      * @param packageName The package name
+     *
+     * @return The instance associated with the given package
      */
     public static final synchronized StringManager getManager(String packageName) {
         StringManager mgr = managers.get(packageName);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message