Skip to content

Commit 82574a4

Browse files
authored
Update User.java
Remove constants and add empty constructor. Jackson fails otherwise
1 parent 267169e commit 82574a4

File tree

1 file changed

+5
-2
lines changed
  • libraries-http/src/main/java/com/baeldung/javalin/User

1 file changed

+5
-2
lines changed

libraries-http/src/main/java/com/baeldung/javalin/User/User.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
package com.baeldung.javalin.User;
2+
import com.fasterxml.jackson.annotation.JsonProperty;
23

34
public class User {
4-
public final int id;
5-
public final String name;
5+
public int id;
6+
public String name;
7+
8+
public User(){}
69

710
public User(int id, String name) {
811
this.id = id;

0 commit comments

Comments
 (0)