Skip to content

Make jewish calendar thread safe#269

Open
Elyahu41 wants to merge 13 commits intoKosherJava:3-0-modernizationfrom
Elyahu41:make-jewish-calendar-thread-safe
Open

Make jewish calendar thread safe#269
Elyahu41 wants to merge 13 commits intoKosherJava:3-0-modernizationfrom
Elyahu41:make-jewish-calendar-thread-safe

Conversation

@Elyahu41
Copy link
Copy Markdown
Contributor

@Elyahu41 Elyahu41 commented May 6, 2026

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.

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