Mark the parameter of LineTokenizer#tokenize as @Nullable

According to the Javadoc of LineTokenizer#tokenize, the parameter `line`
can be null. This commit adds `@Nullable` to that parameter.

Resolves BATCH-2776
This commit is contained in:
Mahmoud Ben Hassine
2019-05-09 08:46:50 +02:00
parent 00ac7c5833
commit e6a84e1ac2

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2006-2007 the original author or authors.
* Copyright 2006-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,12 +16,14 @@
package org.springframework.batch.item.file.transform;
import org.springframework.lang.Nullable;
/**
* Interface that is used by framework to split string obtained typically from a
* file into tokens.
*
* @author tomas.slanina
* @author Mahmoud Ben Hassine
*
*/
public interface LineTokenizer {
@@ -34,5 +36,5 @@ public interface LineTokenizer {
*
* @return the resulting tokens
*/
FieldSet tokenize(String line);
FieldSet tokenize(@Nullable String line);
}