[jboss-cvs] JBossCache/src/org/jboss/cache ...

Manik Surtani msurtani at jboss.com
Mon Aug 7 13:46:13 EDT 2006


  User: msurtani
  Date: 06/08/07 13:46:13

  Modified:    src/org/jboss/cache  Tag: Branch_JBossCache_1_4_0 Fqn.java
  Log:
  Fixed problem in getLast()
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.31.2.3  +2 -1      JBossCache/src/org/jboss/cache/Fqn.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Fqn.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/Fqn.java,v
  retrieving revision 1.31.2.2
  retrieving revision 1.31.2.3
  diff -u -b -r1.31.2.2 -r1.31.2.3
  --- Fqn.java	18 Jul 2006 16:25:07 -0000	1.31.2.2
  +++ Fqn.java	7 Aug 2006 17:46:13 -0000	1.31.2.3
  @@ -39,7 +39,7 @@
    * The latter will result in 3 Fqns, called "a", "b" and "c", where "c" is a child of "b", "b" is a child of "a", and "a" hangs off Fqn.ROOT.
    * <p />
    * Another way to look at it is that the "/" separarator is only parsed when it form sa  part of a String passed in to Fqn.fromString() and not otherwise.
  - * @version $Revision: 1.31.2.2 $
  + * @version $Revision: 1.31.2.3 $
    */
   public class Fqn implements Cloneable, Externalizable {
   
  @@ -262,6 +262,7 @@
       * @see #getName
       */
      public Object getLast() {
  +      if (isRoot()) return SEPARATOR; 
         return elements.get(elements.size() - 1);
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list