From e8c0b2284243b9c4f08c19d353be7e288b714372 Mon Sep 17 00:00:00 2001 From: Vikhyat Bhatnagar <52795644+vikhyat187@users.noreply.github.com> Date: Tue, 12 Dec 2023 08:41:56 +0530 Subject: [PATCH] Removing the constructor and using the AllArgs annotation --- .../java/com/RDS/skilltree/Skill/SkillsServiceImpl.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/skill-tree /src/main/java/com/RDS/skilltree/Skill/SkillsServiceImpl.java b/skill-tree /src/main/java/com/RDS/skilltree/Skill/SkillsServiceImpl.java index 2e51656a..b9f07426 100644 --- a/skill-tree /src/main/java/com/RDS/skilltree/Skill/SkillsServiceImpl.java +++ b/skill-tree /src/main/java/com/RDS/skilltree/Skill/SkillsServiceImpl.java @@ -14,14 +14,10 @@ @Service @Slf4j +@AllArgsConstructor public class SkillsServiceImpl implements SkillsService{ private final SkillRepository skillRepository; private final UserRepository userRepository; - public SkillsServiceImpl(SkillRepository skillRepository, - UserRepository userRepository){ - this.userRepository = userRepository; - this.skillRepository = skillRepository; - } @Override public SkillDTO getSkillById(UUID id){