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:
parent
b1690ca60d
commit
8cc890d799
6 changed files with 7 additions and 7 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue