From 65ffee5c4dcad0b1c29625951339c1b0bd9db947 Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Wed, 21 Mar 2012 08:41:08 +0000 Subject: [PATCH] remove unnecessary if (operationLog.isInfoEnabled()) SVN: 24758 --- .../cisd/dbmigration/DBMigrationEngine.java | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/dbmigration/source/java/ch/systemsx/cisd/dbmigration/DBMigrationEngine.java b/dbmigration/source/java/ch/systemsx/cisd/dbmigration/DBMigrationEngine.java index 1e531af2a59..7d780a3998e 100644 --- a/dbmigration/source/java/ch/systemsx/cisd/dbmigration/DBMigrationEngine.java +++ b/dbmigration/source/java/ch/systemsx/cisd/dbmigration/DBMigrationEngine.java @@ -122,11 +122,8 @@ public final class DBMigrationEngine if (operationLog.isDebugEnabled()) { final String databaseName = adminDAO.getDatabaseName(); - if (operationLog.isInfoEnabled()) - { - operationLog.debug("No migration needed for database '" + databaseName - + "'. It has the right version (" + version + ")."); - } + operationLog.debug("No migration needed for database '" + databaseName + + "'. It has the right version (" + version + ")."); } } else if (version.compareTo(databaseVersion) > 0) { @@ -134,22 +131,16 @@ public final class DBMigrationEngine if (operationLog.isInfoEnabled()) { final String databaseName = adminDAO.getDatabaseName(); - if (operationLog.isInfoEnabled()) - { - operationLog.info("Trying to migrate database '" + databaseName - + "' from version " + databaseVersion + " to " + version + "."); - } + operationLog.info("Trying to migrate database '" + databaseName + "' from version " + + databaseVersion + " to " + version + "."); } migrate(databaseVersion, version); if (operationLog.isInfoEnabled()) { final String databaseName = adminDAO.getDatabaseName(); - if (operationLog.isInfoEnabled()) - { - operationLog.info("Database '" + databaseName - + "' successfully migrated from version " + databaseVersion + " to " - + version + "."); - } + operationLog.info("Database '" + databaseName + + "' successfully migrated from version " + databaseVersion + " to " + + version + "."); } } else { -- GitLab