File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/main/java/org/springframework/data/elasticsearch/core/convert Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,6 @@ public static ElasticsearchDateConverter of(DateFormat dateFormat) {
66
66
*/
67
67
public static ElasticsearchDateConverter of (String pattern ) {
68
68
69
- Assert .notNull (pattern , "pattern must not be null" );
70
69
Assert .hasText (pattern , "pattern must not be empty" );
71
70
72
71
String [] subPatterns = pattern .split ("\\ |\\ |" );
@@ -86,7 +85,7 @@ private ElasticsearchDateConverter(DateFormatter dateFormatter) {
86
85
*/
87
86
public String format (TemporalAccessor accessor ) {
88
87
89
- Assert .notNull (" accessor" , "accessor must not be null" );
88
+ Assert .notNull (accessor , "accessor must not be null" );
90
89
91
90
if (accessor instanceof Instant ) {
92
91
Instant instant = (Instant ) accessor ;
You can’t perform that action at this time.
0 commit comments