diff --git a/spring-core/src/main/java/org/springframework/util/RouteMatcher.java b/spring-core/src/main/java/org/springframework/util/RouteMatcher.java index 22d384895a618934e50ce4550da211a07196887a..bf03b7b14614f0d96a08f5e697a8393d06e5e10f 100644 --- a/spring-core/src/main/java/org/springframework/util/RouteMatcher.java +++ b/spring-core/src/main/java/org/springframework/util/RouteMatcher.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.util; import java.util.Comparator; @@ -23,13 +24,14 @@ import org.springframework.lang.Nullable; /** * Contract for matching routes to patterns. * - *
Equivalent to {@link PathMatcher}, but enables use of parsed - * representations of routes and patterns for efficiency reasons in scenarios - * where routes from incoming messages are continuously matched against a - * large number of message handler patterns. + *
Equivalent to {@link PathMatcher}, but enables use of parsed representations
+ * of routes and patterns for efficiency reasons in scenarios where routes from
+ * incoming messages are continuously matched against a large number of message
+ * handler patterns.
*
* @author Rossen Stoyanchev
* @since 5.2
+ * @see PathMatcher
*/
public interface RouteMatcher {
diff --git a/spring-core/src/test/java/org/springframework/core/ResolvableTypeTests.java b/spring-core/src/test/java/org/springframework/core/ResolvableTypeTests.java
index 2aa22920ac5f1579080ab4ebf7dc684fcf032357..b3168b883c50145c421440da747a0b3e112806b0 100644
--- a/spring-core/src/test/java/org/springframework/core/ResolvableTypeTests.java
+++ b/spring-core/src/test/java/org/springframework/core/ResolvableTypeTests.java
@@ -147,28 +147,28 @@ public class ResolvableTypeTests {
}
@Test
- public void forInstanceMustNotBeNull() {
+ public void forInstanceMustNotBeNull() throws Exception {
assertThatIllegalArgumentException().isThrownBy(() ->
ResolvableType.forInstance(null))
.withMessageContaining("Instance must not be null");
}
@Test
- public void forInstanceNoProvider() {
+ public void forInstanceNoProvider() throws Exception {
ResolvableType type = ResolvableType.forInstance(new Object());
assertThat(type.getType()).isEqualTo(Object.class);
assertThat(type.resolve()).isEqualTo(Object.class);
}
@Test
- public void forInstanceProvider() {
+ public void forInstanceProvider() throws Exception {
ResolvableType type = ResolvableType.forInstance(new MyGenericInterfaceType<>(String.class));
assertThat(type.getRawClass()).isEqualTo(MyGenericInterfaceType.class);
assertThat(type.getGeneric().resolve()).isEqualTo(String.class);
}
@Test
- public void forInstanceProviderNull() {
+ public void forInstanceProviderNull() throws Exception {
ResolvableType type = ResolvableType.forInstance(new MyGenericInterfaceType