Bugs item #1562907, was opened at 2006-09-21 14:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1562907&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: contrib
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: manu2000el (manu2000el)
Assigned to: Nobody/Anonymous (nobody)
Summary: String comparison optimization

Initial Comment:
- Detection

Detected in class wicket.markup.html.form.Button, method 
onComponentTag, the following non-optimized comparison:

!"".equals(value)

- Optimization proposal (Erik van Oosten)

value.length() != 0

- Global proposal (Manuel Barzi)

Do a global search and replace where the previous
comparison <value != null> is made, then optimize all
ocurrences <value != null && !"".equals(value)> by
<value != null && value.length() != 0>

:P

Regards, 

Manu
                

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1562907&group_id=119783

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to