r9860 - helma/helma/trunk/src/helma/objectmodel

[email protected] Tue, 8 Sep 2009 22:29:56 +0200 (CEST)
Newsgroups gmane.comp.java.helma.cvs
Message-ID <20090908202956.8BE393D0E3@mia>
Author: hannes
Date: 2009-09-08 22:29:56 +0200 (Tue, 08 Sep 2009)
New Revision: 9860

Modified:
   helma/helma/trunk/src/helma/objectmodel/TransientNode.java
Log:
Cosmetic fix

Details at http://dev.helma.org/trac/helma/changeset/9860

Modified: helma/helma/trunk/src/helma/objectmodel/TransientNode.java
===================================================================
--- helma/helma/trunk/src/helma/objectmodel/TransientNode.java	2009-09-08 20:23:19 UTC (rev 9859)
+++ helma/helma/trunk/src/helma/objectmodel/TransientNode.java	2009-09-08 20:29:56 UTC (rev 9860)
@@ -66,7 +66,7 @@
      */
     public TransientNode(String n) {
         id = generateID();
-        name = ((n == null) || "".equals(n)) ? id : n;
+        name = (n == null || n.length() == 0) ? id : n;
         created = lastmodified = System.currentTimeMillis();
     }