From aa11adebf1c27e54bed0b3d2683c6e6f3c9f6883 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Fri, 10 Jan 2020 23:32:03 +0000 Subject: [PATCH] try to fix some jdk 14 build issues due to java.lang.Record causing existing POI Record classes to be ambiguous git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872611 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/stress/HSLFFileHandler.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/integrationtest/org/apache/poi/stress/HSLFFileHandler.java b/src/integrationtest/org/apache/poi/stress/HSLFFileHandler.java index 3adbcd0a08..46897263ed 100644 --- a/src/integrationtest/org/apache/poi/stress/HSLFFileHandler.java +++ b/src/integrationtest/org/apache/poi/stress/HSLFFileHandler.java @@ -21,7 +21,6 @@ import static org.junit.Assert.assertTrue; import java.io.*; -import org.apache.poi.hslf.record.Record; import org.apache.poi.hslf.usermodel.HSLFSlideShow; import org.apache.poi.hslf.usermodel.HSLFSlideShowImpl; import org.apache.poi.util.POILogger; @@ -36,9 +35,9 @@ public class HSLFFileHandler extends SlideShowHandler { assertNotNull(slide.getEmbeddedObjects()); assertNotNull(slide.getUnderlyingBytes()); assertNotNull(slide.getPictureData()); - org.apache.poi.hssf.record.Record[] records = slide.getRecords(); + org.apache.poi.hslf.record.Record[] records = slide.getRecords(); assertNotNull(records); - for(org.apache.poi.hssf.record.Record record : records) { + for(org.apache.poi.hslf.record.Record record : records) { assertNotNull("Found a record which was null", record); assertTrue(record.getRecordType() >= 0); } -- 2.39.5