aboutsummaryrefslogtreecommitdiffstats
path: root/src/scratchpad
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2019-12-28 22:39:26 +0000
committerAndreas Beeker <kiwiwings@apache.org>2019-12-28 22:39:26 +0000
commita0770034fcc878a697b715d0b6a6e53406b2d02d (patch)
treec6a6b991bde2f55318f6cab75e5c8041ea3a902b /src/scratchpad
parentc66575c1e7059ed403b74b76e699200fdee507b4 (diff)
downloadpoi-a0770034fcc878a697b715d0b6a6e53406b2d02d.tar.gz
poi-a0770034fcc878a697b715d0b6a6e53406b2d02d.zip
#64036 - remove reflective calls in Workbook- and SlideShowFactory
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872066 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad')
-rw-r--r--src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlideShowFactory.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlideShowFactory.java b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlideShowFactory.java
index c25b13f2bd..42db16482e 100644
--- a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlideShowFactory.java
+++ b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlideShowFactory.java
@@ -31,6 +31,12 @@ import org.apache.poi.util.Internal;
@SuppressWarnings("unused")
@Internal
public class HSLFSlideShowFactory extends SlideShowFactory {
+
+ static {
+ SlideShowFactory.createHslfByNode = HSLFSlideShowFactory::createSlideShow;
+ SlideShowFactory.createHslfByPoifs = HSLFSlideShowFactory::createSlideShow;
+ }
+
/**
* Creates a HSLFSlideShow from the given {@link POIFSFileSystem}<p>
* Note that in order to properly release resources the