Skip to content

Commit 840d80b

Browse files
committed
Merge branch '5.1.x'
2 parents 1e41714 + fcb3957 commit 840d80b

File tree

7 files changed

+19
-15
lines changed

7 files changed

+19
-15
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ext {
3737
junit5Version = "5.4.0"
3838
kotlinVersion = "1.3.21"
3939
log4jVersion = "2.11.2"
40-
nettyVersion = "4.1.33.Final"
40+
nettyVersion = "4.1.34.Final"
4141
quartzVersion = "2.3.0"
4242
reactorVersion = "Californium-SR5"
4343
rxjavaVersion = "1.3.8"

spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 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.
@@ -313,9 +313,9 @@ else if (StringUtils.hasText(operation.getCacheManager())) {
313313
* @param expectedType type for the bean
314314
* @return the bean matching that name
315315
* @throws org.springframework.beans.factory.NoSuchBeanDefinitionException if such bean does not exist
316-
* @see CacheOperation#keyGenerator
317-
* @see CacheOperation#cacheManager
318-
* @see CacheOperation#cacheResolver
316+
* @see CacheOperation#getKeyGenerator()
317+
* @see CacheOperation#getCacheManager()
318+
* @see CacheOperation#getCacheResolver()
319319
*/
320320
protected <T> T getBean(String beanName, Class<T> expectedType) {
321321
if (this.beanFactory == null) {
@@ -353,8 +353,8 @@ protected Object execute(CacheOperationInvoker invoker, Object target, Method me
353353

354354
/**
355355
* Execute the underlying operation (typically in case of cache miss) and return
356-
* the result of the invocation. If an exception occurs it will be wrapped in
357-
* a {@link CacheOperationInvoker.ThrowableWrapper}: the exception can be handled
356+
* the result of the invocation. If an exception occurs it will be wrapped in a
357+
* {@link CacheOperationInvoker.ThrowableWrapper}: the exception can be handled
358358
* or modified but it <em>must</em> be wrapped in a
359359
* {@link CacheOperationInvoker.ThrowableWrapper} as well.
360360
* @param invoker the invoker handling the operation being cached

spring-context/src/main/java/org/springframework/cache/interceptor/CacheOperationSource.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ default boolean isCandidateClass(Class<?> targetClass) {
5151
}
5252

5353
/**
54-
* Return the collection of cache operations for this method, or {@code null}
55-
* if the method contains no <em>cacheable</em> annotations.
54+
* Return the collection of cache operations for this method,
55+
* or {@code null} if the method contains no <em>cacheable</em> annotations.
5656
* @param method the method to introspect
5757
* @param targetClass the target class (may be {@code null}, in which case
5858
* the declaring class of the method must be used)

spring-context/src/main/java/org/springframework/cache/interceptor/CompositeCacheOperationSource.java

+1
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,5 @@ public Collection<CacheOperation> getCacheOperations(Method method, @Nullable Cl
8181
}
8282
return ops;
8383
}
84+
8485
}

spring-context/src/main/java/org/springframework/scripting/support/StandardScriptFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2019 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.
@@ -36,7 +36,7 @@
3636
/**
3737
* {@link org.springframework.scripting.ScriptFactory} implementation based
3838
* on the JSR-223 script engine abstraction (as included in Java 6+).
39-
* Supports JavaScript, Groovy, JRuby and other JSR-223 compliant engines.
39+
* Supports JavaScript, Groovy, JRuby, and other JSR-223 compliant engines.
4040
*
4141
* <p>Typically used in combination with a
4242
* {@link org.springframework.scripting.support.ScriptFactoryPostProcessor};

spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAttributeSource.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 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.
@@ -27,6 +27,7 @@
2727
* metadata attributes at source level (such as Java 5 annotations), or anywhere else.
2828
*
2929
* @author Rod Johnson
30+
* @author Juergen Hoeller
3031
* @since 15.04.2003
3132
* @see TransactionInterceptor#setTransactionAttributeSource
3233
* @see TransactionProxyFactoryBean#setTransactionAttributeSource

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

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2011 the original author or authors.
2+
* Copyright 2002-2019 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.
@@ -21,6 +21,7 @@
2121

2222
import org.springframework.http.HttpInputMessage;
2323
import org.springframework.http.HttpRequest;
24+
import org.springframework.lang.Nullable;
2425

2526
/**
2627
* Represents a server-side HTTP request.
@@ -33,9 +34,10 @@ public interface ServerHttpRequest extends HttpRequest, HttpInputMessage {
3334

3435
/**
3536
* Return a {@link java.security.Principal} instance containing the name of the
36-
* authenticated user. If the user has not been authenticated, the method returns
37-
* <code>null</code>.
37+
* authenticated user.
38+
* <p>If the user has not been authenticated, the method returns <code>null</code>.
3839
*/
40+
@Nullable
3941
Principal getPrincipal();
4042

4143
/**

0 commit comments

Comments
 (0)