diff options
author | Dominik Stadler <centic@apache.org> | 2019-04-25 12:27:04 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2019-04-25 12:27:04 +0000 |
commit | abc7359c8fdbcdde69777624889569f1114a0f82 (patch) | |
tree | ca2eccc48ff2c49d93399657c159931270514e5f /src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java | |
parent | bd8fab11963796ea08184786c56a7c203eec0d23 (diff) | |
download | poi-abc7359c8fdbcdde69777624889569f1114a0f82.tar.gz poi-abc7359c8fdbcdde69777624889569f1114a0f82.zip |
Make compilation work in Eclipse 2019.03 again by working around a
limitation of the Eclipse Java Compiler regarding casting/generics
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1858117 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java')
-rw-r--r-- | src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java index 73756e5332..4d06249f6a 100644 --- a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java +++ b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java @@ -934,7 +934,9 @@ public final class TestBugs { private static HSLFSlideShow open(String fileName) throws IOException { File sample = HSLFTestDataSamples.getSampleFile(fileName); - return (HSLFSlideShow)SlideShowFactory.create(sample); + // Note: don't change the code here, it is required for Eclipse to compile the code + SlideShow slideShowOrig = SlideShowFactory.create(sample, null, false); + return (HSLFSlideShow)slideShowOrig; } @Test |