Skip to content

Commit 46b1404

Browse files
committed
java 17 compile issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902783 13f79535-47bb-0310-9956-ffa450edef68
1 parent d849809 commit 46b1404

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSoundData.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,11 @@ public byte[] getData() {
7474
*/
7575
public static HSLFSoundData[] find(Document document){
7676
ArrayList<HSLFSoundData> lst = new ArrayList<>();
77-
org.apache.poi.hslf.record.Record[] ch = document.getChildRecords();
78-
for (Record value : ch) {
77+
for (org.apache.poi.hslf.record.Record value : document.getChildRecords()) {
7978
if (value.getRecordType() == RecordTypes.SoundCollection.typeID) {
8079
RecordContainer col = (RecordContainer) value;
81-
Record[] sr = col.getChildRecords();
82-
for (Record record : sr) {
80+
org.apache.poi.hslf.record.Record[] sr = col.getChildRecords();
81+
for (org.apache.poi.hslf.record.Record record : sr) {
8382
if (record instanceof Sound) {
8483
lst.add(new HSLFSoundData((Sound) record));
8584
}

0 commit comments

Comments
 (0)