mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-05-30 16:52:11 +00:00
Polishing.
Fix PersistenceConstructor of Completion to accept the property type String[]. See #1675. (cherry picked from commit bb3c006b9218a16f3d4497f52de7fba1d5f67880)
This commit is contained in:
parent
a2baea7792
commit
d811ff2d78
@ -20,11 +20,11 @@ public class Completion {
|
||||
@Nullable private Map<String, List<String>> contexts;
|
||||
@Nullable private Integer weight;
|
||||
|
||||
@PersistenceConstructor
|
||||
public Completion(String[] input) {
|
||||
this.input = input;
|
||||
}
|
||||
|
||||
@PersistenceConstructor
|
||||
public Completion(List<String> input) {
|
||||
this.input = input.toArray(new String[0]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user