Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Commit

Permalink
Mark the parameter of LineTokenizer#tokenize as @Nullable
Browse files Browse the repository at this point in the history
According to the Javadoc of LineTokenizer#tokenize, the parameter `line`
can be null. This commit add ``@Nullable` to that parameter.

Resolves BATCH-2776
  • Loading branch information
fmbenhassine committed May 9, 2019
1 parent 00ac7c5 commit 0d6a989
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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 {
Expand All @@ -34,5 +37,5 @@ public interface LineTokenizer {
*
* @return the resulting tokens
*/
FieldSet tokenize(String line);
FieldSet tokenize(@Nullable String line);
}

0 comments on commit 0d6a989

Please sign in to comment.