Repository: zest-java
Updated Branches:
  refs/heads/develop 67d185eaa -> 543bb6ae4


entitystore-sql:minor: fix compiler warnings


Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/31e35303
Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/31e35303
Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/31e35303

Branch: refs/heads/develop
Commit: 31e35303d9befd892f30e4d830f8de7fc685736d
Parents: 67d185e
Author: Paul Merlin <[email protected]>
Authored: Sun Jul 3 15:31:08 2016 +0200
Committer: Paul Merlin <[email protected]>
Committed: Sun Jul 3 15:31:08 2016 +0200

----------------------------------------------------------------------
 .../sql/internal/DatabaseSQLStringsBuilder.java     | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-java/blob/31e35303/extensions/entitystore-sql/src/main/java/org/apache/zest/entitystore/sql/internal/DatabaseSQLStringsBuilder.java
----------------------------------------------------------------------
diff --git 
a/extensions/entitystore-sql/src/main/java/org/apache/zest/entitystore/sql/internal/DatabaseSQLStringsBuilder.java
 
b/extensions/entitystore-sql/src/main/java/org/apache/zest/entitystore/sql/internal/DatabaseSQLStringsBuilder.java
index ee5ece4..1d8ab06 100644
--- 
a/extensions/entitystore-sql/src/main/java/org/apache/zest/entitystore/sql/internal/DatabaseSQLStringsBuilder.java
+++ 
b/extensions/entitystore-sql/src/main/java/org/apache/zest/entitystore/sql/internal/DatabaseSQLStringsBuilder.java
@@ -20,6 +20,7 @@
 package org.apache.zest.entitystore.sql.internal;
 
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.List;
 import org.apache.zest.api.injection.scope.This;
 import org.slf4j.Logger;
@@ -97,13 +98,22 @@ public interface DatabaseSQLStringsBuilder
             this.schemaName = this._state.schemaName().get();
 
             this.schemaCreationSQLs = this.toString( 
this.createSchemaStatements( this.vendor ) );
-            LOGGER.trace( "SQL for schema creation: {}", 
this.schemaCreationSQLs );
+            if( LOGGER.isTraceEnabled() )
+            {
+                LOGGER.trace( "SQL for schema creation: {}", Arrays.asList( 
this.schemaCreationSQLs ) );
+            }
 
             this.indexCreationSQLs = this.toString( 
this.createIndicesStatements( this.vendor ) );
-            LOGGER.trace( "SQL for index creation: {}", this.indexCreationSQLs 
);
+            if( LOGGER.isTraceEnabled() )
+            {
+                LOGGER.trace( "SQL for index creation: {}", Arrays.asList( 
this.indexCreationSQLs ) );
+            }
 
             this.tableCreationSQLs = this.toString( 
this.createTableStatements( this.vendor ) );
-            LOGGER.trace( "SQL for table creation: {}", this.tableCreationSQLs 
);
+            if( LOGGER.isTraceEnabled() )
+            {
+                LOGGER.trace( "SQL for table creation: {}", Arrays.asList( 
this.tableCreationSQLs ) );
+            }
 
             this.selectAllEntitiesSQL = this.vendor.toString( 
this.createSelectAllEntitiesStatement( this.vendor ) );
             LOGGER.trace( "SQL for select all entities: {}", 
this.selectAllEntitiesSQL );

Reply via email to