Skip to content

Conversation

@cstamas
Copy link
Member

@cstamas cstamas commented May 26, 2023

This PR does NOT make any semantic change, it literally just makes existing code self-explanatory.

Just to avoid that in 2 years another of us looks at this and become puzzled what in case of "last modified" means 0L, and why a method returns 1L, etc.

This class is fully covered with self explanatory UTs as well.

No JIRA created either.

This PR does NOT make any semantic change, it literally just makes
existing code self-explanatory.

Just to avoid that in 2 years another of us looks at this and
become puzzled what in case of "last modified" means 0L, and
why a method returns 1L, etc.

This class is fully covered with self explanatory UTs as well.

No JIRA created either.
@cstamas cstamas requested review from gnodet and michael-o May 26, 2023 11:43
@cstamas cstamas self-assigned this May 26, 2023
Copy link
Contributor

@gnodet gnodet left a comment

Choose a reason for hiding this comment

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

Looks good, though the value 1 is still a magic value because it's never read and it works only because it's always less than any clock timestamp...

@cstamas
Copy link
Member Author

cstamas commented May 26, 2023

Again, I did not change anything. But spent so much time figure out the logic behind all this and "why 1???", so intent is really just to add constants that are "decorated" with javadoc explaining their meaning.

@cstamas cstamas merged commit 466f419 into apache:master May 26, 2023
@cstamas cstamas deleted the make-self-explanatory branch May 26, 2023 11:57
@gnodet gnodet added this to the 1.9.11 milestone Jun 1, 2023
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.

3 participants