No effective change - simplify if

This commit is contained in:
Robin Bygrave committed 2015-08-01 21:06:36 +12:00
1 parent 95ab97df73
commit 49fe97bbe4
1 file changed
+1 -3
@@ -83,9 +83,7 @@ public class CacheOptions {
* Set the natural key property.
*/
public void setNaturalKey(String naturalKey) {
if (naturalKey == null || naturalKey.length() == 0) {
naturalKey = null;
} else {
if (naturalKey != null && naturalKey.length() != 0) {
this.naturalKey = naturalKey.trim();
}
}