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

Gavin King gavin.king at jboss.com
Mon Jul 16 05:59:25 EDT 2007


  User: gavin   
  Date: 07/07/16 05:59:25

  Modified:    src/main/org/jboss/seam/core  SeamResourceBundle.java
  Log:
  minor
  
  Revision  Changes    Path
  1.3       +3 -3      jboss-seam/src/main/org/jboss/seam/core/SeamResourceBundle.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SeamResourceBundle.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/SeamResourceBundle.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- SeamResourceBundle.java	13 Jul 2007 16:17:16 -0000	1.2
  +++ SeamResourceBundle.java	16 Jul 2007 09:59:25 -0000	1.3
  @@ -36,15 +36,15 @@
      public static java.util.ResourceBundle getBundle()
      {
         return java.util.ResourceBundle.getBundle(SeamResourceBundle.class.getName(),
  -               org.jboss.seam.core.Locale.instance());
  +               org.jboss.seam.core.Locale.instance()); //note: it does not really matter what we pass here
      }
   
      private List<java.util.ResourceBundle> getBundlesForCurrentLocale()
      {
         Locale instance = org.jboss.seam.core.Locale.instance();
  -      if (bundleCache.get(instance) == null)
  +      if ( bundleCache.containsKey(instance) )
         {
  -         bundleCache.put(instance, loadBundlesForCurrentLocale());
  +         bundleCache.put( instance, loadBundlesForCurrentLocale() );
         }
         return bundleCache.get(instance);
   
  
  
  



More information about the jboss-cvs-commits mailing list