diff --git a/spring-aop/src/testFixtures/java/org/springframework/aop/testfixture/mixin/LockMixin.java b/spring-aop/src/testFixtures/java/org/springframework/aop/testfixture/mixin/LockMixin.java index 33ffc13f39f9..7d4ec1a6be15 100644 --- a/spring-aop/src/testFixtures/java/org/springframework/aop/testfixture/mixin/LockMixin.java +++ b/spring-aop/src/testFixtures/java/org/springframework/aop/testfixture/mixin/LockMixin.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2023 the original author or authors. + * Copyright 2002-2024 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. @@ -45,7 +45,7 @@ public void unlock() { } /** - * @see test.mixin.AopProxyTests.Lockable#locked() + * @see org.springframework.aop.testfixture.mixin.Lockable#locked() */ @Override public boolean locked() { @@ -57,7 +57,7 @@ public boolean locked() { * If the method is a setter and we're locked, prevent execution. * Otherwise let super.invoke() handle it, and do normal * Lockable(this) then target behaviour. - * @see org.aopalliance.MethodInterceptor#invoke(org.aopalliance.MethodInvocation) + * @see org.aopalliance.intercept.MethodInterceptor#invoke(MethodInvocation) */ @Override public Object invoke(MethodInvocation invocation) throws Throwable { diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/support/MethodDescriptor.java b/spring-beans/src/main/java/org/springframework/beans/factory/support/MethodDescriptor.java index c895734f0ec3..03ddf5c22481 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/support/MethodDescriptor.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/support/MethodDescriptor.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2023 the original author or authors. + * Copyright 2002-2024 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. @@ -33,9 +33,9 @@ record MethodDescriptor(Class> declaringClass, String methodName, Class>... /** * Create a {@link MethodDescriptor} for the supplied bean class and method name. - *
The supplied {@code methodName} may be a {@linkplain Method#getName() + *
The supplied {@code methodName} may be a {@linkplain java.lang.reflect.Method#getName() * simple method name} or a - * {@linkplain org.springframework.util.ClassUtils#getQualifiedMethodName(Method) + * {@linkplain org.springframework.util.ClassUtils#getQualifiedMethodName(java.lang.reflect.Method) * qualified method name}. *
If the method name is fully qualified, this utility will parse the * method name and its declaring class from the qualified method name and then diff --git a/spring-beans/src/test/java/org/springframework/beans/ExtendedBeanInfoTests.java b/spring-beans/src/test/java/org/springframework/beans/ExtendedBeanInfoTests.java index 6bd565c4dfc7..a648bf23cfb2 100644 --- a/spring-beans/src/test/java/org/springframework/beans/ExtendedBeanInfoTests.java +++ b/spring-beans/src/test/java/org/springframework/beans/ExtendedBeanInfoTests.java @@ -554,7 +554,7 @@ class C { * IntrospectionException regarding a "type mismatch between indexed and non-indexed * methods" intermittently (approximately one out of every four times) under JDK 7 * due to non-deterministic results from {@link Class#getDeclaredMethods()}. - * See https://bugs.java.com/bugdatabase/view_bug.do?bug_id=7023180 + * @see JDK-7023180 : Change in specified-to-be-unspecified ordering of getDeclaredMethods causes application problems * @see #cornerSpr9702() */ @Test diff --git a/spring-core/src/main/java/org/springframework/core/BridgeMethodResolver.java b/spring-core/src/main/java/org/springframework/core/BridgeMethodResolver.java index b37b120868dd..d4ad95052005 100644 --- a/spring-core/src/main/java/org/springframework/core/BridgeMethodResolver.java +++ b/spring-core/src/main/java/org/springframework/core/BridgeMethodResolver.java @@ -266,9 +266,9 @@ private static Method searchForMatch(Class> type, Method bridgeMethod) { /** * Compare the signatures of the bridge method and the method which it bridges. If * the parameter and return types are the same, it is a 'visibility' bridge method - * introduced in Java 6 to fix https://bugs.openjdk.org/browse/JDK-6342411. - * See also https://stas-blogspot.blogspot.com/2010/03/java-bridge-methods-explained.html + * introduced in Java 6 to fix JDK-6342411. * @return whether signatures match as described + * @see Java bridge methods explained */ public static boolean isVisibilityBridgeMethodPair(Method bridgeMethod, Method bridgedMethod) { if (bridgeMethod == bridgedMethod) { diff --git a/spring-core/src/test/java/org/springframework/core/annotation/NestedRepeatableAnnotationsTests.java b/spring-core/src/test/java/org/springframework/core/annotation/NestedRepeatableAnnotationsTests.java index 2f99db0018dc..b6e88e7c13d2 100644 --- a/spring-core/src/test/java/org/springframework/core/annotation/NestedRepeatableAnnotationsTests.java +++ b/spring-core/src/test/java/org/springframework/core/annotation/NestedRepeatableAnnotationsTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2022 the original author or authors. + * Copyright 2002-2024 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. @@ -39,7 +39,7 @@ * * @author Sam Brannen * @since 5.3.24 - * @see https://github.com/spring-projects/spring-framework/issues/20279 + * @see gh-20279 */ @SuppressWarnings("unused") class NestedRepeatableAnnotationsTests { diff --git a/spring-expression/src/main/java/org/springframework/expression/spel/ast/FunctionReference.java b/spring-expression/src/main/java/org/springframework/expression/spel/ast/FunctionReference.java index 19c145d0ccf0..1bcc196f963c 100644 --- a/spring-expression/src/main/java/org/springframework/expression/spel/ast/FunctionReference.java +++ b/spring-expression/src/main/java/org/springframework/expression/spel/ast/FunctionReference.java @@ -163,8 +163,8 @@ private TypedValue executeFunctionViaMethod(ExpressionState state, Method method /** * Execute a function represented as {@link MethodHandle}. *
Method types that take no arguments (fully bound handles or static methods - * with no parameters) can use {@link MethodHandle#invoke()} which is the most - * efficient. Otherwise, {@link MethodHandle#invokeWithArguments()} is used. + * with no parameters) can use {@link MethodHandle#invoke(Object... var1)} which is the most + * efficient. Otherwise, {@link MethodHandle#invokeWithArguments(Object... arguments)} is used. * @param state the expression evaluation state * @param methodHandle the method handle to invoke * @return the return value of the invoked Java method diff --git a/spring-expression/src/test/java/org/springframework/expression/spel/ScenariosForSpringSecurityExpressionTests.java b/spring-expression/src/test/java/org/springframework/expression/spel/ScenariosForSpringSecurityExpressionTests.java index 4db9898a230b..8d57a86491d0 100644 --- a/spring-expression/src/test/java/org/springframework/expression/spel/ScenariosForSpringSecurityExpressionTests.java +++ b/spring-expression/src/test/java/org/springframework/expression/spel/ScenariosForSpringSecurityExpressionTests.java @@ -39,7 +39,7 @@ ///CLOVER:OFF /** - * Spring Security scenarios from https://docs.spring.io/spring-security/reference/servlet/authorization/expression-based.html + * Spring Security scenarios from Expressing Authorization with SpEL * * @author Andy Clement */ diff --git a/spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/H2DatabasePopulatorTests.java b/spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/H2DatabasePopulatorTests.java index 1da75c22dc0c..1f897a85713e 100644 --- a/spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/H2DatabasePopulatorTests.java +++ b/spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/H2DatabasePopulatorTests.java @@ -44,7 +44,7 @@ protected EmbeddedDatabaseType getEmbeddedDatabaseType() { } /** - * https://jira.spring.io/browse/SPR-15896 + * SPR-15896 * * @since 5.0 */ @@ -62,7 +62,7 @@ void scriptWithH2Alias() { } /** - * https://github.com/spring-projects/spring-framework/issues/27008 + * gh-27008 * * @since 5.3.11 */ diff --git a/spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessagingTemplate.java b/spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessagingTemplate.java index 94c35515b330..5df97e571f26 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessagingTemplate.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessagingTemplate.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2023 the original author or authors. + * Copyright 2002-2024 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. @@ -130,7 +130,7 @@ public MessageHeaderInitializer getHeaderInitializer() { * SimpMessageHeaderAccessor#DESTINATION_HEADER} then the message is sent without * further changes. *
If a destination header is not already present ,the message is sent
- * to the configured {@link #setDefaultDestination(Object) defaultDestination}
+ * to the configured {@link AbstractMessageSendingTemplate#setDefaultDestination(Object) defaultDestination}
* or an exception an {@code IllegalStateException} is raised if that isn't
* configured.
* @param message the message to send (never {@code null})
diff --git a/spring-test/src/test/java/org/springframework/test/context/event/DirtiesContextEventPublishingTests.java b/spring-test/src/test/java/org/springframework/test/context/event/DirtiesContextEventPublishingTests.java
index e6dab3c4f75c..47b9e4c95fbc 100644
--- a/spring-test/src/test/java/org/springframework/test/context/event/DirtiesContextEventPublishingTests.java
+++ b/spring-test/src/test/java/org/springframework/test/context/event/DirtiesContextEventPublishingTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2022 the original author or authors.
+ * Copyright 2002-2024 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.
@@ -49,7 +49,7 @@
*
* @author Sam Brannen
* @since 5.3.17
- * @see https://github.com/spring-projects/spring-framework/issues/27757
+ * @see gh-27757
*/
class DirtiesContextEventPublishingTests {
diff --git a/spring-test/src/test/java/org/springframework/test/context/event/EagerTestExecutionEventPublishingTests.java b/spring-test/src/test/java/org/springframework/test/context/event/EagerTestExecutionEventPublishingTests.java
index fffc73d1d4bd..6d6dc4b444ca 100644
--- a/spring-test/src/test/java/org/springframework/test/context/event/EagerTestExecutionEventPublishingTests.java
+++ b/spring-test/src/test/java/org/springframework/test/context/event/EagerTestExecutionEventPublishingTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2022 the original author or authors.
+ * Copyright 2002-2024 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.
@@ -50,7 +50,7 @@
*
* @author Sam Brannen
* @since 5.3.17
- * @see https://github.com/spring-projects/spring-framework/issues/27757
+ * @see gh-27757
*/
class EagerTestExecutionEventPublishingTests {
diff --git a/spring-test/src/test/java/org/springframework/test/context/jdbc/PrimaryDataSourceTests.java b/spring-test/src/test/java/org/springframework/test/context/jdbc/PrimaryDataSourceTests.java
index 0db28f876248..d4cd1bae69c0 100644
--- a/spring-test/src/test/java/org/springframework/test/context/jdbc/PrimaryDataSourceTests.java
+++ b/spring-test/src/test/java/org/springframework/test/context/jdbc/PrimaryDataSourceTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * Copyright 2002-2024 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.
@@ -39,7 +39,7 @@
*
* @author Sam Brannen
* @since 4.3
- * @see org.springframework.test.context.transaction.PrimaryTransactionManagerTests
+ * @see org.springframework.test.context.transaction.manager.PrimaryTransactionManagerTests
*/
@SpringJUnitConfig
@DirtiesContext
diff --git a/spring-test/src/test/java/org/springframework/test/context/junit4/rules/AutowiredRuleTests.java b/spring-test/src/test/java/org/springframework/test/context/junit4/rules/AutowiredRuleTests.java
index 654fed92f62e..70e651968ec0 100644
--- a/spring-test/src/test/java/org/springframework/test/context/junit4/rules/AutowiredRuleTests.java
+++ b/spring-test/src/test/java/org/springframework/test/context/junit4/rules/AutowiredRuleTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * Copyright 2002-2024 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.
@@ -30,7 +30,7 @@
import static org.assertj.core.api.Assertions.assertThat;
/**
- * Integration tests for an issue raised in https://jira.spring.io/browse/SPR-15927.
+ * Integration tests for an issue raised in SPR-15927.
*
* @author Sam Brannen
* @since 5.0
diff --git a/spring-test/src/test/java/org/springframework/test/context/support/ContextLoaderUtilsContextHierarchyTests.java b/spring-test/src/test/java/org/springframework/test/context/support/ContextLoaderUtilsContextHierarchyTests.java
index 5e136e53c62c..ce715283d30c 100644
--- a/spring-test/src/test/java/org/springframework/test/context/support/ContextLoaderUtilsContextHierarchyTests.java
+++ b/spring-test/src/test/java/org/springframework/test/context/support/ContextLoaderUtilsContextHierarchyTests.java
@@ -328,7 +328,7 @@ void buildContextHierarchyMapForSingleTestClassWithMultiLevelContextHierarchyWit
}
/**
- * Used to reproduce bug reported in https://jira.spring.io/browse/SPR-10997
+ * Used to reproduce bug reported in SPR-10997
*/
@Test
void buildContextHierarchyMapForTestClassHierarchyWithMultiLevelContextHierarchiesAndOverriddenInitializers() {
@@ -505,7 +505,7 @@ private static class SingleTestClassWithMultiLevelContextHierarchyWithDuplicated
}
/**
- * Used to reproduce bug reported in https://jira.spring.io/browse/SPR-10997
+ * Used to reproduce bug reported in SPR-10997
*/
@ContextHierarchy({//
//
@@ -516,7 +516,7 @@ private static class TestClass1WithMultiLevelContextHierarchyWithUniqueContextCo
}
/**
- * Used to reproduce bug reported in https://jira.spring.io/browse/SPR-10997
+ * Used to reproduce bug reported in SPR-10997
*/
@ContextHierarchy({//
//
@@ -528,7 +528,7 @@ private static class TestClass2WithMultiLevelContextHierarchyWithOverriddenIniti
}
/**
- * Used to reproduce bug reported in https://jira.spring.io/browse/SPR-10997
+ * Used to reproduce bug reported in SPR-10997
*/
private static class DummyApplicationContextInitializer implements
ApplicationContextInitializer A complete description of the HTML 4.0 character set can be found
- * at https://www.w3.org/TR/html4/charset.html.
+ * at https://www.w3.org/TR/html4/charset.html.
*
* @author Juergen Hoeller
* @author Martin Kersten
diff --git a/spring-web/src/test/java/org/springframework/http/WebBeanUtilsRuntimeHintsTests.java b/spring-web/src/test/java/org/springframework/http/WebBeanUtilsRuntimeHintsTests.java
index cad568802003..1f260c993dcc 100644
--- a/spring-web/src/test/java/org/springframework/http/WebBeanUtilsRuntimeHintsTests.java
+++ b/spring-web/src/test/java/org/springframework/http/WebBeanUtilsRuntimeHintsTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2023 the original author or authors.
+ * Copyright 2002-2024 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,7 +29,7 @@
import static org.assertj.core.api.Assertions.assertThat;
/**
- * Web-related tests for {@link BeanUtilsRuntimeHints}.
+ * Web-related tests for {@link org.springframework.beans.BeanUtilsRuntimeHints}.
*
* @author Sebastien Deleuze
* @since 6.0.10
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractPdfView.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractPdfView.java
index 8cac515a6e48..019488099c6e 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractPdfView.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractPdfView.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2018 the original author or authors.
+ * Copyright 2002-2024 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.
@@ -138,7 +138,7 @@ protected void prepareWriter(Map