You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2022/07/16 20:12:57 UTC
svn commit: r1902783 - /poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSoundData.java
Author: fanningpj
Date: Sat Jul 16 20:12:56 2022
New Revision: 1902783
URL: http://svn.apache.org/viewvc?rev=1902783&view=rev
Log:
java 17 compile issue
Modified:
poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSoundData.java
Modified: poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSoundData.java
URL: http://svn.apache.org/viewvc/poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSoundData.java?rev=1902783&r1=1902782&r2=1902783&view=diff
==============================================================================
--- poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSoundData.java (original)
+++ poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSoundData.java Sat Jul 16 20:12:56 2022
@@ -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));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org