java 17 compile issue

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902783 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-07-16 20:12:56 +00:00
parent d849809f22
commit 46b14041bf
1 changed files with 3 additions and 4 deletions

View File

@ -74,12 +74,11 @@ public final class HSLFSoundData {
*/
public static HSLFSoundData[] find(Document document){
ArrayList<HSLFSoundData> lst = new ArrayList<>();
org.apache.poi.hslf.record.Record[] ch = document.getChildRecords();
for (Record value : ch) {
for (org.apache.poi.hslf.record.Record value : document.getChildRecords()) {
if (value.getRecordType() == RecordTypes.SoundCollection.typeID) {
RecordContainer col = (RecordContainer) value;
Record[] sr = col.getChildRecords();
for (Record record : sr) {
org.apache.poi.hslf.record.Record[] sr = col.getChildRecords();
for (org.apache.poi.hslf.record.Record record : sr) {
if (record instanceof Sound) {
lst.add(new HSLFSoundData((Sound) record));
}