sebb        2003/10/14 03:49:11

  Modified:    src/core/org/apache/jmeter/util JMeterUtils.java
  Log:
  Deprecate the development-only version, i.e. getResString(S,S)
  
  Revision  Changes    Path
  1.48      +12 -2     jakarta-jmeter/src/core/org/apache/jmeter/util/JMeterUtils.java
  
  Index: JMeterUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/util/JMeterUtils.java,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- JMeterUtils.java  13 Oct 2003 21:02:16 -0000      1.47
  +++ JMeterUtils.java  14 Oct 2003 10:49:10 -0000      1.48
  @@ -289,7 +289,7 @@
        */
       public static String getResString(String key)
       {
  -     return getResString(key,"[res_key="+key+"]");
  +     return getResStringDefault(key,"[res_key="+key+"]");
       }
       
        /**
  @@ -302,8 +302,18 @@
         * 
         * @return    the resource string if the key is found;
         *             otherwise, return the default
  +      * @deprecated Only intended for us in development; use getResStrig(String) 
normally
         */
        public static String getResString(String key, String defaultValue)
  +     {
  +             return getResStringDefault(key,defaultValue);
  +     }
  +     
  +     /*
  +      * Helper method to do the actual work of fetching resources;
  +      * allows getResString(S,S) to be deprecated without affecting getResString(S);
  +      */
  +     private static String getResStringDefault(String key, String defaultValue)
        {
           if (key == null)
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to