On Mon, 29 Nov 2021 19:05:59 GMT, Vicente Romero <vrom...@openjdk.org> wrote:

> Hi,
> 
> Please review this PR which is basically rewriting some redundant boolean 
> expressions in the compiler.
> 
> TIA

Changes requested by jarviscr...@github.com (no known OpenJDK username).

src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Resolve.java line 1338:

> 1336:                 public void visitLambda(JCLambda tree) {
> 1337:                     if (sRet.hasTag(VOID)) {
> 1338:                         result = true;

Same as above, the change is changing the semantics:
original code keeps the value of `result` while the new one sets it to `true`.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6599

Reply via email to