Skip to content

Commit accf7ff

Browse files
committed
Merge pull request #32403 from qeeqez
* pr/32403: Polish "Fix Javadoc" Fix Javadoc Closes gh-32403
2 parents c1287d4 + 4983a80 commit accf7ff

File tree

22 files changed

+56
-110
lines changed

22 files changed

+56
-110
lines changed

spring-aop/src/testFixtures/java/org/springframework/aop/testfixture/mixin/LockMixin.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -44,20 +44,15 @@ public void unlock() {
4444
this.locked = false;
4545
}
4646

47-
/**
48-
* @see test.mixin.AopProxyTests.Lockable#locked()
49-
*/
5047
@Override
5148
public boolean locked() {
5249
return this.locked;
5350
}
5451

5552
/**
5653
* Note that we need to override around advice.
57-
* If the method is a setter and we're locked, prevent execution.
58-
* Otherwise let super.invoke() handle it, and do normal
59-
* Lockable(this) then target behaviour.
60-
* @see org.aopalliance.MethodInterceptor#invoke(org.aopalliance.MethodInvocation)
54+
* If the method is a setter, and we're locked, prevent execution.
55+
* Otherwise, let super.invoke() handle it.
6156
*/
6257
@Override
6358
public Object invoke(MethodInvocation invocation) throws Throwable {

spring-beans/src/main/java/org/springframework/beans/factory/support/MethodDescriptor.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -16,10 +16,12 @@
1616

1717
package org.springframework.beans.factory.support;
1818

19+
import java.lang.reflect.Method;
20+
1921
import org.springframework.util.ClassUtils;
2022

2123
/**
22-
* Descriptor for a {@link java.lang.reflect.Method Method} which holds a
24+
* Descriptor for a {@link Method Method} which holds a
2325
* reference to the method's {@linkplain #declaringClass declaring class},
2426
* {@linkplain #methodName name}, and {@linkplain #parameterTypes parameter types}.
2527
*
@@ -34,8 +36,7 @@ record MethodDescriptor(Class<?> declaringClass, String methodName, Class<?>...
3436
/**
3537
* Create a {@link MethodDescriptor} for the supplied bean class and method name.
3638
* <p>The supplied {@code methodName} may be a {@linkplain Method#getName()
37-
* simple method name} or a
38-
* {@linkplain org.springframework.util.ClassUtils#getQualifiedMethodName(Method)
39+
* simple method name} or a {@linkplain ClassUtils#getQualifiedMethodName(Method)
3940
* qualified method name}.
4041
* <p>If the method name is fully qualified, this utility will parse the
4142
* method name and its declaring class from the qualified method name and then

spring-beans/src/test/java/org/springframework/beans/ExtendedBeanInfoTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ class C {
554554
* IntrospectionException regarding a "type mismatch between indexed and non-indexed
555555
* methods" intermittently (approximately one out of every four times) under JDK 7
556556
* due to non-deterministic results from {@link Class#getDeclaredMethods()}.
557-
* See https://bugs.java.com/bugdatabase/view_bug.do?bug_id=7023180
557+
* @see <a href="https://bugs.java.com/bugdatabase/view_bug.do?bug_id=7023180">JDK-7023180</a>
558558
* @see #cornerSpr9702()
559559
*/
560560
@Test

spring-core/src/main/java/org/springframework/core/BridgeMethodResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ private static Method searchForMatch(Class<?> type, Method bridgeMethod) {
266266
/**
267267
* Compare the signatures of the bridge method and the method which it bridges. If
268268
* the parameter and return types are the same, it is a 'visibility' bridge method
269-
* introduced in Java 6 to fix https://bugs.openjdk.org/browse/JDK-6342411.
270-
* See also https://stas-blogspot.blogspot.com/2010/03/java-bridge-methods-explained.html
269+
* introduced in Java 6 to fix <a href="https://bugs.openjdk.org/browse/JDK-6342411">
270+
* JDK-6342411</a>.
271271
* @return whether signatures match as described
272272
*/
273273
public static boolean isVisibilityBridgeMethodPair(Method bridgeMethod, Method bridgedMethod) {

spring-core/src/test/java/org/springframework/core/annotation/NestedRepeatableAnnotationsTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -39,7 +39,6 @@
3939
*
4040
* @author Sam Brannen
4141
* @since 5.3.24
42-
* @see https://github.com/spring-projects/spring-framework/issues/20279
4342
*/
4443
@SuppressWarnings("unused")
4544
class NestedRepeatableAnnotationsTests {

spring-expression/src/main/java/org/springframework/expression/spel/ast/FunctionReference.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ private TypedValue executeFunctionViaMethod(ExpressionState state, Method method
163163
/**
164164
* Execute a function represented as {@link MethodHandle}.
165165
* <p>Method types that take no arguments (fully bound handles or static methods
166-
* with no parameters) can use {@link MethodHandle#invoke()} which is the most
167-
* efficient. Otherwise, {@link MethodHandle#invokeWithArguments()} is used.
166+
* with no parameters) can use {@link MethodHandle#invoke(Object...)} which is the most
167+
* efficient. Otherwise, {@link MethodHandle#invokeWithArguments(Object...)} is used.
168168
* @param state the expression evaluation state
169169
* @param methodHandle the method handle to invoke
170170
* @return the return value of the invoked Java method

spring-expression/src/test/java/org/springframework/expression/spel/ScenariosForSpringSecurityExpressionTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737

3838
import static org.assertj.core.api.Assertions.assertThat;
3939

40-
///CLOVER:OFF
4140
/**
42-
* Spring Security scenarios from https://docs.spring.io/spring-security/reference/servlet/authorization/expression-based.html
41+
* SpEL expression tests for Spring Security scenarios.
4342
*
4443
* @author Andy Clement
44+
* @see <a href="https://docs.spring.io/spring-security/reference/servlet/authorization/authorize-http-requests.html#authorization-expressions">Expressing Authorization with SpEL</a>
4545
*/
4646
class ScenariosForSpringSecurityExpressionTests extends AbstractExpressionTests {
4747

spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/H2DatabasePopulatorTests.java

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,7 @@ protected EmbeddedDatabaseType getEmbeddedDatabaseType() {
4343
return EmbeddedDatabaseType.H2;
4444
}
4545

46-
/**
47-
* https://jira.spring.io/browse/SPR-15896
48-
*
49-
* @since 5.0
50-
*/
51-
@Test
46+
@Test // SPR-15896
5247
void scriptWithH2Alias() {
5348
databasePopulator.addScript(usersSchema());
5449
databasePopulator.addScript(resource("db-test-data-h2-alias.sql"));
@@ -61,12 +56,7 @@ void scriptWithH2Alias() {
6156
assertThat(jdbcTemplate.queryForObject(sql, String.class)).isEqualTo("maS");
6257
}
6358

64-
/**
65-
* https://github.com/spring-projects/spring-framework/issues/27008
66-
*
67-
* @since 5.3.11
68-
*/
69-
@Test
59+
@Test // gh-27008
7060
void automaticallyCommitsIfAutoCommitIsDisabled() throws Exception {
7161
EmbeddedDatabase database = null;
7262
try {

spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessagingTemplate.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -130,8 +130,8 @@ public MessageHeaderInitializer getHeaderInitializer() {
130130
* SimpMessageHeaderAccessor#DESTINATION_HEADER} then the message is sent without
131131
* further changes.
132132
* <p>If a destination header is not already present ,the message is sent
133-
* to the configured {@link #setDefaultDestination(Object) defaultDestination}
134-
* or an exception an {@code IllegalStateException} is raised if that isn't
133+
* to the configured {@link AbstractMessageSendingTemplate#setDefaultDestination(Object)
134+
* defaultDestination} or an {@code IllegalStateException} is raised if that isn't
135135
* configured.
136136
* @param message the message to send (never {@code null})
137137
*/

spring-test/src/test/java/org/springframework/test/context/event/DirtiesContextEventPublishingTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 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.
@@ -49,7 +49,7 @@
4949
*
5050
* @author Sam Brannen
5151
* @since 5.3.17
52-
* @see https://github.com/spring-projects/spring-framework/issues/27757
52+
* @see <a href="https://github.com/spring-projects/spring-framework/issues/27757">gh-27757</a>
5353
*/
5454
class DirtiesContextEventPublishingTests {
5555

0 commit comments

Comments
 (0)