mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-21 03:22:11 +00:00
Class Completion add a parameterless constructor.
Original Pull Request #2086 Closes #2085
This commit is contained in:
parent
d56ed88917
commit
9fa1d1ddbc
@ -28,6 +28,7 @@ import org.springframework.lang.Nullable;
|
||||
* @author Mewes Kochheim
|
||||
* @author Robert Gruendler
|
||||
* @author Peter-Josef Meisch
|
||||
* @author Houtaroy
|
||||
*/
|
||||
public class Completion {
|
||||
|
||||
@ -35,6 +36,10 @@ public class Completion {
|
||||
@Nullable private Map<String, List<String>> contexts;
|
||||
@Nullable private Integer weight;
|
||||
|
||||
public Completion() {
|
||||
this.input = new String[0];
|
||||
}
|
||||
|
||||
@PersistenceConstructor
|
||||
public Completion(String[] input) {
|
||||
this.input = input;
|
||||
|
Loading…
x
Reference in New Issue
Block a user