From a76b2b865cb012d0f04ec96d87a58c7404a3d2ad Mon Sep 17 00:00:00 2001 From: Kamlesh Kumar Date: Mon, 8 Jul 2024 13:51:25 +0500 Subject: [PATCH] Made Jobs List private in Repository, so that the implementation of encapsulation prevails. --- .../src/main/java/com/telusko/JobApp/repo/JobRepo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/8 JobApp-Project/src/main/java/com/telusko/JobApp/repo/JobRepo.java b/8 JobApp-Project/src/main/java/com/telusko/JobApp/repo/JobRepo.java index 46453a8..bb35028 100644 --- a/8 JobApp-Project/src/main/java/com/telusko/JobApp/repo/JobRepo.java +++ b/8 JobApp-Project/src/main/java/com/telusko/JobApp/repo/JobRepo.java @@ -12,7 +12,7 @@ public class JobRepo { // arrayList to store store JobPost objects - List jobs = new ArrayList<>(); + private List jobs = new ArrayList<>(); // ****************************************************************************