Update of
/var/cvs/contributions/CMSContainer/cmsc/taglib/src/java/com/finalist/cmsc/taglib/navigation
In directory
james.mmbase.org:/tmp/cvs-serv30190/cmsc/taglib/src/java/com/finalist/cmsc/taglib/navigation
Modified Files:
LinkTag.java
Log Message:
CMSC-900 Use commons.lang.SringUtils for string emptiness
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/taglib/src/java/com/finalist/cmsc/taglib/navigation
See also: http://www.mmbase.org/jira/browse/CMSC-900
Index: LinkTag.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/taglib/src/java/com/finalist/cmsc/taglib/navigation/LinkTag.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- LinkTag.java 2 May 2008 12:57:57 -0000 1.19
+++ LinkTag.java 10 May 2008 16:31:23 -0000 1.20
@@ -61,7 +61,7 @@
HttpServletRequest request = (HttpServletRequest) ctx.getRequest();
if (page == null) {
- if (!StringUtils.isBlank(urlfragment)) {
+ if (StringUtils.isNotBlank(urlfragment)) {
// Computing the window for a given urlfragment can be expensive
and will always yield
// the same result. Therefore the computed pageId is cached in the
page context.
String key = "linktag_urlfragment_" + urlfragment;
@@ -81,7 +81,7 @@
}
}
else {
- if (!StringUtils.isBlank(portletdefinition)) {
+ if (StringUtils.isNotBlank(portletdefinition)) {
// Computing the window and page for a given portletdefinition
can be expensive and
// will always yield the same result. Therefore the computed
values are cached in the
// page context.
@@ -123,7 +123,7 @@
if (page instanceof Page) {
externalurl = ((Page) page).getExternalurl();
}
- if (!StringUtils.isBlank(externalurl)) {
+ if (StringUtils.isNotBlank(externalurl)) {
if (externalurl.indexOf("://") > -1) {
newlink = externalurl;
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs