Reinstate -Werror for Groovy compilation

This commit partially reverts cf2429b0f0
in order to reinstate -Werror for Groovy compilation in spring-beans.

The `decorating` field in GroovyDynamicElementReader has been changed
from boolean to Boolean in order to avoid the JDK 17 deprecation warning
for use of `new Boolean(false)` which the Groovy compiler apparently
uses behind the scenes when compiling Groovy source code.
This commit is contained in:
Sam Brannen
2021-09-21 11:30:30 +02:00
parent 69a46a7296
commit 070d087dbc
2 changed files with 2 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ class GroovyDynamicElementReader extends GroovyObjectSupport {
private final GroovyBeanDefinitionWrapper beanDefinition
protected final boolean decorating;
protected final Boolean decorating;
private boolean callAfterInvocation = true