Skip to content

Commit

Permalink
Augment RuntimeClassInitialization#initializeAtBuildTime javadoc
Browse files Browse the repository at this point in the history
Document that using `""` as the package name results in all packages and
classes being registered for build time initialization.
  • Loading branch information
zakkak committed Jan 23, 2024
1 parent 8cde43a commit 0cf88c0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ public static void initializeAtRunTime(String... packages) {
/**
* Registers all classes in provided packages as eagerly initialized during image-build time.
* <p>
* Passing {@code ""} as package, registers all packages and classes for initialization at build time.
* <p>
* All static initializers of {@code classes} will be executed during image-build time and
* static fields that are assigned values will be available at runtime. {@code static final}
* fields will be considered as constant.
Expand Down

0 comments on commit 0cf88c0

Please sign in to comment.