Skip to content

Comments

refactored calculations to use java.time api#3201

Merged
lbownik merged 2 commits intodevelopfrom
persistence.user_refactoring_2
Feb 10, 2026
Merged

refactored calculations to use java.time api#3201
lbownik merged 2 commits intodevelopfrom
persistence.user_refactoring_2

Conversation

@lbownik
Copy link
Contributor

@lbownik lbownik commented Feb 5, 2026

No description provided.

long expiresInMilliseconds = this.expires.getTime();
long nowInMilliseconds = new Date().getTime();
return nowInMilliseconds > expiresInMilliseconds;
return this.expires.before(new Date());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new Date() could be changed to Instant.now()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@rscipien rscipien assigned lbownik and unassigned rscipien Feb 9, 2026
@lbownik lbownik assigned rscipien and unassigned lbownik Feb 9, 2026
@lbownik lbownik requested a review from rscipien February 9, 2026 10:08
@rscipien rscipien assigned lbownik and unassigned rscipien Feb 10, 2026
@lbownik lbownik force-pushed the persistence.user_refactoring_2 branch from 267d356 to 4e46159 Compare February 10, 2026 08:32
@lbownik lbownik merged commit 8526bff into develop Feb 10, 2026
1 check passed
@lbownik lbownik deleted the persistence.user_refactoring_2 branch February 10, 2026 08:35
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