details: https://code.openbravo.com/erp/devel/pi/rev/54c9e821596d
changeset: 17696:54c9e821596d
user: Augusto Mauch <augusto.mauch <at> openbravo.com>
date: Thu Aug 16 16:06:08 2012 +0200
summary: Related to issue 21246: Added missing parenthesis
diffstat:
src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (42 lines):
diff -r 43a1d064d9c4 -r 54c9e821596d
src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java
--- a/src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java Thu Aug
09 17:37:00 2012 +0530
+++ b/src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java Thu Aug
16 16:06:08 2012 +0200
@@ -49,6 +49,7 @@
import org.codehaus.jettison.json.JSONObject;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Restrictions;
+import org.openbravo.base.exception.OBException;
import org.openbravo.base.filter.IsIDFilter;
import org.openbravo.base.secureApp.HttpSecureAppServlet;
import org.openbravo.base.secureApp.VariablesSecureApp;
@@ -82,7 +83,6 @@
import org.openbravo.erpCommon.utility.NavigationBar;
import org.openbravo.erpCommon.utility.OBError;
import org.openbravo.erpCommon.utility.OBErrorBuilder;
-import org.openbravo.base.exception.OBException;
import org.openbravo.erpCommon.utility.SQLReturnObject;
import org.openbravo.erpCommon.utility.ToolBar;
import org.openbravo.erpCommon.utility.Utility;
@@ -2606,7 +2606,7 @@
/**
* Checks if there are local changes in the application
*/
- private boolean verifyLocalChanges(VariablesSecureApp vars){
+ private boolean verifyLocalChanges(VariablesSecureApp vars) {
long t1 = System.currentTimeMillis();
Connection connection = OBDal.getInstance().getConnection();
PreparedStatement ps = null;
@@ -2632,10 +2632,9 @@
String sourcePath =
OBPropertiesProvider.getInstance().getOpenbravoProperties()
.getProperty("source.path");
File sources = new File(sourcePath);
- //Added file exists condition to check invalid source path
- if(!sources.exists()
- {
- throw new
OBException(Utility.messageBD(this,"WrongPathError",vars.getLanguage()));
+ // Added file exists condition to check invalid source path
+ if (!sources.exists()) {
+ throw new OBException(Utility.messageBD(this, "WrongPathError",
vars.getLanguage()));
}
File model = new File(sources, "src-db/database/model/tables");
if (model.exists()) {
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits