From 8bc06d20acf1ae704eba64464c124d744d8b309e Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Mon, 3 Dec 2018 22:18:43 +0100 Subject: [PATCH] Polishing --- .../orm/hibernate5/HibernateTransactionManager.java | 4 ++-- .../orm/hibernate5/LocalSessionFactoryBean.java | 4 ++-- .../web/reactive/server/samples/bind/HttpServerTests.java | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/spring-orm/src/main/java/org/springframework/orm/hibernate5/HibernateTransactionManager.java b/spring-orm/src/main/java/org/springframework/orm/hibernate5/HibernateTransactionManager.java index 552500f001..644c16ee6b 100644 --- a/spring-orm/src/main/java/org/springframework/orm/hibernate5/HibernateTransactionManager.java +++ b/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. - * @param sessionFactory SessionFactory to manage transactions for + * @param sessionFactory the SessionFactory to manage transactions for */ public HibernateTransactionManager(SessionFactory sessionFactory) { this.sessionFactory = sessionFactory; @@ -199,7 +199,7 @@ public class HibernateTransactionManager extends AbstractPlatformTransactionMana * unwrapped to extract its target DataSource. * @see #setAutodetectDataSource * @see TransactionAwareDataSourceProxy - * @see DataSourceUtils + * @see org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy * @see org.springframework.jdbc.core.JdbcTemplate */ public void setDataSource(@Nullable DataSource dataSource) { diff --git a/spring-orm/src/main/java/org/springframework/orm/hibernate5/LocalSessionFactoryBean.java b/spring-orm/src/main/java/org/springframework/orm/hibernate5/LocalSessionFactoryBean.java index cf22a680f4..45a2d26e9a 100644 --- a/spring-orm/src/main/java/org/springframework/orm/hibernate5/LocalSessionFactoryBean.java +++ b/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 */ 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 */ public void setPhysicalNamingStrategy(PhysicalNamingStrategy physicalNamingStrategy) { diff --git a/spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/bind/HttpServerTests.java b/spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/bind/HttpServerTests.java index 026a8e5e9a..a389bf647e 100644 --- a/spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/bind/HttpServerTests.java +++ b/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"); * you may not use this file except in compliance with the License. @@ -60,13 +60,13 @@ public class HttpServerTests { } @After - public void tearDown() throws Exception { + public void tearDown() { this.server.stop(); } @Test - public void test() throws Exception { + public void test() { this.client.get().uri("/test") .exchange() .expectStatus().isOk()