docs(website): unify example code blocks to JEP-512 style - #1012
docs(website): unify example code blocks to JEP-512 style#1012bengbengbalabalabeng wants to merge 2 commits into
Conversation
| @Test | ||
| public void orderByIncludeColumnWrite() { | ||
| String fileName = "includeColumnFieldWrite" + System.currentTimeMillis() + ".xlsx"; | ||
| void main() { |
There was a problem hiding this comment.
will the replacement making confuse with psvm ?
There was a problem hiding this comment.
Thank you for the reminder! The purpose of switching to the JEP‑512 style this time is mainly to keep the example code in the documentation structurally consistent, and it is not intended to imply any connection between these examples and PSVM.
In the updated example, void main() is used only to improve readability; it does not represent the actual entry-point method, nor does it alter the semantics of the example. Therefore, it will not be confused with PSVM.
|
Generally good, only on concern is the sample only support on JDK 25+, but current major user are from java 8 - 21...any confuse while following guide to code? |
Let’s keep up with the times. LOL. |
|
Or provide a supplementary note: indicate that the |
Purpose of the pull request
Unify the code style of all example code blocks in the documentation to follow a consistent
JEP-512(Compact Source Files and Instance Main Methods) pattern, replacing the previously varied@Testmethod styles.What's changed?
Checklist