adamsaghy commented on code in PR #4487:
URL: https://github.com/apache/fineract/pull/4487#discussion_r2030972159


##########
fineract-core/src/main/java/org/apache/fineract/portfolio/calendar/data/CalendarData.java:
##########
@@ -194,6 +194,51 @@ private CalendarData(LocalDate startDate, boolean 
repeating, EnumOptionData freq
         this.duration = null;
     }
 
+    public CalendarData(String title, String description, LocalDate startDate, 
boolean repeating, EnumOptionData frequency,
+            Integer interval, EnumOptionData repeatsOnDay, String dateFormat, 
String locale, String typeId) {
+        this.title = title;
+        this.description = description;
+        this.startDate = startDate;
+        this.repeating = repeating;
+        this.frequency = frequency;
+        this.interval = interval;
+        this.repeatsOnDay = repeatsOnDay;
+        this.dateFormat = dateFormat;
+        this.locale = locale;
+        this.typeId = typeId;
+
+        this.id = null;

Review Comment:
   Neither of the fields are final, so you dont need to set `null` to them... 
kindly remove all unnecessary field initialisation 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to