Class Completion add a parameterless constructor.

Original Pull Request #2086
Closes #2085
This commit is contained in:
Houtaroy 2022-02-17 14:48:40 +08:00 committed by GitHub
parent d56ed88917
commit 9fa1d1ddbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;