[ https://issues.apache.org/jira/browse/GROOVY-11680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17954144#comment-17954144 ]
Eric Milles commented on GROOVY-11680: -------------------------------------- Re: Boolean.FALSE, you want a value that the java compiler will not see as in-line compatible. That is why new was used across the board. Remember these are stubs, so efficiency is not at all a concern. > Java stubs use deprecated constant constructors in some cases > ------------------------------------------------------------- > > Key: GROOVY-11680 > URL: https://issues.apache.org/jira/browse/GROOVY-11680 > Project: Groovy > Issue Type: Improvement > Reporter: Paul King > Assignee: Paul King > Priority: Major > > In stub code for static constants in classes, generated code uses the > deprecated (from JDK9) constructors like {{new Boolean(false)}} instead of > {{Boolean.valueOf(false)}}. -- This message was sent by Atlassian Jira (v8.20.10#820010)