Skip to content

Commit 4983a80

Browse files
committed
Polish "Fix Javadoc"
See gh-32403
1 parent abdccff commit 4983a80

File tree

17 files changed

+38
-92
lines changed

17 files changed

+38
-92
lines changed

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

+2-7
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,15 @@ public void unlock() {
4444
this.locked = false;
4545
}
4646

47-
/**
48-
* @see org.springframework.aop.testfixture.mixin.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.intercept.MethodInterceptor#invoke(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

+5-4
Original file line numberDiff line numberDiff line change
@@ -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
*
@@ -33,9 +35,8 @@ record MethodDescriptor(Class<?> declaringClass, String methodName, Class<?>...
3335

3436
/**
3537
* Create a {@link MethodDescriptor} for the supplied bean class and method name.
36-
* <p>The supplied {@code methodName} may be a {@linkplain java.lang.reflect.Method#getName()
37-
* simple method name} or a
38-
* {@linkplain org.springframework.util.ClassUtils#getQualifiedMethodName(java.lang.reflect.Method)
38+
* <p>The supplied {@code methodName} may be a {@linkplain Method#getName()
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

+1-1
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 <a href="https://bugs.java.com/bugdatabase/view_bug.do?bug_id=7023180">JDK-7023180 : Change in specified-to-be-unspecified ordering of getDeclaredMethods causes application problems</a>
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,9 @@ 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 <a href="https://bugs.openjdk.org/browse/JDK-6342411">JDK-6342411</a>.
269+
* introduced in Java 6 to fix <a href="https://bugs.openjdk.org/browse/JDK-6342411">
270+
* JDK-6342411</a>.
270271
* @return whether signatures match as described
271-
* @see <a href="https://stas-blogspot.blogspot.com/2010/03/java-bridge-methods-explained.html">Java bridge methods explained</a>
272272
*/
273273
public static boolean isVisibilityBridgeMethodPair(Method bridgeMethod, Method bridgedMethod) {
274274
if (bridgeMethod == bridgedMethod) {

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

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
*
4040
* @author Sam Brannen
4141
* @since 5.3.24
42-
* @see <a href="https://github.com/spring-projects/spring-framework/issues/20279">gh-20279</a>
4342
*/
4443
@SuppressWarnings("unused")
4544
class NestedRepeatableAnnotationsTests {

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

+2-2
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(Object... var1)} which is the most
167-
* efficient. Otherwise, {@link MethodHandle#invokeWithArguments(Object... arguments)} 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

+2-2
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 <a href="https://docs.spring.io/spring-security/reference/servlet/authorization/authorize-http-requests.html#authorization-expressions">Expressing Authorization with SpEL</a>
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

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

46-
/**
47-
* <a href="https://jira.spring.io/browse/SPR-15896">SPR-15896</a>
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-
* <a href="https://github.com/spring-projects/spring-framework/issues/27008">gh-27008</a>
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -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 AbstractMessageSendingTemplate#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/EagerTestExecutionEventPublishingTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
*
5151
* @author Sam Brannen
5252
* @since 5.3.17
53-
* @see <a href="https://github.com/spring-projects/spring-framework/issues/27757">gh-27757</a>
5453
*/
5554
class EagerTestExecutionEventPublishingTests {
5655

spring-test/src/test/java/org/springframework/test/context/junit4/rules/AutowiredRuleTests.java renamed to spring-test/src/test/java/org/springframework/test/context/junit4/rules/AutowiredRuleSpr15927Tests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
import static org.assertj.core.api.Assertions.assertThat;
3131

3232
/**
33-
* Integration tests for an issue raised in <a href="https://jira.spring.io/browse/SPR-15927">SPR-15927</a>.
33+
* Integration tests for {@code SPR-15927}.
3434
*
3535
* @author Sam Brannen
3636
* @since 5.0
3737
*/
38-
public class AutowiredRuleTests {
38+
public class AutowiredRuleSpr15927Tests {
3939

4040
@ClassRule
4141
public static final SpringClassRule springClassRule = new SpringClassRule();

spring-test/src/test/java/org/springframework/test/context/support/ContextLoaderUtilsContextHierarchyTests.java

+4-15
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,7 @@ void buildContextHierarchyMapForSingleTestClassWithMultiLevelContextHierarchyWit
327327
assertContextConfigEntriesAreNotUnique(SingleTestClassWithMultiLevelContextHierarchyWithDuplicatedContextConfig.class);
328328
}
329329

330-
/**
331-
* Used to reproduce bug reported in <a href="https://jira.spring.io/browse/SPR-10997">SPR-10997</a>
332-
*/
333-
@Test
330+
@Test // SPR-10997
334331
void buildContextHierarchyMapForTestClassHierarchyWithMultiLevelContextHierarchiesAndOverriddenInitializers() {
335332
Map<String, List<ContextConfigurationAttributes>> map = buildContextHierarchyMap(TestClass2WithMultiLevelContextHierarchyWithOverriddenInitializers.class);
336333

@@ -504,32 +501,24 @@ private static class SingleTestClassWithMultiLevelContextHierarchyWithEmptyConte
504501
private static class SingleTestClassWithMultiLevelContextHierarchyWithDuplicatedContextConfig {
505502
}
506503

507-
/**
508-
* Used to reproduce bug reported in <a href="https://jira.spring.io/browse/SPR-10997">SPR-10997</a>
509-
*/
510504
@ContextHierarchy({//
511505
//
512506
@ContextConfiguration(name = "alpha", locations = "1-A.xml"),//
513507
@ContextConfiguration(name = "beta", locations = "1-B.xml") //
514-
})
508+
}) // SPR-10997
515509
private static class TestClass1WithMultiLevelContextHierarchyWithUniqueContextConfig {
516510
}
517511

518-
/**
519-
* Used to reproduce bug reported in <a href="https://jira.spring.io/browse/SPR-10997">SPR-10997</a>
520-
*/
521512
@ContextHierarchy({//
522513
//
523514
@ContextConfiguration(name = "alpha", initializers = DummyApplicationContextInitializer.class),//
524515
@ContextConfiguration(name = "beta", initializers = DummyApplicationContextInitializer.class) //
525-
})
516+
}) // SPR-10997
526517
private static class TestClass2WithMultiLevelContextHierarchyWithOverriddenInitializers extends
527518
TestClass1WithMultiLevelContextHierarchyWithUniqueContextConfig {
528519
}
529520

530-
/**
531-
* Used to reproduce bug reported in <a href="https://jira.spring.io/browse/SPR-10997">SPR-10997</a>
532-
*/
521+
// SPR-10997
533522
private static class DummyApplicationContextInitializer implements
534523
ApplicationContextInitializer<ConfigurableApplicationContext> {
535524

spring-web/src/jmh/java/org/springframework/web/bind/ServletRequestUtilsBenchmark.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package org.springframework.web.bind;
1818

19+
import jakarta.servlet.ServletRequest;
1920
import org.openjdk.jmh.annotations.Benchmark;
2021
import org.openjdk.jmh.annotations.BenchmarkMode;
2122
import org.openjdk.jmh.annotations.Mode;
@@ -26,7 +27,8 @@
2627

2728

2829
/**
29-
* Benchmarks for extracting parameters from {@link jakarta.servlet.ServletRequest}.
30+
* Benchmarks for extracting parameters from {@link ServletRequest}.
31+
*
3032
* @author Brian Clozel
3133
*/
3234
@BenchmarkMode(Mode.Throughput)

spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteProcessor.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ public abstract class AbstractListenerWriteProcessor<T> implements Processor<T,
6969
/**
7070
* Indicates we're waiting for one last isReady-onWritePossible cycle
7171
* after "onComplete" because some Servlet containers expect this to take
72-
* place prior to calling AsyncContext.complete().
73-
* @see <a href="https://github.com/eclipse-ee4j/servlet-api/issues/273">gh-273</a>
72+
* place prior to calling AsyncContext.complete(). See also gh-273.
7473
*/
7574
private volatile boolean readyToCompleteAfterLastWrite;
7675

spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/UrlFilenameViewControllerTests.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,8 @@ void settingSuffixToNullCausesEmptyStringToBeUsed() {
170170

171171
/**
172172
* This is the expected behavior, and it now has a test to prove it.
173-
* @see <a href="https://opensource.atlassian.com/projects/spring/browse/SPR-2789">SPR-2789</a>
174173
*/
175-
@PathPatternsParameterizedTest
174+
@PathPatternsParameterizedTest // SPR-2789
176175
void nestedPathisUsedAsViewName_InBreakingChangeFromSpring12Line(
177176
Function<String, MockHttpServletRequest> requestFactory) throws Exception {
178177

spring-webmvc/src/test/java/org/springframework/web/servlet/tags/form/ErrorsTagTests.java

+6-24
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,7 @@ void asBodyTagWithExistingMessagesAttribute() throws Exception {
355355
assertThat(getPageContext().getAttribute(ErrorsTag.MESSAGES_ATTRIBUTE)).isEqualTo(existingAttribute);
356356
}
357357

358-
/**
359-
* <a href="https://jira.spring.io/browse/SPR-2788">SPR-2788</a>
360-
*/
361-
@Test
358+
@Test // SPR-2788
362359
void asBodyTagWithErrorsAndExistingMessagesAttributeInNonPageScopeAreNotClobbered() throws Exception {
363360
String existingAttribute = "something";
364361
getPageContext().setAttribute(ErrorsTag.MESSAGES_ATTRIBUTE, existingAttribute, PageContext.APPLICATION_SCOPE);
@@ -379,42 +376,27 @@ void asBodyTagWithErrorsAndExistingMessagesAttributeInNonPageScopeAreNotClobbere
379376
assertThat(getPageContext().getAttribute(ErrorsTag.MESSAGES_ATTRIBUTE, PageContext.APPLICATION_SCOPE)).isEqualTo(existingAttribute);
380377
}
381378

382-
/**
383-
* <a href="https://jira.spring.io/browse/SPR-2788">SPR-2788</a>
384-
*/
385-
@Test
379+
@Test // SPR-2788
386380
void asBodyTagWithNoErrorsAndExistingMessagesAttributeInApplicationScopeAreNotClobbered() throws Exception {
387381
assertWhenNoErrorsExistingMessagesInScopeAreNotClobbered(PageContext.APPLICATION_SCOPE);
388382
}
389383

390-
/**
391-
* <a href="https://jira.spring.io/browse/SPR-2788">SPR-2788</a>
392-
*/
393-
@Test
384+
@Test // SPR-2788
394385
void asBodyTagWithNoErrorsAndExistingMessagesAttributeInSessionScopeAreNotClobbered() throws Exception {
395386
assertWhenNoErrorsExistingMessagesInScopeAreNotClobbered(PageContext.SESSION_SCOPE);
396387
}
397388

398-
/**
399-
* <a href="https://jira.spring.io/browse/SPR-2788">SPR-2788</a>
400-
*/
401-
@Test
389+
@Test // SPR-2788
402390
void asBodyTagWithNoErrorsAndExistingMessagesAttributeInPageScopeAreNotClobbered() throws Exception {
403391
assertWhenNoErrorsExistingMessagesInScopeAreNotClobbered(PageContext.PAGE_SCOPE);
404392
}
405393

406-
/**
407-
* <a href="https://jira.spring.io/browse/SPR-2788">SPR-2788</a>
408-
*/
409-
@Test
394+
@Test // SPR-2788
410395
void asBodyTagWithNoErrorsAndExistingMessagesAttributeInRequestScopeAreNotClobbered() throws Exception {
411396
assertWhenNoErrorsExistingMessagesInScopeAreNotClobbered(PageContext.REQUEST_SCOPE);
412397
}
413398

414-
/**
415-
* <a href="https://jira.spring.io/browse/SPR-4005">SPR-4005</a>
416-
*/
417-
@Test
399+
@Test // SPR-4005
418400
void omittedPathMatchesObjectErrorsOnly() throws Exception {
419401
this.tag.setPath(null);
420402
Errors errors = new BeanPropertyBindingResult(new TestBean(), "COMMAND_NAME");

spring-webmvc/src/test/java/org/springframework/web/servlet/tags/form/PasswordInputTagTests.java

+3-12
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@
3131
*/
3232
class PasswordInputTagTests extends InputTagTests {
3333

34-
/**
35-
* <a href="https://jira.spring.io/browse/SPR-2866">SPR-2866</a>
36-
*/
37-
@Test
34+
@Test // SPR-2866
3835
void passwordValueIsNotRenderedByDefault() throws Exception {
3936
this.getTag().setPath("name");
4037

@@ -48,10 +45,7 @@ void passwordValueIsNotRenderedByDefault() throws Exception {
4845
assertValueAttribute(output, "");
4946
}
5047

51-
/**
52-
* <a href="https://jira.spring.io/browse/SPR-2866">SPR-2866</a>
53-
*/
54-
@Test
48+
@Test // SPR-2866
5549
void passwordValueIsRenderedIfShowPasswordAttributeIsSetToTrue() throws Exception {
5650
this.getTag().setPath("name");
5751
this.getPasswordTag().setShowPassword(true);
@@ -66,10 +60,7 @@ void passwordValueIsRenderedIfShowPasswordAttributeIsSetToTrue() throws Exceptio
6660
assertValueAttribute(output, "Rob");
6761
}
6862

69-
/**
70-
* <a href="https://jira.spring.io/browse/SPR-2866">SPR-2866</a>
71-
*/
72-
@Test
63+
@Test // >SPR-2866
7364
void passwordValueIsNotRenderedIfShowPasswordAttributeIsSetToFalse() throws Exception {
7465
this.getTag().setPath("name");
7566
this.getPasswordTag().setShowPassword(false);

0 commit comments

Comments
 (0)