VerisimilitudeX / VigenereDecrypter

Leveraging statistical methods, decrypt Vigenère cipher in a language-agnostic manner, unraveling polyalphabetic complexities.
MIT License
5 stars 1 forks source link

(JAVA-W0146) Iterator `next` method should throw `NoSuchElementException` #3

Open VerisimilitudeX opened 2 years ago

VerisimilitudeX commented 2 years ago

Description

This class implements the java.util.Iterator interface. However, its next() method is not capable of throwing java.util.NoSuchElementException. This is a violation of the Iterator interface's contract, and will not work with code that expects next() to throw when the iterator is exhausted.

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/Verisimilitude11/Vigenere-Cipher/issue/JAVA-W0146/occurrences/

desacu commented 3 weeks ago

Hi!! Do you need help with this? Thank you ☺️