Related to issue 11488: Reformat Java file
authorAsier Lostalé <asier.lostale@openbravo.com>
Tue, 13 Jul 2010 08:24:07 +0200
changeset 7870 dc5a763d6a3a
parent 7869 45cfd6efecba
child 7871 038dffeaa6d0
Related to issue 11488: Reformat Java file
src/org/openbravo/erpCommon/modules/ImportModule.java
--- a/src/org/openbravo/erpCommon/modules/ImportModule.java	Tue Jul 13 08:23:31 2010 +0200
+++ b/src/org/openbravo/erpCommon/modules/ImportModule.java	Tue Jul 13 08:24:07 2010 +0200
@@ -132,29 +132,30 @@
    *          parsed.
    */
   public ImportModule(ConnectionProvider conn, String obdir, VariablesSecureApp _vars) {
-	    vars = _vars;
-	    obDir = obdir;
-	    pool = conn;
-	    final File[] files = new File[3];
-	    files[0] = new File(obDir + "/src-db/database/model/tables/AD_MODULE.xml");
-	    files[1] = new File(obDir + "/src-db/database/model/tables/AD_MODULE_DEPENDENCY.xml");
-	    files[2] = new File(obDir + "/src-db/database/model/tables/AD_MODULE_DBPREFIX.xml");
+    vars = _vars;
+    obDir = obdir;
+    pool = conn;
+    final File[] files = new File[3];
+    files[0] = new File(obDir + "/src-db/database/model/tables/AD_MODULE.xml");
+    files[1] = new File(obDir + "/src-db/database/model/tables/AD_MODULE_DEPENDENCY.xml");
+    files[2] = new File(obDir + "/src-db/database/model/tables/AD_MODULE_DBPREFIX.xml");
 
-	    verifyFilesExist(files);
-	    
-	    db = DatabaseUtils.readDatabaseNoInit(files);
-	  }
+    verifyFilesExist(files);
 
-	  /**
-	   * Verifies that the provided files actually exist. 
-	   */
-	  private void verifyFilesExist(File[] files) {
-		for(File file : files){
-			if(!file.exists()){
-				throw new ResourceNotFoundException(String.format(Utility.messageBD(pool, "SourceFileNotFound", vars.getLanguage()),file.getPath()));
-			}
-		}
-	   }
+    db = DatabaseUtils.readDatabaseNoInit(files);
+  }
+
+  /**
+   * Verifies that the provided files actually exist.
+   */
+  private void verifyFilesExist(File[] files) {
+    for (File file : files) {
+      if (!file.exists()) {
+        throw new ResourceNotFoundException(String.format(Utility.messageBD(pool,
+            "SourceFileNotFound", vars.getLanguage()), file.getPath()));
+      }
+    }
+  }
 
   /**
    * Check the dependencies for a file name. See