On Fri, 23 Jan 2026 02:27:07 GMT, Vicente Romero <[email protected]> wrote:
>> some of the null checks javac generates are redundant and can be removed
>
> Vicente Romero has updated the pull request incrementally with one additional
> commit since the last revision:
>
> adding more tests
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/NullChecksWriter.java
line 213:
> 211:
> 212: private boolean isInThisSameCompUnit(Symbol sym) {
> 213: return env.toplevel.getTypeDecls().stream()
Isn't this the same as `env.enclClass.sym.outermostClass() ==
sym.outermostClass()` ?
-------------
PR Review Comment:
https://git.openjdk.org/valhalla/pull/1947#discussion_r2720554393