Polish
Closes gh-14884
This commit is contained in:
committed by
Stephane Nicoll
parent
2a0451c461
commit
c8c3f59e93
@@ -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() {
|
||||
|
||||
@@ -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 })
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user