diff --git a/spring-context-support/src/main/java/org/springframework/cache/jcache/interceptor/JCacheOperation.java b/spring-context-support/src/main/java/org/springframework/cache/jcache/interceptor/JCacheOperation.java index 84eba79bcde..94a384dd6ca 100644 --- a/spring-context-support/src/main/java/org/springframework/cache/jcache/interceptor/JCacheOperation.java +++ b/spring-context-support/src/main/java/org/springframework/cache/jcache/interceptor/JCacheOperation.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 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,21 +28,21 @@ import org.springframework.cache.interceptor.CacheResolver; *

A cache operation can be statically cached as it does not contain * any runtime operation of a specific cache invocation. * - * @param the type of the JSR-107 annotation * @author Stephane Nicoll * @since 4.1 + * @param the type of the JSR-107 annotation */ public interface JCacheOperation extends BasicOperation, CacheMethodDetails { /** - * Return the {@link CacheResolver} instance to use to resolve the cache to - * use for this operation. + * Return the {@link CacheResolver} instance to use to resolve the cache + * to use for this operation. */ CacheResolver getCacheResolver(); /** - * Return the {@link CacheInvocationParameter} instances based on the specified - * method arguments. + * Return the {@link CacheInvocationParameter} instances based on the + * specified method arguments. *

The method arguments must match the signature of the related method invocation * @param values the parameters value for a particular invocation */ diff --git a/spring-context/src/main/java/org/springframework/context/ApplicationListener.java b/spring-context/src/main/java/org/springframework/context/ApplicationListener.java index a7eea9b5f92..54d22825ff8 100644 --- a/spring-context/src/main/java/org/springframework/context/ApplicationListener.java +++ b/spring-context/src/main/java/org/springframework/context/ApplicationListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2015 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. diff --git a/spring-context/src/main/java/org/springframework/context/PayloadApplicationEvent.java b/spring-context/src/main/java/org/springframework/context/PayloadApplicationEvent.java index 1829286ab08..c0b46fb3a83 100644 --- a/spring-context/src/main/java/org/springframework/context/PayloadApplicationEvent.java +++ b/spring-context/src/main/java/org/springframework/context/PayloadApplicationEvent.java @@ -20,25 +20,26 @@ import org.springframework.util.Assert; /** * An {@link ApplicationEvent} that carries an arbitrary payload. - *

- * Mainly intended for internal use within the framework. * - * @param the payload type of the event + *

Mainly intended for internal use within the framework. + * * @author Stephane Nicoll * @since 4.2 + * @param the payload type of the event */ @SuppressWarnings("serial") -public class PayloadApplicationEvent - extends ApplicationEvent { +public class PayloadApplicationEvent extends ApplicationEvent { private final T payload; + public PayloadApplicationEvent(Object source, T payload) { super(source); Assert.notNull(payload, "Payload must not be null"); this.payload = payload; } + /** * Return the payload of the event. */ diff --git a/spring-context/src/main/java/org/springframework/context/annotation/AdviceModeImportSelector.java b/spring-context/src/main/java/org/springframework/context/annotation/AdviceModeImportSelector.java index 374b8dc6b45..7da02018096 100644 --- a/spring-context/src/main/java/org/springframework/context/annotation/AdviceModeImportSelector.java +++ b/spring-context/src/main/java/org/springframework/context/annotation/AdviceModeImportSelector.java @@ -1,5 +1,5 @@ - /* - * Copyright 2002-2013 the original author or authors. +/* + * Copyright 2002-2015 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,9 +28,9 @@ import org.springframework.util.Assert; * based on an {@link AdviceMode} value from an annotation (such as the {@code @Enable*} * annotations). * - * @param Annotation containing {@linkplain #getAdviceModeAttributeName() AdviceMode attribute} * @author Chris Beams * @since 3.1 + * @param annotation containing {@linkplain #getAdviceModeAttributeName() AdviceMode attribute} */ public abstract class AdviceModeImportSelector implements ImportSelector { diff --git a/spring-core/src/main/java/org/springframework/core/convert/converter/ConverterFactory.java b/spring-core/src/main/java/org/springframework/core/convert/converter/ConverterFactory.java index 97ae018d449..f7b1344709f 100644 --- a/spring-core/src/main/java/org/springframework/core/convert/converter/ConverterFactory.java +++ b/spring-core/src/main/java/org/springframework/core/convert/converter/ConverterFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2015 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. @@ -24,8 +24,8 @@ package org.springframework.core.convert.converter; * @author Keith Donald * @since 3.0 * @see ConditionalConverter - * @param The source type converters created by this factory can convert from - * @param The target range (or base) type converters created by this factory can convert to; + * @param the source type converters created by this factory can convert from + * @param the target range (or base) type converters created by this factory can convert to; * for example {@link Number} for a set of number subtypes. */ public interface ConverterFactory { diff --git a/spring-core/src/main/java/org/springframework/core/convert/converter/ConvertingComparator.java b/spring-core/src/main/java/org/springframework/core/convert/converter/ConvertingComparator.java index 31c511282fc..a6b5a8f41b8 100644 --- a/spring-core/src/main/java/org/springframework/core/convert/converter/ConvertingComparator.java +++ b/spring-core/src/main/java/org/springframework/core/convert/converter/ConvertingComparator.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2015 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. @@ -29,9 +29,9 @@ import org.springframework.util.comparator.ComparableComparator; * {@code Comparator}. * * @author Phillip Webb + * @since 3.2 * @param the source type * @param the target type - * @since 3.2 */ public class ConvertingComparator implements Comparator { @@ -42,7 +42,6 @@ public class ConvertingComparator implements Comparator { /** * Create a new {@link ConvertingComparator} instance. - * * @param converter the converter */ @SuppressWarnings("unchecked") @@ -52,7 +51,6 @@ public class ConvertingComparator implements Comparator { /** * Create a new {@link ConvertingComparator} instance. - * * @param comparator the underlying comparator used to compare the converted values * @param converter the converter */ @@ -65,15 +63,14 @@ public class ConvertingComparator implements Comparator { /** * Create a new {@link ComparableComparator} instance. - * * @param comparator the underlying comparator * @param conversionService the conversion service * @param targetType the target type */ - public ConvertingComparator(Comparator comparator, - ConversionService conversionService, Class targetType) { - this(comparator, new ConversionServiceConverter( - conversionService, targetType)); + public ConvertingComparator( + Comparator comparator, ConversionService conversionService, Class targetType) { + + this(comparator, new ConversionServiceConverter(conversionService, targetType)); } @@ -87,14 +84,11 @@ public class ConvertingComparator implements Comparator { /** * Create a new {@link ConvertingComparator} that compares {@link java.util.Map.Entry * map * entries} based on their {@link java.util.Map.Entry#getKey() keys}. - * * @param comparator the underlying comparator used to compare keys * @return a new {@link ConvertingComparator} instance */ - public static ConvertingComparator, K> mapEntryKeys( - Comparator comparator) { + public static ConvertingComparator, K> mapEntryKeys(Comparator comparator) { return new ConvertingComparator, K>(comparator, new Converter, K>() { - @Override public K convert(Map.Entry source) { return source.getKey(); @@ -105,14 +99,11 @@ public class ConvertingComparator implements Comparator { /** * Create a new {@link ConvertingComparator} that compares {@link java.util.Map.Entry * map entries} based on their {@link java.util.Map.Entry#getValue() values}. - * * @param comparator the underlying comparator used to compare values * @return a new {@link ConvertingComparator} instance */ - public static ConvertingComparator, V> mapEntryValues( - Comparator comparator) { + public static ConvertingComparator, V> mapEntryValues(Comparator comparator) { return new ConvertingComparator, V>(comparator, new Converter, V>() { - @Override public V convert(Map.Entry source) { return source.getValue(); diff --git a/spring-core/src/main/java/org/springframework/core/convert/converter/GenericConverter.java b/spring-core/src/main/java/org/springframework/core/convert/converter/GenericConverter.java index 5258497be22..65d1def81fd 100644 --- a/spring-core/src/main/java/org/springframework/core/convert/converter/GenericConverter.java +++ b/spring-core/src/main/java/org/springframework/core/convert/converter/GenericConverter.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 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. @@ -27,9 +27,9 @@ import org.springframework.util.Assert; *

This is the most flexible of the Converter SPI interfaces, but also the most complex. * It is flexible in that a GenericConverter may support converting between multiple source/target * type pairs (see {@link #getConvertibleTypes()}. In addition, GenericConverter implementations - * have access to source/target {@link TypeDescriptor field context} during the type conversion process. - * This allows for resolving source and target field metadata such as annotations and generics - * information, which can be used influence the conversion logic. + * have access to source/target {@link TypeDescriptor field context} during the type conversion + * process. This allows for resolving source and target field metadata such as annotations and + * generics information, which can be used influence the conversion logic. * *

This interface should generally not be used when the simpler {@link Converter} or * {@link ConverterFactory} interfaces are sufficient. @@ -49,9 +49,8 @@ public interface GenericConverter { /** * Return the source and target types which this converter can convert between. Each * entry is a convertible source-to-target type pair. - *

- * For {@link ConditionalConverter conditional} converters this method may return - * {@code null} to indicate all source-to-target pairs should be considered. * + *

For {@link ConditionalConverter conditional} converters this method may return + * {@code null} to indicate all source-to-target pairs should be considered. */ Set getConvertibleTypes(); @@ -95,25 +94,25 @@ public interface GenericConverter { } @Override - public boolean equals(Object obj) { - if (this == obj) { + public boolean equals(Object other) { + if (this == other) { return true; } - if (obj == null || obj.getClass() != ConvertiblePair.class) { + if (other == null || other.getClass() != ConvertiblePair.class) { return false; } - ConvertiblePair other = (ConvertiblePair) obj; - return this.sourceType.equals(other.sourceType) && this.targetType.equals(other.targetType); + ConvertiblePair otherPair = (ConvertiblePair) other; + return (this.sourceType.equals(otherPair.sourceType) && this.targetType.equals(otherPair.targetType)); } @Override public int hashCode() { - return this.sourceType.hashCode() * 31 + this.targetType.hashCode(); + return (this.sourceType.hashCode() * 31 + this.targetType.hashCode()); } @Override public String toString() { - return this.sourceType.getName() + " -> " + this.targetType.getName(); + return (this.sourceType.getName() + " -> " + this.targetType.getName()); } } diff --git a/spring-core/src/main/java/org/springframework/util/ConcurrentReferenceHashMap.java b/spring-core/src/main/java/org/springframework/util/ConcurrentReferenceHashMap.java index 3bb6471f67d..709572f9b68 100644 --- a/spring-core/src/main/java/org/springframework/util/ConcurrentReferenceHashMap.java +++ b/spring-core/src/main/java/org/springframework/util/ConcurrentReferenceHashMap.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 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. @@ -51,10 +51,10 @@ import java.util.concurrent.locks.ReentrantLock; *

If not explicitly specified, this implementation will use * {@linkplain SoftReference soft entry references}. * - * @param The key type - * @param The value type * @author Phillip Webb * @since 3.2 + * @param the key type + * @param the value type */ public class ConcurrentReferenceHashMap extends AbstractMap implements ConcurrentMap { diff --git a/spring-core/src/main/java/org/springframework/util/comparator/InstanceComparator.java b/spring-core/src/main/java/org/springframework/util/comparator/InstanceComparator.java index 35d324ee254..19d9d9bfd9d 100644 --- a/spring-core/src/main/java/org/springframework/util/comparator/InstanceComparator.java +++ b/spring-core/src/main/java/org/springframework/util/comparator/InstanceComparator.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 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. @@ -32,8 +32,8 @@ import org.springframework.util.Assert; * * @author Phillip Webb * @since 3.2 - * @param the type of objects being compared * @see CompoundComparator + * @param the type of objects being compared */ public class InstanceComparator implements Comparator { diff --git a/spring-core/src/main/java/org/springframework/util/concurrent/ListenableFutureAdapter.java b/spring-core/src/main/java/org/springframework/util/concurrent/ListenableFutureAdapter.java index 89e0be36b7d..268a64964d6 100644 --- a/spring-core/src/main/java/org/springframework/util/concurrent/ListenableFutureAdapter.java +++ b/spring-core/src/main/java/org/springframework/util/concurrent/ListenableFutureAdapter.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 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. @@ -25,10 +25,10 @@ import java.util.concurrent.ExecutionException; * and {@link ListenableFutureCallback#onSuccess(Object)} call {@link #adapt(Object)} * on the adaptee's result. * - * @param the type of this {@code Future} - * @param the type of the adaptee's {@code Future} * @author Arjen Poutsma * @since 4.0 + * @param the type of this {@code Future} + * @param the type of the adaptee's {@code Future} */ public abstract class ListenableFutureAdapter extends FutureAdapter implements ListenableFuture { diff --git a/spring-messaging/src/main/java/org/springframework/messaging/core/MessageReceivingOperations.java b/spring-messaging/src/main/java/org/springframework/messaging/core/MessageReceivingOperations.java index a8ea82315bc..d9bf600b72f 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/core/MessageReceivingOperations.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/core/MessageReceivingOperations.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2015 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. @@ -22,12 +22,11 @@ import org.springframework.messaging.MessagingException; /** * Operations for receiving messages from a destination. * - * @param the type of destination to receive messages from - * * @author Mark Fisher * @author Rossen Stoyanchev * @since 4.0 * @see GenericMessagingTemplate + * @param the type of destination to receive messages from */ public interface MessageReceivingOperations { diff --git a/spring-messaging/src/main/java/org/springframework/messaging/core/MessageRequestReplyOperations.java b/spring-messaging/src/main/java/org/springframework/messaging/core/MessageRequestReplyOperations.java index 24114fbf654..3037cb820fa 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/core/MessageRequestReplyOperations.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/core/MessageRequestReplyOperations.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2015 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. @@ -24,12 +24,11 @@ import org.springframework.messaging.MessagingException; /** * Operations for sending messages to and receiving the reply from a destination. * - * @param the type of destination - * * @author Mark Fisher * @author Rossen Stoyanchev * @since 4.0 * @see GenericMessagingTemplate + * @param the type of destination */ public interface MessageRequestReplyOperations { diff --git a/spring-messaging/src/main/java/org/springframework/messaging/core/MessageSendingOperations.java b/spring-messaging/src/main/java/org/springframework/messaging/core/MessageSendingOperations.java index 3f0797aca92..319151e98c1 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/core/MessageSendingOperations.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/core/MessageSendingOperations.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 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. @@ -24,11 +24,10 @@ import org.springframework.messaging.MessagingException; /** * Operations for sending messages to a destination. * - * @param the type of destination to send messages to - * * @author Mark Fisher * @author Rossen Stoyanchev * @since 4.0 + * @param the type of destination to send messages to */ public interface MessageSendingOperations { diff --git a/spring-messaging/src/main/java/org/springframework/messaging/handler/MessageCondition.java b/spring-messaging/src/main/java/org/springframework/messaging/handler/MessageCondition.java index c5c7e3c5bb7..0d4769f3879 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/handler/MessageCondition.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/handler/MessageCondition.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2015 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. @@ -25,10 +25,9 @@ import org.springframework.messaging.Message; * matched to a specific Message, as well as compared to each other in the * context of a Message to determine which one matches a request more closely. * - * @param The kind of condition that this condition can be combined with or compared to - * * @author Rossen Stoyanchev * @since 4.0 + * @param the kind of condition that this condition can be combined with or compared to */ public interface MessageCondition { diff --git a/spring-messaging/src/main/java/org/springframework/messaging/handler/invocation/AbstractMethodMessageHandler.java b/spring-messaging/src/main/java/org/springframework/messaging/handler/invocation/AbstractMethodMessageHandler.java index 18a119669c9..bcdab730dc8 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/handler/invocation/AbstractMethodMessageHandler.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/handler/invocation/AbstractMethodMessageHandler.java @@ -58,11 +58,10 @@ import org.springframework.util.ReflectionUtils; *

Also supports discovering and invoking exception handling methods to process * exceptions raised during message handling. * - * @param the type of the Object that contains information mapping a - * {@link org.springframework.messaging.handler.HandlerMethod} to incoming messages - * * @author Rossen Stoyanchev * @since 4.0 + * @param the type of the Object that contains information mapping a + * {@link org.springframework.messaging.handler.HandlerMethod} to incoming messages */ public abstract class AbstractMethodMessageHandler implements MessageHandler, ApplicationContextAware, InitializingBean { diff --git a/spring-messaging/src/main/java/org/springframework/messaging/tcp/TcpConnectionHandler.java b/spring-messaging/src/main/java/org/springframework/messaging/tcp/TcpConnectionHandler.java index 100783c022a..c6a45441306 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/tcp/TcpConnectionHandler.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/tcp/TcpConnectionHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2015 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. @@ -22,10 +22,9 @@ import org.springframework.messaging.Message; * A contract for managing lifecycle events for a TCP connection including * the handling of incoming messages. * - * @param

the type of payload for in and outbound messages - * * @author Rossen Stoyanchev * @since 4.0 + * @param

the type of payload for in and outbound messages */ public interface TcpConnectionHandler

{ diff --git a/spring-messaging/src/main/java/org/springframework/messaging/tcp/TcpOperations.java b/spring-messaging/src/main/java/org/springframework/messaging/tcp/TcpOperations.java index 9dfb63f68b0..c90a87e9e16 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/tcp/TcpOperations.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/tcp/TcpOperations.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2015 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. @@ -21,10 +21,9 @@ import org.springframework.util.concurrent.ListenableFuture; /** * A contract for establishing TCP connections. * - * @param

the type of payload for in and outbound messages - * * @author Rossen Stoyanchev * @since 4.0 + * @param

the type of payload for in and outbound messages */ public interface TcpOperations

{ diff --git a/spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/AbstractPromiseToListenableFutureAdapter.java b/spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/AbstractPromiseToListenableFutureAdapter.java index 7f20892576f..9874dfd1e6e 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/AbstractPromiseToListenableFutureAdapter.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/AbstractPromiseToListenableFutureAdapter.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 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. @@ -34,11 +34,10 @@ import org.springframework.util.concurrent.SuccessCallback; * Adapts a reactor {@link Promise} to {@link ListenableFuture} optionally converting * the result Object type {@code } to the expected target type {@code }. * - * @param the type of object expected from the {@link Promise} - * @param the type of object expected from the {@link ListenableFuture} - * * @author Rossen Stoyanchev * @since 4.0 + * @param the type of object expected from the {@link Promise} + * @param the type of object expected from the {@link ListenableFuture} */ abstract class AbstractPromiseToListenableFutureAdapter implements ListenableFuture { @@ -113,4 +112,5 @@ abstract class AbstractPromiseToListenableFutureAdapter implements Listena this.registry.addSuccessCallback(successCallback); this.registry.addFailureCallback(failureCallback); } + } diff --git a/spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/Reactor11TcpConnection.java b/spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/Reactor11TcpConnection.java index ef2aceb2c40..e9aad6cef1b 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/Reactor11TcpConnection.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/Reactor11TcpConnection.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 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. @@ -23,15 +23,14 @@ import org.springframework.messaging.Message; import org.springframework.messaging.tcp.TcpConnection; import org.springframework.util.concurrent.ListenableFuture; - /** * An implementation of {@link org.springframework.messaging.tcp.TcpConnection} * based on the TCP client support of the Reactor project. * - * @param

the payload type of Spring Message's read from - * and written to the TCP stream - * * @author Rossen Stoyanchev + * @since 4.0 + * @param

the payload type of Spring Message's read from and written to + * the TCP stream */ public class Reactor11TcpConnection

implements TcpConnection

{ @@ -42,6 +41,7 @@ public class Reactor11TcpConnection

implements TcpConnection

{ this.channel = connection; } + @Override public ListenableFuture send(Message

message) { Promise promise = this.channel.send(message); diff --git a/spring-web/src/main/java/org/springframework/http/RequestEntity.java b/spring-web/src/main/java/org/springframework/http/RequestEntity.java index d03fb08025f..79fb09e9e44 100644 --- a/spring-web/src/main/java/org/springframework/http/RequestEntity.java +++ b/spring-web/src/main/java/org/springframework/http/RequestEntity.java @@ -325,8 +325,8 @@ public class RequestEntity extends HttpEntity { /** * Set the body of the request entity and build the RequestEntity. - * @param body the body of the request entity * @param the type of the body + * @param body the body of the request entity * @return the built request entity */ RequestEntity body(T body); diff --git a/spring-web/src/main/java/org/springframework/http/ResponseEntity.java b/spring-web/src/main/java/org/springframework/http/ResponseEntity.java index 5d00716d5f9..1c8a9afb700 100644 --- a/spring-web/src/main/java/org/springframework/http/ResponseEntity.java +++ b/spring-web/src/main/java/org/springframework/http/ResponseEntity.java @@ -368,8 +368,8 @@ public class ResponseEntity extends HttpEntity { /** * Set the body of the response entity and returns it. - * @param body the body of the response entity * @param the type of the body + * @param body the body of the response entity * @return the built response entity */ ResponseEntity body(T body); diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerMethodMapping.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerMethodMapping.java index 9860598fb09..7055d3038cc 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerMethodMapping.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerMethodMapping.java @@ -46,13 +46,12 @@ import org.springframework.web.servlet.HandlerMapping; *

For each registered handler method, a unique mapping is maintained with * subclasses defining the details of the mapping type {@code }. * - * @param The mapping for a {@link HandlerMethod} containing the conditions - * needed to match the handler method to incoming request. - * * @author Arjen Poutsma * @author Rossen Stoyanchev * @author Juergen Hoeller * @since 3.1 + * @param The mapping for a {@link HandlerMethod} containing the conditions + * needed to match the handler method to incoming request. */ public abstract class AbstractHandlerMethodMapping extends AbstractHandlerMapping implements InitializingBean { diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/RequestCondition.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/RequestCondition.java index 0fad8079dac..1487381cdde 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/RequestCondition.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/RequestCondition.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 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,11 +28,10 @@ import org.springframework.web.bind.annotation.RequestMapping; * to each other via {@link #compareTo(Object, HttpServletRequest)} to determine * which matches a request more closely. * - * @param the type of objects that this RequestCondition can be combined with and compared to - * * @author Rossen Stoyanchev * @author Arjen Poutsma * @since 3.1 + * @param the type of objects that this RequestCondition can be combined with and compared to */ public interface RequestCondition { diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/adapter/standard/ConvertingEncoderDecoderSupport.java b/spring-websocket/src/main/java/org/springframework/web/socket/adapter/standard/ConvertingEncoderDecoderSupport.java index 5eded3e3755..76aeb7cad83 100644 --- a/spring-websocket/src/main/java/org/springframework/web/socket/adapter/standard/ConvertingEncoderDecoderSupport.java +++ b/spring-websocket/src/main/java/org/springframework/web/socket/adapter/standard/ConvertingEncoderDecoderSupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2015 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. @@ -64,12 +64,12 @@ import org.springframework.web.context.ContextLoader; * * @author Phillip Webb * @since 4.0 - * @param the type being converted to (for Encoder) or from (for Decoder) - * @param the WebSocket message type ({@link String} or {@link ByteBuffer}) * @see ConvertingEncoderDecoderSupport.BinaryEncoder * @see ConvertingEncoderDecoderSupport.BinaryDecoder * @see ConvertingEncoderDecoderSupport.TextEncoder * @see ConvertingEncoderDecoderSupport.TextDecoder + * @param the type being converted to (for Encoder) or from (for Decoder) + * @param the WebSocket message type ({@link String} or {@link ByteBuffer}) */ public abstract class ConvertingEncoderDecoderSupport {