Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
.iterator.isEmpty
and .iterator.msString
instead .isEmpty
a…
…nd `.mkString` as suggested Fixes the warnings (4, each repeated twice): ``` [warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/Utils.scala:113:14: method isEmpty in class IterableOnceExtensionMethods is deprecated (since 2.13.0): Use .iterator.isEmpty instead [warn] if (coll.isEmpty) "" else coll.mkString(start, sep, end) [warn] ^ [warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/Utils.scala:113:36: method mkString in class IterableOnceExtensionMethods is deprecated (since 2.13.0): Use .iterator.mkString instead [warn] if (coll.isEmpty) "" else coll.mkString(start, sep, end) [warn] ^ ```
- Loading branch information