diff options
author | PJ Fanning <fanningpj@apache.org> | 2022-07-16 01:17:15 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2022-07-16 01:17:15 +0000 |
commit | b0400647a97b7399d67d6df5ca78197f07a9af20 (patch) | |
tree | b59afa222b6dfddc4a997be684fc834d786c7d6b /poi-scratchpad | |
parent | ce3371e92e873e872655c10952d10c085558583a (diff) | |
download | poi-b0400647a97b7399d67d6df5ca78197f07a9af20.tar.gz poi-b0400647a97b7399d67d6df5ca78197f07a9af20.zip |
java 17 compile issues
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902761 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-scratchpad')
-rw-r--r-- | poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emfplus/HemfPlusFont.java | 2 | ||||
-rw-r--r-- | poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShow.java | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emfplus/HemfPlusFont.java b/poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emfplus/HemfPlusFont.java index 857a8e93f5..a216d8623b 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emfplus/HemfPlusFont.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hemf/record/emfplus/HemfPlusFont.java @@ -102,7 +102,7 @@ public class HemfPlusFont { // A string of Length Unicode characters that contains the name of the font family. family = StringUtil.readUnicodeLE(leis, len); - size += len*LittleEndianConsts.SHORT_SIZE; + size += (long) len * LittleEndianConsts.SHORT_SIZE; return size; } diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShow.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShow.java index bab2df281d..fa4cf6c795 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShow.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShow.java @@ -54,6 +54,7 @@ import org.apache.poi.hslf.exceptions.HSLFException; import org.apache.poi.hslf.model.HeadersFooters; import org.apache.poi.hslf.model.MovieShape; import org.apache.poi.hslf.record.*; +import org.apache.poi.hslf.record.Record; import org.apache.poi.hslf.record.SlideListWithText.SlideAtomsSet; import org.apache.poi.poifs.crypt.EncryptionInfo; import org.apache.poi.poifs.filesystem.DirectoryNode; |