From 69af6caa95dfa165b5aa9d0d730432d792d97634 Mon Sep 17 00:00:00 2001 From: wonwoo Date: Wed, 6 Feb 2019 20:21:22 +0900 Subject: [PATCH] HHH-13265 - Remove double semicolon --- .../java/org/hibernate/userguide/flush/AutoFlushTest.java | 6 +++--- .../hibernate/userguide/flush/HibernateAutoFlushTest.java | 2 +- .../boot/archive/scan/spi/ClassFileArchiveEntryHandler.java | 2 +- .../boot/model/source/internal/hbm/ModelBinder.java | 2 +- .../boot/model/source/internal/hbm/TableSourceImpl.java | 4 ++-- .../hibernate/procedure/spi/CallableStatementSupport.java | 2 +- .../JdbcResourceLocalTransactionCoordinatorImpl.java | 2 +- .../envers/test/integration/ids/embeddedid/Parent.java | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/documentation/src/test/java/org/hibernate/userguide/flush/AutoFlushTest.java b/documentation/src/test/java/org/hibernate/userguide/flush/AutoFlushTest.java index 1e7dd08a19..649d7aed4c 100644 --- a/documentation/src/test/java/org/hibernate/userguide/flush/AutoFlushTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/flush/AutoFlushTest.java @@ -90,7 +90,7 @@ public class AutoFlushTest extends BaseEntityManagerFunctionalTestCase { @Test public void testFlushAutoSQL() { doInJPA( this::entityManagerFactory, entityManager -> { - entityManager.createNativeQuery( "delete from Person" ).executeUpdate();; + entityManager.createNativeQuery( "delete from Person" ).executeUpdate(); } ); doInJPA( this::entityManagerFactory, entityManager -> { log.info( "testFlushAutoSQL" ); @@ -112,7 +112,7 @@ public class AutoFlushTest extends BaseEntityManagerFunctionalTestCase { @Test public void testFlushAutoSQLNativeSession() { doInJPA( this::entityManagerFactory, entityManager -> { - entityManager.createNativeQuery( "delete from Person" ).executeUpdate();; + entityManager.createNativeQuery( "delete from Person" ).executeUpdate(); } ); doInJPA( this::entityManagerFactory, entityManager -> { log.info( "testFlushAutoSQLNativeSession" ); @@ -143,7 +143,7 @@ public class AutoFlushTest extends BaseEntityManagerFunctionalTestCase { @Test public void testFlushAutoSQLSynchronization() { doInJPA( this::entityManagerFactory, entityManager -> { - entityManager.createNativeQuery( "delete from Person" ).executeUpdate();; + entityManager.createNativeQuery( "delete from Person" ).executeUpdate(); } ); doInJPA( this::entityManagerFactory, entityManager -> { log.info( "testFlushAutoSQLSynchronization" ); diff --git a/documentation/src/test/java/org/hibernate/userguide/flush/HibernateAutoFlushTest.java b/documentation/src/test/java/org/hibernate/userguide/flush/HibernateAutoFlushTest.java index 6a0717e1a9..610bf6d96f 100644 --- a/documentation/src/test/java/org/hibernate/userguide/flush/HibernateAutoFlushTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/flush/HibernateAutoFlushTest.java @@ -39,7 +39,7 @@ public class HibernateAutoFlushTest extends BaseNonConfigCoreFunctionalTestCase @Test public void testFlushAutoSQLNativeSession() { doInHibernate( this::sessionFactory, session -> { - session.createNativeQuery( "delete from Person" ).executeUpdate();; + session.createNativeQuery( "delete from Person" ).executeUpdate(); } ); doInHibernate( this::sessionFactory, session -> { log.info( "testFlushAutoSQLNativeSession" ); diff --git a/hibernate-core/src/main/java/org/hibernate/boot/archive/scan/spi/ClassFileArchiveEntryHandler.java b/hibernate-core/src/main/java/org/hibernate/boot/archive/scan/spi/ClassFileArchiveEntryHandler.java index 1cc54c140a..b005eaf539 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/archive/scan/spi/ClassFileArchiveEntryHandler.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/archive/scan/spi/ClassFileArchiveEntryHandler.java @@ -79,7 +79,7 @@ public class ClassFileArchiveEntryHandler implements ArchiveEntryHandler { } private ClassDescriptor toClassDescriptor(ClassFile classFile, ArchiveEntry entry) { - ClassDescriptor.Categorization categorization = ClassDescriptor.Categorization.OTHER;; + ClassDescriptor.Categorization categorization = ClassDescriptor.Categorization.OTHER; final AnnotationsAttribute visibleAnnotations = (AnnotationsAttribute) classFile.getAttribute( AnnotationsAttribute.visibleTag ); if ( visibleAnnotations != null ) { diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/ModelBinder.java b/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/ModelBinder.java index 5c7960314c..0efd685e21 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/ModelBinder.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/ModelBinder.java @@ -2831,7 +2831,7 @@ public class ModelBinder { } String typeName = typeSource.getName(); - Properties typeParameters = new Properties();; + Properties typeParameters = new Properties(); final TypeDefinition typeDefinition = sourceDocument.getMetadataCollector().getTypeDefinition( typeName ); if ( typeDefinition != null ) { diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/TableSourceImpl.java b/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/TableSourceImpl.java index df9f32277a..cb1af47986 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/TableSourceImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/TableSourceImpl.java @@ -30,8 +30,8 @@ public class TableSourceImpl extends AbstractHbmSourceNode implements TableSourc String comment, String checkConstraint) { super( mappingDocument ); - this.explicitCatalog = determineCatalogName( mappingDocument, explicitCatalog );; - this.explicitSchema = determineSchemaName( mappingDocument, explicitSchema );; + this.explicitCatalog = determineCatalogName( mappingDocument, explicitCatalog ); + this.explicitSchema = determineSchemaName( mappingDocument, explicitSchema ); this.explicitTableName = explicitTableName; this.rowId = rowId; this.comment = comment; diff --git a/hibernate-core/src/main/java/org/hibernate/procedure/spi/CallableStatementSupport.java b/hibernate-core/src/main/java/org/hibernate/procedure/spi/CallableStatementSupport.java index 940162d229..cdede1372a 100644 --- a/hibernate-core/src/main/java/org/hibernate/procedure/spi/CallableStatementSupport.java +++ b/hibernate-core/src/main/java/org/hibernate/procedure/spi/CallableStatementSupport.java @@ -46,5 +46,5 @@ public interface CallableStatementSupport { CallableStatement statement, ParameterStrategy parameterStrategy, List> parameterRegistrations, - SharedSessionContractImplementor session);; + SharedSessionContractImplementor session); } diff --git a/hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jdbc/internal/JdbcResourceLocalTransactionCoordinatorImpl.java b/hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jdbc/internal/JdbcResourceLocalTransactionCoordinatorImpl.java index 210f8a9228..1bbde93579 100644 --- a/hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jdbc/internal/JdbcResourceLocalTransactionCoordinatorImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jdbc/internal/JdbcResourceLocalTransactionCoordinatorImpl.java @@ -280,7 +280,7 @@ public class JdbcResourceLocalTransactionCoordinatorImpl implements TransactionC rollback(); } catch (RuntimeException e2) { - log.debug( "Encountered failure rolling back failed commit", e2 );; + log.debug( "Encountered failure rolling back failed commit", e2 ); } throw e; } diff --git a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/ids/embeddedid/Parent.java b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/ids/embeddedid/Parent.java index cb55c1ba2b..21127cd09a 100644 --- a/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/ids/embeddedid/Parent.java +++ b/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/ids/embeddedid/Parent.java @@ -28,7 +28,7 @@ public class Parent { private List correctChildren = new ArrayList(); @OneToMany(mappedBy = "id.parent") - private List incorrectChildren = new ArrayList();; + private List incorrectChildren = new ArrayList(); Parent() {