Skip to content

Conversation

@kvchekuri
Copy link

@kvchekuri kvchekuri commented Mar 27, 2025

I made four key changes:

RegularFileTest: Added a public constructor to satisfy JUnit’s requirements, as the test fails when running fresh from a clone.

PathService: Removed the hard-coded magic number by introducing an explaining variable and extracting the hashing logic into a helper method.

BasicAttributeProvider: Consolidated repeated string literals into constants, extracted the “isOther” logic, and introduced an explaining variable to improve code clarity.

Jimfs.java: Replaced conditionals with polymorphism for file system creation and extracted provider lookup logic into a separate class for improved clarity and maintainability.

@google-cla
Copy link

google-cla bot commented Mar 27, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@eamonnmcmanus eamonnmcmanus requested a review from cgdecker April 14, 2025 15:22
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.

1 participant