kotlin-bip39 icon indicating copy to clipboard operation
kotlin-bip39 copied to clipboard

MnemonicCode Doesn't Implement Iterator Interface Correctly

Open ccjernigan opened this issue 3 years ago • 0 comments

Running detekt points out:

kotlin-bip39/lib/src/jvmMain/kotlin/cash/z/ecc/android/bip39/Mnemonics.kt:85:53: This implementation of Iterator does not correctly implement the next() method as it doesn't throw a NoSuchElementException when no elements remain in the Iterator. [IteratorNotThrowingNoSuchElementException]

Note that the detekt baseline will suppress this warning. When implementing this change, be sure to update the detekt baseline file to remove this suppression.

ccjernigan avatar May 01 '22 13:05 ccjernigan