On Fri, 4 Oct 2024 12:05:02 GMT, Shaojin Wen <s...@openjdk.org> wrote:
> java.base should provide best practices for Class File API > > 1. Use fluent coding style > 2. Use aconst_null instead of oadConstant(null) > 3. use astore intead of 'storeLocal(REFERENCE' > 4. use aload instead of 'loadLocal(REFERENCE' > 5. 'lload/lstore' instead of 'loadLocal(LONG)/storeLocal(LONG)' This pull request has now been integrated. Changeset: 62acc9c1 Author: Shaojin Wen <s...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/62acc9c174f23acd2807c8214ffc28d73799da16 Stats: 348 lines in 5 files changed: 6 ins; 25 del; 317 mod 8341548: More concise use of classfile API Reviewed-by: liach ------------- PR: https://git.openjdk.org/jdk/pull/21355