Polishing.

Fix PersistenceConstructor of Completion to accept the property type String[].

See #1675.

(cherry picked from commit bb3c006b9218a16f3d4497f52de7fba1d5f67880)
This commit is contained in:
Mark Paluch 2021-02-01 11:51:42 +01:00 committed by Peter-Josef Meisch
parent a2baea7792
commit d811ff2d78
No known key found for this signature in database
GPG Key ID: DE108246970C7708

View File

@ -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]);
}