[cvs] expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/misc StringUtil.java

JCorporate Ltd jcorp at jcorp2.servlets.net
Fri May 21 17:44:21 PDT 2004


Update of /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/misc
In directory jcorp2.servlets.net:/tmp/cvs-serv8917/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/misc

Modified Files:
	StringUtil.java 
Log Message:
make string constant final


Index: StringUtil.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/misc/StringUtil.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** StringUtil.java	5 May 2004 22:45:58 -0000	1.24
--- StringUtil.java	22 May 2004 00:44:19 -0000	1.25
***************
*** 194,202 ****
       */
      public static String numberToLetter(int number, boolean upperCaseFlag)
!             throws Exception {
  
          //add nine to bring the numbers into the right range (in java, a= 10, z = 35)
          if (number < 1 || number > 26) {
!             throw new Exception("The number is out of the proper range (1 to " +
                      "26) to be converted to a letter.");
          }
--- 194,202 ----
       */
      public static String numberToLetter(int number, boolean upperCaseFlag)
!             throws IllegalArgumentException {
  
          //add nine to bring the numbers into the right range (in java, a= 10, z = 35)
          if (number < 1 || number > 26) {
!             throw new IllegalArgumentException("The number is out of the proper range (1 to " +
                      "26) to be converted to a letter.");
          }
***************
*** 343,347 ****
       * used for appending to a truncate() line if necessary
       */
!     public static String ELLIPSES = "&#133";
  
      /**
--- 343,347 ----
       * used for appending to a truncate() line if necessary
       */
!     public static final String ELLIPSES = "&#133";
  
      /**



More information about the cvs mailing list