Files
ofbiz-framework/framework/sql/src/org/ofbiz/sql
Jacques Le Roux 2b712efb98 No functional changes, simple code refactoring around UtilValidate.is(Not)Empty()
Changes implementation of UtilValidate.isEmpty() for Collection and Map by using isEmpty() instead of c.size() == 0). It's more clear and as efficient. Removes also useless parentheses there.

Makes use of UtilValidate.is(Not)Empty() everywhere it makes senses. This for 2 reasons:
* Make the code more readable by replacing the (!)null/isEmpty pattern.
* Avoid possible NPEs when only isEmpty() was used (after Entity.find... for instance). I found a lot of cases (242 today) where isEmpty() could perhaps be replaced in Framework. But I guess no NPE checks were missing there and anyway it was too much for me to check them all... So I only did the relevant changes in Applications...



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169478 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 17:06:11 +00:00
..
2010-12-12 20:41:27 +00:00
2010-12-12 20:41:27 +00:00
2010-12-12 20:41:27 +00:00
2010-12-12 20:41:27 +00:00
2010-12-12 20:41:27 +00:00
2010-12-12 20:43:03 +00:00
2010-12-12 20:41:27 +00:00
2010-12-12 20:41:27 +00:00
2010-12-12 20:41:27 +00:00
2009-12-21 06:03:33 +00:00
2010-12-12 20:41:27 +00:00
2010-12-12 20:43:03 +00:00