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

Gavin King gavin.king at jboss.com
Sun Oct 15 12:05:26 EDT 2006


  User: gavin   
  Date: 06/10/15 12:05:26

  Modified:    src/main/org/jboss/seam/core  ResourceBundle.java
  Log:
  fix   JBSEAM-415
  
  Revision  Changes    Path
  1.14      +7 -1      jboss-seam/src/main/org/jboss/seam/core/ResourceBundle.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ResourceBundle.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/ResourceBundle.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -b -r1.13 -r1.14
  --- ResourceBundle.java	13 Oct 2006 18:06:09 -0000	1.13
  +++ ResourceBundle.java	15 Oct 2006 16:05:26 -0000	1.14
  @@ -17,6 +17,7 @@
   import org.jboss.seam.annotations.Name;
   import org.jboss.seam.annotations.Scope;
   import org.jboss.seam.annotations.Unwrap;
  +import org.jboss.seam.util.EnumerationEnumeration;
   
   /**
    * Support for an application-global resource bundle
  @@ -100,7 +101,12 @@
                  @Override
                  public Enumeration<String> getKeys()
                  {
  -                  throw new UnsupportedOperationException();
  +                  Enumeration<String>[] enumerations = new Enumeration[ littleBundles.size() ];
  +                  for (int i=0; i<littleBundles.size(); i++)
  +                  {
  +                     enumerations[i] = littleBundles.get(i).getKeys();
  +                  }
  +                  return new EnumerationEnumeration<String>(enumerations);
                  }
         
                  @Override
  
  
  



More information about the jboss-cvs-commits mailing list