Skip to content

Commit

Permalink
Mini cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ojw28 committed Nov 21, 2017
1 parent 4942375 commit 1439b4a
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ public SsaDecoder() {
}

/**
* @param initializationData Optional initialization data for the decoder. If not null, the
* initialization data must consist of two byte arrays. The first must contain an SSA format
* line. The second must contain an SSA header that will be assumed common to all samples.
* @param initializationData Optional initialization data for the decoder. If not null or empty,
* the initialization data must consist of two byte arrays. The first must contain an SSA
* format line. The second must contain an SSA header that will be assumed common to all
* samples.
*/
public SsaDecoder(List<byte[]> initializationData) {
super("SsaDecoder");
if (initializationData != null && initializationData.size() > 0) {
if (initializationData != null && !initializationData.isEmpty()) {
haveInitializationData = true;
String formatLine = new String(initializationData.get(0));
Assertions.checkArgument(formatLine.startsWith(FORMAT_LINE_PREFIX));
Expand Down

0 comments on commit 1439b4a

Please sign in to comment.