diff --git a/spring-aop/src/main/java/org/aopalliance/intercept/Joinpoint.java b/spring-aop/src/main/java/org/aopalliance/intercept/Joinpoint.java index 35608787639..5ede9b738c2 100644 --- a/spring-aop/src/main/java/org/aopalliance/intercept/Joinpoint.java +++ b/spring-aop/src/main/java/org/aopalliance/intercept/Joinpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2021 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. @@ -23,7 +23,7 @@ import java.lang.reflect.AccessibleObject; * terminology). * *
A runtime joinpoint is an event that occurs on a static
- * joinpoint (i.e. a location in a the program). For instance, an
+ * joinpoint (i.e. a location in a program). For instance, an
* invocation is the runtime joinpoint on a method (static joinpoint).
* The static part of a given joinpoint can be generically retrieved
* using the {@link #getStaticPart()} method.
diff --git a/spring-beans/src/test/java/org/springframework/beans/BeanWrapperGenericsTests.java b/spring-beans/src/test/java/org/springframework/beans/BeanWrapperGenericsTests.java
index dc44173804f..01dfc0674a5 100644
--- a/spring-beans/src/test/java/org/springframework/beans/BeanWrapperGenericsTests.java
+++ b/spring-beans/src/test/java/org/springframework/beans/BeanWrapperGenericsTests.java
@@ -162,10 +162,8 @@ public class BeanWrapperGenericsTests {
value2.add(Boolean.TRUE);
input.put("2", value2);
bw.setPropertyValue("collectionMap", input);
- boolean condition1 = gb.getCollectionMap().get(1) instanceof HashSet;
- assertThat(condition1).isTrue();
- boolean condition = gb.getCollectionMap().get(2) instanceof ArrayList;
- assertThat(condition).isTrue();
+ assertThat(gb.getCollectionMap().get(1) instanceof HashSet).isTrue();
+ assertThat(gb.getCollectionMap().get(2) instanceof ArrayList).isTrue();
}
@Test
@@ -177,8 +175,7 @@ public class BeanWrapperGenericsTests {
HashSet The default implementation returns an {@code Optional} wrapping the given request if
* {@link #test(ServerRequest)} evaluates to {@code true}; or {@link Optional#empty()}
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/RequestPredicate.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/RequestPredicate.java
index 4e9ec82d5b7..3c1ac3474c1 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/RequestPredicate.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/RequestPredicate.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2019 the original author or authors.
+ * Copyright 2002-2021 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.
@@ -71,7 +71,7 @@ public interface RequestPredicate {
/**
* Transform the given request into a request used for a nested route. For instance,
- * a path-based predicate can return a {@code ServerRequest} with a the path remaining
+ * a path-based predicate can return a {@code ServerRequest} with a path remaining
* after a match.
* The default implementation returns an {@code Optional} wrapping the given request if
* {@link #test(ServerRequest)} evaluates to {@code true}; or {@link Optional#empty()}
diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/adapter/standard/ConvertingEncoderDecoderSupport.java b/spring-websocket/src/main/java/org/springframework/web/socket/adapter/standard/ConvertingEncoderDecoderSupport.java
index 9570c929bc1..05e1a4b75c0 100644
--- a/spring-websocket/src/main/java/org/springframework/web/socket/adapter/standard/ConvertingEncoderDecoderSupport.java
+++ b/spring-websocket/src/main/java/org/springframework/web/socket/adapter/standard/ConvertingEncoderDecoderSupport.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2020 the original author or authors.
+ * Copyright 2002-2021 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.
@@ -183,7 +183,7 @@ public abstract class ConvertingEncoderDecoderSupport