[jboss-cvs] JBossCache/src/org/jboss/cache ...
Manik Surtani
msurtani at jboss.com
Mon Aug 7 13:58:15 EDT 2006
User: msurtani
Date: 06/08/07 13:58:15
Modified: src/org/jboss/cache Fqn.java
Log:
fixed bug in getLast()
Revision Changes Path
1.35 +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.34
retrieving revision 1.35
diff -u -b -r1.34 -r1.35
--- Fqn.java 19 Jul 2006 21:34:45 -0000 1.34
+++ Fqn.java 7 Aug 2006 17:58:15 -0000 1.35
@@ -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.34 $
+ * @version $Revision: 1.35 $
*/
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