Update of
/var/cvs/contributions/CMSContainer_Modules/rss/src/java/com/finalist/cmsc/rss
In directory
james.mmbase.org:/tmp/cvs-serv30647/rss/src/java/com/finalist/cmsc/rss
Modified Files:
RssAction.java
Log Message:
CMSC-900 Use commons.lang.SringUtils for string emptiness
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Modules/rss/src/java/com/finalist/cmsc/rss
See also: http://www.mmbase.org/jira/browse/CMSC-900
Index: RssAction.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Modules/rss/src/java/com/finalist/cmsc/rss/RssAction.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- RssAction.java 26 Nov 2007 11:42:15 -0000 1.6
+++ RssAction.java 10 May 2008 16:31:49 -0000 1.7
@@ -117,7 +117,7 @@
*/
private Node getParentChannel(Cloud cloud, String feed) {
String channel = getProperty(feed, "rubriek", DEFAULT_CHANNEL);
- if (!StringUtils.isEmpty(channel)) {
+ if (StringUtils.isNotEmpty(channel)) {
Node parentNode = RepositoryUtil.getChannelFromPath(cloud, channel);
if (parentNode != null) {
return parentNode;
@@ -150,7 +150,7 @@
private int getProperty(String feed, String key, int defaultValue) {
String value = getProperty(feed, key, "");
- if (!StringUtils.isEmpty(value)) {
+ if (StringUtils.isNotEmpty(value)) {
try {
return Integer.parseInt(value);
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs