Browse Source

Polishing

pull/23430/head
Juergen Hoeller 7 years ago
parent
commit
8bc06d20ac
  1. 4
      spring-orm/src/main/java/org/springframework/orm/hibernate5/HibernateTransactionManager.java
  2. 4
      spring-orm/src/main/java/org/springframework/orm/hibernate5/LocalSessionFactoryBean.java
  3. 6
      spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/bind/HttpServerTests.java

4
spring-orm/src/main/java/org/springframework/orm/hibernate5/HibernateTransactionManager.java

@ -145,7 +145,7 @@ public class HibernateTransactionManager extends AbstractPlatformTransactionMana
/** /**
* Create a new HibernateTransactionManager instance. * Create a new HibernateTransactionManager instance.
* @param sessionFactory SessionFactory to manage transactions for * @param sessionFactory the SessionFactory to manage transactions for
*/ */
public HibernateTransactionManager(SessionFactory sessionFactory) { public HibernateTransactionManager(SessionFactory sessionFactory) {
this.sessionFactory = sessionFactory; this.sessionFactory = sessionFactory;
@ -199,7 +199,7 @@ public class HibernateTransactionManager extends AbstractPlatformTransactionMana
* unwrapped to extract its target DataSource. * unwrapped to extract its target DataSource.
* @see #setAutodetectDataSource * @see #setAutodetectDataSource
* @see TransactionAwareDataSourceProxy * @see TransactionAwareDataSourceProxy
* @see DataSourceUtils * @see org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy
* @see org.springframework.jdbc.core.JdbcTemplate * @see org.springframework.jdbc.core.JdbcTemplate
*/ */
public void setDataSource(@Nullable DataSource dataSource) { public void setDataSource(@Nullable DataSource dataSource) {

4
spring-orm/src/main/java/org/springframework/orm/hibernate5/LocalSessionFactoryBean.java

@ -239,7 +239,7 @@ public class LocalSessionFactoryBean extends HibernateExceptionTranslator
} }
/** /**
* Set a Hibernate 5.0 ImplicitNamingStrategy for the SessionFactory. * Set a Hibernate 5 {@link ImplicitNamingStrategy} for the SessionFactory.
* @see Configuration#setImplicitNamingStrategy * @see Configuration#setImplicitNamingStrategy
*/ */
public void setImplicitNamingStrategy(ImplicitNamingStrategy implicitNamingStrategy) { public void setImplicitNamingStrategy(ImplicitNamingStrategy implicitNamingStrategy) {
@ -247,7 +247,7 @@ public class LocalSessionFactoryBean extends HibernateExceptionTranslator
} }
/** /**
* Set a Hibernate 5.0 PhysicalNamingStrategy for the SessionFactory. * Set a Hibernate 5 {@link PhysicalNamingStrategy} for the SessionFactory.
* @see Configuration#setPhysicalNamingStrategy * @see Configuration#setPhysicalNamingStrategy
*/ */
public void setPhysicalNamingStrategy(PhysicalNamingStrategy physicalNamingStrategy) { public void setPhysicalNamingStrategy(PhysicalNamingStrategy physicalNamingStrategy) {

6
spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/bind/HttpServerTests.java

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2017 the original author or authors. * Copyright 2002-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -60,13 +60,13 @@ public class HttpServerTests {
} }
@After @After
public void tearDown() throws Exception { public void tearDown() {
this.server.stop(); this.server.stop();
} }
@Test @Test
public void test() throws Exception { public void test() {
this.client.get().uri("/test") this.client.get().uri("/test")
.exchange() .exchange()
.expectStatus().isOk() .expectStatus().isOk()

Loading…
Cancel
Save