[jboss-cvs] jboss-seam/src/main/org/jboss/seam/core ...

Gavin King gavin.king at jboss.com
Sat Feb 10 01:03:47 EST 2007


  User: gavin   
  Date: 07/02/10 01:03:47

  Modified:    src/main/org/jboss/seam/core  Interpolator.java
  Log:
  ws
  
  Revision  Changes    Path
  1.21      +7 -3      jboss-seam/src/main/org/jboss/seam/core/Interpolator.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Interpolator.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/Interpolator.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -b -r1.20 -r1.21
  --- Interpolator.java	7 Feb 2007 17:32:36 -0000	1.20
  +++ Interpolator.java	10 Feb 2007 06:03:47 -0000	1.21
  @@ -134,11 +134,15 @@
                    } 
                    else if (nextTok.equals("}")) 
                    {
  -                     if (--level == 0) {
  -                         try {
  +                     if (--level == 0) 
  +                     {
  +                         try 
  +                         {
                                String value = new MessageFormat(expr.toString(), Locale.instance()).format(params);
                                builder.append(value);
  -                         } catch (Exception e) {    
  +                         } 
  +                         catch (Exception e) 
  +                         {
                                // if it is a bad message, use the expression itself
                                builder.append(expr);                             
                            }
  
  
  



More information about the jboss-cvs-commits mailing list