aboutsummaryrefslogtreecommitdiffstats
path: root/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2019-04-25 12:27:04 +0000
committerDominik Stadler <centic@apache.org>2019-04-25 12:27:04 +0000
commitabc7359c8fdbcdde69777624889569f1114a0f82 (patch)
treeca2eccc48ff2c49d93399657c159931270514e5f /src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java
parentbd8fab11963796ea08184786c56a7c203eec0d23 (diff)
downloadpoi-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.java4
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