Skip to content

Commit 9fa1d1d

Browse files
authored
Class Completion add a parameterless constructor.
Original Pull Request #2086 Closes #2085
1 parent d56ed88 commit 9fa1d1d

File tree

1 file changed

+5
-0
lines changed
  • src/main/java/org/springframework/data/elasticsearch/core/suggest

1 file changed

+5
-0
lines changed

src/main/java/org/springframework/data/elasticsearch/core/suggest/Completion.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,18 @@
2828
* @author Mewes Kochheim
2929
* @author Robert Gruendler
3030
* @author Peter-Josef Meisch
31+
* @author Houtaroy
3132
*/
3233
public class Completion {
3334

3435
private String[] input;
3536
@Nullable private Map<String, List<String>> contexts;
3637
@Nullable private Integer weight;
3738

39+
public Completion() {
40+
this.input = new String[0];
41+
}
42+
3843
@PersistenceConstructor
3944
public Completion(String[] input) {
4045
this.input = input;

0 commit comments

Comments
 (0)