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 (cherry picked from commit 0d6a989ceeb22e253366b5093e4543fa062f5d35)
This commit is contained in:
@@ -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.
|
||||
@@ -17,11 +17,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 +37,5 @@ public interface LineTokenizer {
|
||||
*
|
||||
* @return the resulting tokens
|
||||
*/
|
||||
FieldSet tokenize(String line);
|
||||
FieldSet tokenize(@Nullable String line);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user