Use @SuppressWarnings for checkstyle suppressions & warnings

It's better to use @SuppressWarnings instead of the suppressions file, so that the warning suppression is at the place where it acts.
This commit is contained in:
Stypox 2022-03-18 23:57:11 +01:00
parent b1690ca60d
commit 8cc890d799
6 changed files with 7 additions and 7 deletions

View file

@ -142,6 +142,7 @@ public class Mp4FromDashWriter {
outStream = null;
}
@SuppressWarnings("MethodLength")
public void build(final SharpStream output) throws IOException {
if (done) {
throw new RuntimeException("already done");

View file

@ -121,6 +121,7 @@ public class WebMWriter implements Closeable {
clustersOffsetsSizes = null;
}
@SuppressWarnings("MethodLength")
public void build(final SharpStream out) throws IOException, RuntimeException {
if (!out.canRewind()) {
throw new IOException("The output stream must be allow seek");