Apply @Nullable annotation to NetworkProvider methods and DTOs.

This commit is contained in:
Andreas Schildbach 2015-02-04 16:22:50 +01:00
parent 883015177e
commit 5b3ceed733
45 changed files with 339 additions and 205 deletions

View file

@ -17,6 +17,8 @@
package de.schildbach.pte;
import javax.annotation.Nullable;
import de.schildbach.pte.dto.Line;
import de.schildbach.pte.dto.Product;
@ -41,8 +43,8 @@ public class VrnProvider extends AbstractEfaProvider
}
@Override
protected Line parseLine(final String id, final String mot, final String symbol, final String name, final String longName,
final String trainType, final String trainNum, final String trainName)
protected Line parseLine(final @Nullable String id, final @Nullable String mot, final @Nullable String symbol, final @Nullable String name,
final @Nullable String longName, final @Nullable String trainType, final @Nullable String trainNum, final @Nullable String trainName)
{
if ("0".equals(mot))
{