From bf87edeb0fd99435503fe21ecff70b2470901756 Mon Sep 17 00:00:00 2001 From: Sapna Suman <87744431+SapnaS01@users.noreply.github.com> Date: Wed, 30 Jul 2025 22:26:56 +0530 Subject: [PATCH] Update Person.java --- src/com/self/immutablity/Person.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/self/immutablity/Person.java b/src/com/self/immutablity/Person.java index 782b59d..4ca5bb7 100644 --- a/src/com/self/immutablity/Person.java +++ b/src/com/self/immutablity/Person.java @@ -11,7 +11,7 @@ public final class Person { public Person( String name,int age, List hobbies) { this.name=name; this.age=age; - // Defensive copy to avoid external modification + // Defensive copy to avoid external modification this.hobbies= new ArrayList(hobbies); }