Skip to content

Commit 0b9f9d6

Browse files
committed
Polishing.
Fix PersistenceConstructor of Completion to accept the property type String[]. See #1675.
1 parent 1e006fd commit 0b9f9d6

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/org/springframework/data/elasticsearch/core/completion

1 file changed

+1
-1
lines changed

Diff for: src/main/java/org/springframework/data/elasticsearch/core/completion/Completion.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ public class Completion {
2020
@Nullable private Map<String, List<String>> contexts;
2121
@Nullable private Integer weight;
2222

23+
@PersistenceConstructor
2324
public Completion(String[] input) {
2425
this.input = input;
2526
}
2627

27-
@PersistenceConstructor
2828
public Completion(List<String> input) {
2929
this.input = input.toArray(new String[0]);
3030
}

0 commit comments

Comments
 (0)