Skip to content

Commit

Permalink
fix constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
elguardian committed Oct 24, 2024
1 parent 8b92ce8 commit ba9b9b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,13 @@ public class UserTasksResource {
@Inject
UserTaskService userTaskService;

@Inject
ObjectMapper objectMapper;

ObjectMapper mapper;

@Inject
public UserTasksResource(ObjectMapper objectMapper) {
@jakarta.annotation.PostConstruct
public void init() {
mapper = objectMapper.copy();
SimpleModule module = new SimpleModule();
mapper.addHandler(new DeserializationProblemHandler() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,13 @@ public class UserTasksResource {
@Autowired
UserTaskService userTaskService;

@Autowired
ObjectMapper objectMapper;

ObjectMapper mapper;

@Autowired
public UserTasksResource(ObjectMapper objectMapper) {
@jakarta.annotation.PostConstruct
public void init() {
mapper = objectMapper.copy();
mapper = objectMapper.copy();
SimpleModule module = new SimpleModule();
Expand Down

0 comments on commit ba9b9b4

Please sign in to comment.