Author: jacopoc
Date: Sun Mar 24 07:25:56 2013
New Revision: 1460275
URL:
http://svn.apache.org/r1460275Log:
Unified redundant blocks "if (Debug.infoOn())" into one to improve readability of code: no functional changes.
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/jdbc/DatabaseUtil.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/jdbc/DatabaseUtil.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/jdbc/DatabaseUtil.java?rev=1460275&r1=1460274&r2=1460275&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/jdbc/DatabaseUtil.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/jdbc/DatabaseUtil.java Sun Mar 24 07:25:56 2013
@@ -925,17 +925,15 @@ public class DatabaseUtil {
if (dbData == null) {
return;
}
- // Database Info
if (Debug.infoOn()) {
+ // Database Info
try {
Debug.logInfo("Database Product Name is " + dbData.getDatabaseProductName(), module);
Debug.logInfo("Database Product Version is " + dbData.getDatabaseProductVersion(), module);
} catch (SQLException e) {
Debug.logWarning("Unable to get Database name & version information", module);
}
- }
- // JDBC Driver Info
- if (Debug.infoOn()) {
+ // JDBC Driver Info
try {
Debug.logInfo("Database Driver Name is " + dbData.getDriverName(), module);
Debug.logInfo("Database Driver Version is " + dbData.getDriverVersion(), module);
@@ -945,9 +943,7 @@ public class DatabaseUtil {
} catch (AbstractMethodError ame) {
Debug.logWarning("Unable to get Driver JDBC Version", module);
}
- }
- // Db/Driver support settings
- if (Debug.infoOn()) {
+ // Db/Driver support settings
Debug.logInfo("Database Setting/Support Information (those with a * should be true):", module);
for (Detection detection: detections) {
String requiredFlag = detection.required ? "*" : "";