[foreign-memaccess+abi] RFR: Fix Sonar warnings in jdk.internal.foreign
Maurizio Cimadamore
mcimadamore at openjdk.org
Tue Oct 10 10:12:03 UTC 2023
On Tue, 10 Oct 2023 08:20:23 GMT, Per Minborg <pminborg at openjdk.org> wrote:
> This PR proposes to do some minor fixes and cleanups for warnings that were flagged by Sonar.
src/java.base/share/classes/jdk/internal/foreign/ImplicitSession.java line 36:
> 34: * session, it is better to capture the fact that an implicit session is not just a non-closeable
> 35: * view of some session which might be closeable. This is useful e.g. in the implementations of
> 36: * {@link sun.nio.ch.DirectBuffer#address()}, where obtaining an address of a buffer instance associated
Not sure about this - it is not a case of redundant import - so we should just leave it as is?
-------------
PR Review Comment: https://git.openjdk.org/panama-foreign/pull/905#discussion_r1352084051
More information about the panama-dev
mailing list