Update of
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/java/com/finalist/cmsc/repository/select/forms
In directory
james.mmbase.org:/tmp/cvs-serv30190/cmsc/contentrepository/src/java/com/finalist/cmsc/repository/select/forms
Modified Files:
SelectorAction.java
Log Message:
CMSC-900 Use commons.lang.SringUtils for string emptiness
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/contentrepository/src/java/com/finalist/cmsc/repository/select/forms
See also: http://www.mmbase.org/jira/browse/CMSC-900
Index: SelectorAction.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/java/com/finalist/cmsc/repository/select/forms/SelectorAction.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- SelectorAction.java 26 Nov 2007 11:43:40 -0000 1.7
+++ SelectorAction.java 10 May 2008 16:31:24 -0000 1.8
@@ -14,7 +14,7 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import net.sf.mmapps.commons.util.StringUtil;
+import org.apache.commons.lang.StringUtils;
import org.apache.struts.action.*;
import org.mmbase.bridge.*;
@@ -37,7 +37,7 @@
HttpServletResponse response, Cloud cloud) throws Exception {
String action = request.getParameter("action");
- if (StringUtil.isEmpty(action)) {
+ if (StringUtils.isEmpty(action)) {
RepositoryInfo info = new
RepositoryInfo(RepositoryUtil.getRepositoryInfo(cloud));
cloud.setProperty("Selector" + RepositoryInfo.class.getName(), info);
}
@@ -57,7 +57,7 @@
@Override
protected String getChannelId(HttpServletRequest request, Cloud cloud) {
String path = request.getParameter("path");
- if (!StringUtil.isEmpty(path)) {
+ if (StringUtils.isNotEmpty(path)) {
Node parentNode = RepositoryUtil.getChannelFromPath(cloud, path);
if (parentNode != null) {
return String.valueOf(parentNode.getNumber());
@@ -103,7 +103,7 @@
@Override
protected List<String> getChildren(Cloud cloud, String path) {
List<String> strings = new ArrayList<String>();
- if (StringUtil.isEmpty(path)) {
+ if (StringUtils.isEmpty(path)) {
Node parentNode = RepositoryUtil.getRootNode(cloud);
strings.add(parentNode.getStringValue(TreeUtil.PATH_FIELD));
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs