Author: ssanbern
Date: 2007-09-04 16:17:49 +0200 (Tue, 04 Sep 2007)
New Revision: 5748
Modified:
branches/2.15/view-config-spi/src/main/java/no/sesat/search/view/config/SearchTab.java
Log:
change the return value to null in getRule()method if value is equal to empty
string
Modified:
branches/2.15/view-config-spi/src/main/java/no/sesat/search/view/config/SearchTab.java
===================================================================
---
branches/2.15/view-config-spi/src/main/java/no/sesat/search/view/config/SearchTab.java
2007-09-04 12:15:38 UTC (rev 5747)
+++
branches/2.15/view-config-spi/src/main/java/no/sesat/search/view/config/SearchTab.java
2007-09-04 14:17:49 UTC (rev 5748)
@@ -427,10 +427,13 @@
/**
* Getter for property rule.
- * @return Value of property rule.
+ * @return Value of property rule. Returns null if value equals empty
+ * String("").
*/
public String getRule() {
- return this.rule;
+
+ if(this.rule.equalsIgnoreCase(""))return null;
+ else return this.rule;
}
/**
_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits