[foreign-abi] RFR: Miscellaneous cleanups
Henry Jen
henryjen at openjdk.java.net
Thu Mar 19 18:36:18 UTC 2020
On Thu, 19 Mar 2020 18:08:58 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> Hi,
>
> This patch applies some general cleanups suggested by IntelliJ, such as:
> - Removing unused imports
> - Fixing typos
> - Applying `final` when possible
> - Using Optional::orElseThrow instead of Optional::get where it's uncertain if the optional contains a value
> - Using StringBuilder::append instead of `+` in some places (to avoid indy concat).
> - Changing indexed to for-each loop
> - Fixing a link in javadoc
> - Removing a spurious semicolon
> - Removing an unused method
>
> Jorn
Looks good to me.
-------------
Marked as reviewed by henryjen (Committer).
PR: https://git.openjdk.java.net/panama-foreign/pull/59
More information about the panama-dev
mailing list