From 84266d71e92701bf666c0ff1984288cc22056690 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Fri, 3 May 2019 14:08:20 +0200 Subject: [PATCH] Polishing --- .../transaction/PlatformTransactionManager.java | 6 +++--- .../function/client/ExchangeStrategies.java | 8 ++++---- .../reactive/function/server/HandlerStrategies.java | 13 +++++++------ 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/spring-tx/src/main/java/org/springframework/transaction/PlatformTransactionManager.java b/spring-tx/src/main/java/org/springframework/transaction/PlatformTransactionManager.java index 3723549452..39ab82f665 100644 --- a/spring-tx/src/main/java/org/springframework/transaction/PlatformTransactionManager.java +++ b/spring-tx/src/main/java/org/springframework/transaction/PlatformTransactionManager.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 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. @@ -41,7 +41,6 @@ import org.springframework.lang.Nullable; * @since 16.05.2003 * @see org.springframework.transaction.support.TransactionTemplate * @see org.springframework.transaction.interceptor.TransactionInterceptor - * @see org.springframework.transaction.interceptor.TransactionProxyFactoryBean */ public interface PlatformTransactionManager { @@ -68,7 +67,8 @@ public interface PlatformTransactionManager { * @see TransactionDefinition#getTimeout * @see TransactionDefinition#isReadOnly */ - TransactionStatus getTransaction(@Nullable TransactionDefinition definition) throws TransactionException; + TransactionStatus getTransaction(@Nullable TransactionDefinition definition) + throws TransactionException; /** * Commit the given transaction, with regard to its status. If the transaction diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeStrategies.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeStrategies.java index e62bee11ab..baefea67b5 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeStrategies.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeStrategies.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 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. @@ -37,18 +37,18 @@ public interface ExchangeStrategies { /** * Return {@link HttpMessageReader HttpMessageReaders} to read and decode the response body with. - * @return the stream of message readers + * @return the message readers */ List> messageReaders(); /** * Return {@link HttpMessageWriter HttpMessageWriters} to write and encode the request body with. - * @return the stream of message writers + * @return the message writers */ List> messageWriters(); - // Static methods + // Static builder methods /** * Return a new {@code ExchangeStrategies} with default configuration diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/HandlerStrategies.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/HandlerStrategies.java index 4933d81f4f..1d41f07d25 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/HandlerStrategies.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/HandlerStrategies.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 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. @@ -28,10 +28,11 @@ import org.springframework.web.server.WebFilter; import org.springframework.web.server.i18n.LocaleContextResolver; /** - * Defines the strategies to be used for processing {@link HandlerFunction HandlerFunctions}. An instance of - * this class is immutable; instances are typically created through the mutable {@link Builder}: - * either through {@link #builder()} to set up default strategies, or {@link #empty()} to start from - * scratch. + * Defines the strategies to be used for processing {@link HandlerFunction HandlerFunctions}. + * + *

An instance of this class is immutable. Instances are typically created through the + * mutable {@link Builder}: either through {@link #builder()} to set up default strategies, + * or {@link #empty()} to start from scratch. * * @author Arjen Poutsma * @author Juergen Hoeller @@ -78,7 +79,7 @@ public interface HandlerStrategies { LocaleContextResolver localeContextResolver(); - // Static methods + // Static builder methods /** * Return a new {@code HandlerStrategies} with default initialization.