mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-28 14:52:20 +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 Mewes Kochheim
|
||||||
* @author Robert Gruendler
|
* @author Robert Gruendler
|
||||||
* @author Peter-Josef Meisch
|
* @author Peter-Josef Meisch
|
||||||
|
* @author Houtaroy
|
||||||
*/
|
*/
|
||||||
public class Completion {
|
public class Completion {
|
||||||
|
|
||||||
@ -35,6 +36,10 @@ public class Completion {
|
|||||||
@Nullable private Map<String, List<String>> contexts;
|
@Nullable private Map<String, List<String>> contexts;
|
||||||
@Nullable private Integer weight;
|
@Nullable private Integer weight;
|
||||||
|
|
||||||
|
public Completion() {
|
||||||
|
this.input = new String[0];
|
||||||
|
}
|
||||||
|
|
||||||
@PersistenceConstructor
|
@PersistenceConstructor
|
||||||
public Completion(String[] input) {
|
public Completion(String[] input) {
|
||||||
this.input = input;
|
this.input = input;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user