Skip to content

Commit

Permalink
Fix Java 7 compat: add final in allocateIOFixed()
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Oct 13, 2023
1 parent 31f1359 commit 7d830fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ class JavaCompiler(typeProvider: ClassTypeProvider, config: RuntimeConfig)
override def allocateIOFixed(varName: Identifier, size: String): String = {
val ioName = idToStr(IoStorageIdentifier(varName))

out.puts(s"$kstreamName $ioName = new ByteBufferKaitaiStream($size);")
out.puts(s"final $kstreamName $ioName = new ByteBufferKaitaiStream($size);")
ioName
}

Expand Down

0 comments on commit 7d830fa

Please sign in to comment.