Closes gh-14884
This commit is contained in:
Johnny Lim
2018-10-18 15:48:49 +09:00
committed by Stephane Nicoll
parent 2a0451c461
commit c8c3f59e93
8 changed files with 14 additions and 17 deletions

View File

@@ -426,12 +426,7 @@ class OnBeanCondition extends FilteringSpringBootCondition
}
private boolean hasAtLeastOne(List<?>... lists) {
for (List<?> list : lists) {
if (!list.isEmpty()) {
return true;
}
}
return false;
return Arrays.stream(lists).anyMatch((list) -> !list.isEmpty());
}
protected String annotationName() {

View File

@@ -36,11 +36,10 @@ import org.springframework.web.context.WebApplicationContext;
/**
* Provides a {@link BookmarkManager} for Neo4j's bookmark support based on Caffeine if
* available. Depending on the applications kind (web or not) the bookmark manager will be
* bound to the application or the request, as recommend by Spring Data Neo4j.
* available. Depending on the application's type (web or not) the bookmark manager will
* be bound to the application or the request, as recommend by Spring Data Neo4j.
*
* @author Michael Simons
* @since 2.1.0
*/
@Configuration
@ConditionalOnClass({ Caffeine.class, CaffeineCacheManager.class })

View File

@@ -330,7 +330,7 @@ public class ServerProperties {
private DataSize maxHttpPostSize = DataSize.ofMegabytes(2);
/**
* Maximum size in bytes of the HTTP message header.
* Maximum size of the HTTP message header.
*/
private DataSize maxHttpHeaderSize = DataSize.ofBytes(0);