commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject cvs commit: jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/strategy CapitalizeNameMapper.java
Date Mon, 08 Jul 2002 23:35:18 GMT
mvdb        2002/07/08 16:35:18

  Modified:    betwixt/src/java/org/apache/commons/betwixt/strategy
                        CapitalizeNameMapper.java
  Log:
  Fixed a ArrayOutofBoundsException.
  
  Revision  Changes    Path
  1.2       +8 -5      jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/strategy/CapitalizeNameMapper.java
  
  Index: CapitalizeNameMapper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/java/org/apache/commons/betwixt/strategy/CapitalizeNameMapper.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CapitalizeNameMapper.java	2 Jul 2002 21:21:19 -0000	1.1
  +++ CapitalizeNameMapper.java	8 Jul 2002 23:35:18 -0000	1.2
  @@ -78,6 +78,9 @@
        */
       public String mapTypeToElementName(String typeName)
       {
  +        if (typeName == null || typeName.length() ==0) {
  +            return typeName;
  +        }
           StringBuffer sb = new StringBuffer(typeName);
           char upperChar = Character.toUpperCase(typeName.charAt(0));
           sb.delete(0,1);
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message