Skip to content

Make jewish calendar thread safe#269

Merged
KosherJava merged 13 commits into
KosherJava:3-0-modernizationfrom
Elyahu41:make-jewish-calendar-thread-safe
May 6, 2026
Merged

Make jewish calendar thread safe#269
KosherJava merged 13 commits into
KosherJava:3-0-modernizationfrom
Elyahu41:make-jewish-calendar-thread-safe

Conversation

@Elyahu41

@Elyahu41 Elyahu41 commented May 6, 2026

Copy link
Copy Markdown
Contributor

This PR adds "synchronized" to 5 methods in the JewishCalendar and JewishDate classes. This should support devices running Java 9 and above without using more modern data structures, and it fixes an issue that could occur if there is a thread updating the internal date while the getParsha is being called.

@KosherJava KosherJava merged commit bbfedda into KosherJava:3-0-modernization May 6, 2026
1 check passed
binyaz pushed a commit to binyaz/zmanim that referenced this pull request Jun 28, 2026
* add synchronize to the JewishCalendar and JewishDate.

One day we will try to make the classes immutable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants