Skip to content

Commit

Permalink
Limit pdfbox packages to initialize at runtime quarkusio#20839
Browse files Browse the repository at this point in the history
* This avoids forcing charsets to be initialized at runtime.
  • Loading branch information
galderz committed Nov 2, 2021
1 parent 093c9e1 commit dc85385
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public class TikaFeature implements Feature {
public void afterRegistration(AfterRegistrationAccess access) {
final RuntimeClassInitializationSupport runtimeInit = ImageSingletons.lookup(RuntimeClassInitializationSupport.class);
final String reason = "Quarkus run time init for Apache Tika";
runtimeInit.initializeAtRunTime("org.apache.pdfbox", reason);
runtimeInit.initializeAtRunTime("org.apache.pdfbox.pdmodel", reason);
runtimeInit.initializeAtRunTime("org.apache.pdfbox.rendering", reason);
runtimeInit.initializeAtRunTime("org.apache.poi.hssf.util", reason);
runtimeInit.initializeAtRunTime("org.apache.poi.ss.format", reason);
}
Expand Down

0 comments on commit dc85385

Please sign in to comment.