ben-manes / caffeine

Methods should not have different nullability than their super methods JAVA-E1100
Bug risk
Major
8 days agoa year old
computeNext overrides a parent method but has no nullability constraints
119    try {
120      var archive = new ArchiveStreamFactory().createArchiveInputStream(input);
121      var entries = new AbstractIterator<InputStream>() {
122        @Override protected InputStream computeNext() {123          try {124            return (archive.getNextEntry() == null)125                ? endOfData()126                : readInput(CloseShieldInputStream.wrap(archive));127          } catch (IOException e) {128            throw new UncheckedIOException(e);129          }130        }131      };
132      return new MultiInputStream(archive, entries);
133    } catch (ArchiveException e) {