Skip to content

Commit 2207bf6

Browse files
committed
comment fix#2 final
1 parent ea6f90a commit 2207bf6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

corecal/src/main/java/edu/curtin/sec/assignment2/NotificationManager.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* Software Engineering Concepts COMP3003 - Assignment 2
33
* Name : Ishara Gomes
44
* ID : 20534521
5-
* Class: NotificationManager - this notifies all plugins with a map of events that have current date and time for startdate and or >= starttime
5+
* Class: NotificationManager - this notifies plugin with a map of events that have current date startdate and or current time that has passed starttime
6+
* (time is not compared for all-day events)
67
*/
78
package edu.curtin.sec.assignment2;
89

@@ -35,8 +36,8 @@ public void notifyPlugin() { // notifies the plugin wih the event map
3536
}
3637

3738

38-
private Map<String, List<Object>> getTodayEventTitles() { // creates a map of events that have current date and time for startdate and or >= starttime
39-
39+
private Map<String, List<Object>> getTodayEventTitles() { // creates a map of events that have current date startdate and current time that has passed starttime
40+
// time is not compared for all-day events
4041
Map<String, List<Object>> todayEvents = new HashMap<>();
4142
LocalTime currentTime = LocalTime.now();
4243

@@ -49,7 +50,7 @@ private Map<String, List<Object>> getTodayEventTitles() { // creates a map of ev
4950
todayEvents.put(event.getTitle(), data);
5051
//event.setNotified(true);
5152

52-
} else if (event.getStartTime().isBefore(currentTime)) { // for normal events checks if startime is after current time
53+
} else if (event.getStartTime().isBefore(currentTime)) { // for normal events checks if current time has passed starttime
5354
data.add(event.getStartDate());
5455
data.add(event.getStartTime());
5556
data.add(event.getDuration());

0 commit comments

Comments
 (0)