Skip to content

Releases: point85/Shift

Work Schedule Library

14 Feb 16:41

Choose a tag to compare

- By Claude Sonnet 4.5

Bugs Fixed:
Named.java - Fixed equals/hashCode contract violation

Changed equals() to use Objects.equals() for proper null handling
Changed hashCode() to use Objects.hash() for consistency
Fixed toString() to handle null description gracefully
RotationSegment.java - Added null safety checks

Added defensive null checks before calling getName() on rotation and shift to prevent NullPointerException
ShiftInstance.java - Added null safety checks

Added defensive null checks in equals() method to prevent NullPointerException

Performance Improvements:
Team.java - Optimized cache synchronization

Replaced ConcurrentHashMap with HashMap since the method is already synchronized
Improved cache initialization logic to avoid unnecessary clear operations
Optimized string concatenation in toString() methods (replaced += with StringBuilder)

Work schedule library

31 May 01:00

Choose a tag to compare

  • Fix WorkSchedule.deleteShift() bug
  • Team.calculateWorkingTime() calls minusDays(1), remove member exception method, build cache synch
  • Rotation: invalidate cache
  • Use isZero() in NonWorkingPeriod.setDuration()
  • Shift Instance: use equals()
  • TeamMemberException: add equals() and hashcode() methods

Work Schedule Library

14 Dec 18:14

Choose a tag to compare

Added members for a team and exceptions for assigned personel

Java Work Schedule Library

06 Feb 17:44

Choose a tag to compare

  • Created a Maven repository at org.point85.workschedule:
org.point85 workschedule 1.1.4
  • Upgraded hamcrest to 2.2
  • Removed unused Maven dependencies

Work Schedule Library

26 Dec 20:16

Choose a tag to compare

Removed JavaFX test code
Upgraded to Java 11
Upgraded slf4j to version 1.7.26
Upgraded junit to version 4.13.2

Work schedule library

31 Jul 02:56

Choose a tag to compare

Changed to HSQL test database
Code changes as per SonarLint recommendations

Work schedule library

27 Mar 20:57

Choose a tag to compare

Added a method to get all shift instances with working time in a given day.

Work schedule library

16 Feb 22:04

Choose a tag to compare

  • Converted to a Maven project only
  • Added a bi-directional relationship between WorkSchedule and Rotation
  • Upgraded to JPA version 2.2

Stable work schedule library

07 Feb 03:17

Choose a tag to compare

Java work schedule library