Skip to content

Commit d23893f

Browse files
committed
Consistent javadoc param declarations for type variables
1 parent 22670b7 commit d23893f

File tree

24 files changed

+80
-98
lines changed

24 files changed

+80
-98
lines changed

spring-context-support/src/main/java/org/springframework/cache/jcache/interceptor/JCacheOperation.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,21 +28,21 @@
2828
* <p>A cache operation can be statically cached as it does not contain
2929
* any runtime operation of a specific cache invocation.
3030
*
31-
* @param <A> the type of the JSR-107 annotation
3231
* @author Stephane Nicoll
3332
* @since 4.1
33+
* @param <A> the type of the JSR-107 annotation
3434
*/
3535
public interface JCacheOperation<A extends Annotation> extends BasicOperation, CacheMethodDetails<A> {
3636

3737
/**
38-
* Return the {@link CacheResolver} instance to use to resolve the cache to
39-
* use for this operation.
38+
* Return the {@link CacheResolver} instance to use to resolve the cache
39+
* to use for this operation.
4040
*/
4141
CacheResolver getCacheResolver();
4242

4343
/**
44-
* Return the {@link CacheInvocationParameter} instances based on the specified
45-
* method arguments.
44+
* Return the {@link CacheInvocationParameter} instances based on the
45+
* specified method arguments.
4646
* <p>The method arguments must match the signature of the related method invocation
4747
* @param values the parameters value for a particular invocation
4848
*/

spring-context/src/main/java/org/springframework/context/ApplicationListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-context/src/main/java/org/springframework/context/PayloadApplicationEvent.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,26 @@
2020

2121
/**
2222
* An {@link ApplicationEvent} that carries an arbitrary payload.
23-
* <p>
24-
* Mainly intended for internal use within the framework.
2523
*
26-
* @param <T> the payload type of the event
24+
* <p>Mainly intended for internal use within the framework.
25+
*
2726
* @author Stephane Nicoll
2827
* @since 4.2
28+
* @param <T> the payload type of the event
2929
*/
3030
@SuppressWarnings("serial")
31-
public class PayloadApplicationEvent<T>
32-
extends ApplicationEvent {
31+
public class PayloadApplicationEvent<T> extends ApplicationEvent {
3332

3433
private final T payload;
3534

35+
3636
public PayloadApplicationEvent(Object source, T payload) {
3737
super(source);
3838
Assert.notNull(payload, "Payload must not be null");
3939
this.payload = payload;
4040
}
4141

42+
4243
/**
4344
* Return the payload of the event.
4445
*/

spring-context/src/main/java/org/springframework/context/annotation/AdviceModeImportSelector.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/*
2-
* Copyright 2002-2013 the original author or authors.
1+
/*
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,9 +28,9 @@
2828
* based on an {@link AdviceMode} value from an annotation (such as the {@code @Enable*}
2929
* annotations).
3030
*
31-
* @param <A> Annotation containing {@linkplain #getAdviceModeAttributeName() AdviceMode attribute}
3231
* @author Chris Beams
3332
* @since 3.1
33+
* @param <A> annotation containing {@linkplain #getAdviceModeAttributeName() AdviceMode attribute}
3434
*/
3535
public abstract class AdviceModeImportSelector<A extends Annotation> implements ImportSelector {
3636

spring-core/src/main/java/org/springframework/core/convert/converter/ConverterFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,8 +24,8 @@
2424
* @author Keith Donald
2525
* @since 3.0
2626
* @see ConditionalConverter
27-
* @param <S> The source type converters created by this factory can convert from
28-
* @param <R> The target range (or base) type converters created by this factory can convert to;
27+
* @param <S> the source type converters created by this factory can convert from
28+
* @param <R> the target range (or base) type converters created by this factory can convert to;
2929
* for example {@link Number} for a set of number subtypes.
3030
*/
3131
public interface ConverterFactory<S, R> {

spring-core/src/main/java/org/springframework/core/convert/converter/ConvertingComparator.java

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -29,9 +29,9 @@
2929
* {@code Comparator}.
3030
*
3131
* @author Phillip Webb
32+
* @since 3.2
3233
* @param <S> the source type
3334
* @param <T> the target type
34-
* @since 3.2
3535
*/
3636
public class ConvertingComparator<S, T> implements Comparator<S> {
3737

@@ -42,7 +42,6 @@ public class ConvertingComparator<S, T> implements Comparator<S> {
4242

4343
/**
4444
* Create a new {@link ConvertingComparator} instance.
45-
*
4645
* @param converter the converter
4746
*/
4847
@SuppressWarnings("unchecked")
@@ -52,7 +51,6 @@ public ConvertingComparator(Converter<S, T> converter) {
5251

5352
/**
5453
* Create a new {@link ConvertingComparator} instance.
55-
*
5654
* @param comparator the underlying comparator used to compare the converted values
5755
* @param converter the converter
5856
*/
@@ -65,15 +63,14 @@ public ConvertingComparator(Comparator<T> comparator, Converter<S, T> converter)
6563

6664
/**
6765
* Create a new {@link ComparableComparator} instance.
68-
*
6966
* @param comparator the underlying comparator
7067
* @param conversionService the conversion service
7168
* @param targetType the target type
7269
*/
73-
public ConvertingComparator(Comparator<T> comparator,
74-
ConversionService conversionService, Class<? extends T> targetType) {
75-
this(comparator, new ConversionServiceConverter<S, T>(
76-
conversionService, targetType));
70+
public ConvertingComparator(
71+
Comparator<T> comparator, ConversionService conversionService, Class<? extends T> targetType) {
72+
73+
this(comparator, new ConversionServiceConverter<S, T>(conversionService, targetType));
7774
}
7875

7976

@@ -87,14 +84,11 @@ public int compare(S o1, S o2) {
8784
/**
8885
* Create a new {@link ConvertingComparator} that compares {@link java.util.Map.Entry
8986
* map * entries} based on their {@link java.util.Map.Entry#getKey() keys}.
90-
*
9187
* @param comparator the underlying comparator used to compare keys
9288
* @return a new {@link ConvertingComparator} instance
9389
*/
94-
public static <K, V> ConvertingComparator<Map.Entry<K, V>, K> mapEntryKeys(
95-
Comparator<K> comparator) {
90+
public static <K, V> ConvertingComparator<Map.Entry<K, V>, K> mapEntryKeys(Comparator<K> comparator) {
9691
return new ConvertingComparator<Map.Entry<K,V>, K>(comparator, new Converter<Map.Entry<K, V>, K>() {
97-
9892
@Override
9993
public K convert(Map.Entry<K, V> source) {
10094
return source.getKey();
@@ -105,14 +99,11 @@ public K convert(Map.Entry<K, V> source) {
10599
/**
106100
* Create a new {@link ConvertingComparator} that compares {@link java.util.Map.Entry
107101
* map entries} based on their {@link java.util.Map.Entry#getValue() values}.
108-
*
109102
* @param comparator the underlying comparator used to compare values
110103
* @return a new {@link ConvertingComparator} instance
111104
*/
112-
public static <K, V> ConvertingComparator<Map.Entry<K, V>, V> mapEntryValues(
113-
Comparator<V> comparator) {
105+
public static <K, V> ConvertingComparator<Map.Entry<K, V>, V> mapEntryValues(Comparator<V> comparator) {
114106
return new ConvertingComparator<Map.Entry<K,V>, V>(comparator, new Converter<Map.Entry<K, V>, V>() {
115-
116107
@Override
117108
public V convert(Map.Entry<K, V> source) {
118109
return source.getValue();

spring-core/src/main/java/org/springframework/core/convert/converter/GenericConverter.java

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,9 +27,9 @@
2727
* <p>This is the most flexible of the Converter SPI interfaces, but also the most complex.
2828
* It is flexible in that a GenericConverter may support converting between multiple source/target
2929
* type pairs (see {@link #getConvertibleTypes()}. In addition, GenericConverter implementations
30-
* have access to source/target {@link TypeDescriptor field context} during the type conversion process.
31-
* This allows for resolving source and target field metadata such as annotations and generics
32-
* information, which can be used influence the conversion logic.
30+
* have access to source/target {@link TypeDescriptor field context} during the type conversion
31+
* process. This allows for resolving source and target field metadata such as annotations and
32+
* generics information, which can be used influence the conversion logic.
3333
*
3434
* <p>This interface should generally not be used when the simpler {@link Converter} or
3535
* {@link ConverterFactory} interfaces are sufficient.
@@ -49,9 +49,8 @@ public interface GenericConverter {
4949
/**
5050
* Return the source and target types which this converter can convert between. Each
5151
* entry is a convertible source-to-target type pair.
52-
* <p>
53-
* For {@link ConditionalConverter conditional} converters this method may return
54-
* {@code null} to indicate all source-to-target pairs should be considered. *
52+
* <p>For {@link ConditionalConverter conditional} converters this method may return
53+
* {@code null} to indicate all source-to-target pairs should be considered.
5554
*/
5655
Set<ConvertiblePair> getConvertibleTypes();
5756

@@ -95,25 +94,25 @@ public Class<?> getTargetType() {
9594
}
9695

9796
@Override
98-
public boolean equals(Object obj) {
99-
if (this == obj) {
97+
public boolean equals(Object other) {
98+
if (this == other) {
10099
return true;
101100
}
102-
if (obj == null || obj.getClass() != ConvertiblePair.class) {
101+
if (other == null || other.getClass() != ConvertiblePair.class) {
103102
return false;
104103
}
105-
ConvertiblePair other = (ConvertiblePair) obj;
106-
return this.sourceType.equals(other.sourceType) && this.targetType.equals(other.targetType);
104+
ConvertiblePair otherPair = (ConvertiblePair) other;
105+
return (this.sourceType.equals(otherPair.sourceType) && this.targetType.equals(otherPair.targetType));
107106
}
108107

109108
@Override
110109
public int hashCode() {
111-
return this.sourceType.hashCode() * 31 + this.targetType.hashCode();
110+
return (this.sourceType.hashCode() * 31 + this.targetType.hashCode());
112111
}
113112

114113
@Override
115114
public String toString() {
116-
return this.sourceType.getName() + " -> " + this.targetType.getName();
115+
return (this.sourceType.getName() + " -> " + this.targetType.getName());
117116
}
118117
}
119118

spring-core/src/main/java/org/springframework/util/ConcurrentReferenceHashMap.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -51,10 +51,10 @@
5151
* <p>If not explicitly specified, this implementation will use
5252
* {@linkplain SoftReference soft entry references}.
5353
*
54-
* @param <K> The key type
55-
* @param <V> The value type
5654
* @author Phillip Webb
5755
* @since 3.2
56+
* @param <K> the key type
57+
* @param <V> the value type
5858
*/
5959
public class ConcurrentReferenceHashMap<K, V> extends AbstractMap<K, V> implements ConcurrentMap<K, V> {
6060

spring-core/src/main/java/org/springframework/util/comparator/InstanceComparator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,8 +32,8 @@
3232
*
3333
* @author Phillip Webb
3434
* @since 3.2
35-
* @param <T> the type of objects being compared
3635
* @see CompoundComparator
36+
* @param <T> the type of objects being compared
3737
*/
3838
public class InstanceComparator<T> implements Comparator<T> {
3939

spring-core/src/main/java/org/springframework/util/concurrent/ListenableFutureAdapter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,10 +25,10 @@
2525
* and {@link ListenableFutureCallback#onSuccess(Object)} call {@link #adapt(Object)}
2626
* on the adaptee's result.
2727
*
28-
* @param <T> the type of this {@code Future}
29-
* @param <S> the type of the adaptee's {@code Future}
3028
* @author Arjen Poutsma
3129
* @since 4.0
30+
* @param <T> the type of this {@code Future}
31+
* @param <S> the type of the adaptee's {@code Future}
3232
*/
3333
public abstract class ListenableFutureAdapter<T, S> extends FutureAdapter<T, S> implements ListenableFuture<T> {
3434

spring-messaging/src/main/java/org/springframework/messaging/core/MessageReceivingOperations.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,12 +22,11 @@
2222
/**
2323
* Operations for receiving messages from a destination.
2424
*
25-
* @param <D> the type of destination to receive messages from
26-
*
2725
* @author Mark Fisher
2826
* @author Rossen Stoyanchev
2927
* @since 4.0
3028
* @see GenericMessagingTemplate
29+
* @param <D> the type of destination to receive messages from
3130
*/
3231
public interface MessageReceivingOperations<D> {
3332

spring-messaging/src/main/java/org/springframework/messaging/core/MessageRequestReplyOperations.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,12 +24,11 @@
2424
/**
2525
* Operations for sending messages to and receiving the reply from a destination.
2626
*
27-
* @param <D> the type of destination
28-
*
2927
* @author Mark Fisher
3028
* @author Rossen Stoyanchev
3129
* @since 4.0
3230
* @see GenericMessagingTemplate
31+
* @param <D> the type of destination
3332
*/
3433
public interface MessageRequestReplyOperations<D> {
3534

spring-messaging/src/main/java/org/springframework/messaging/core/MessageSendingOperations.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,11 +24,10 @@
2424
/**
2525
* Operations for sending messages to a destination.
2626
*
27-
* @param <D> the type of destination to send messages to
28-
*
2927
* @author Mark Fisher
3028
* @author Rossen Stoyanchev
3129
* @since 4.0
30+
* @param <D> the type of destination to send messages to
3231
*/
3332
public interface MessageSendingOperations<D> {
3433

spring-messaging/src/main/java/org/springframework/messaging/handler/MessageCondition.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,10 +25,9 @@
2525
* matched to a specific Message, as well as compared to each other in the
2626
* context of a Message to determine which one matches a request more closely.
2727
*
28-
* @param <T> The kind of condition that this condition can be combined with or compared to
29-
*
3028
* @author Rossen Stoyanchev
3129
* @since 4.0
30+
* @param <T> the kind of condition that this condition can be combined with or compared to
3231
*/
3332
public interface MessageCondition<T> {
3433

0 commit comments

Comments
 (0)