cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: svn commit: r360290 - in /cocoon/trunk/src/java/org/apache/cocoon: components/modules/output/SessionAttributeOutputModule.java xml/dom/DOMStreamer.java
Date Sat, 31 Dec 2005 16:20:01 GMT
antonio@apache.org schrieb:
> Author: antonio
> Date: Sat Dec 31 07:22:11 2005
> New Revision: 360290
> 
> URL: http://svn.apache.org/viewcvs?rev=360290&view=rev
> Log:
> Compares Strings using equals()
> 
> Modified:
>     cocoon/trunk/src/java/org/apache/cocoon/components/modules/output/SessionAttributeOutputModule.java
>     cocoon/trunk/src/java/org/apache/cocoon/xml/dom/DOMStreamer.java
> 

> -                String declname = (prefix == "") ? "xmlns" : "xmlns:" + prefix;
> +                String declname = (prefix.equals("")) ? "xmlns" : "xmlns:" + prefix;
I think testing string length against zero is a better way.

Carsten

-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Mime
View raw message