Skip to content

Fix 10#11

Open
dekobon wants to merge 4 commits into
fge:masterfrom
dekobon:fix_10
Open

Fix 10#11
dekobon wants to merge 4 commits into
fge:masterfrom
dekobon:fix_10

Conversation

@dekobon
Copy link
Copy Markdown

@dekobon dekobon commented Nov 17, 2015

Fixes: #8

There was a lot more work done in this PR than I would have liked there to be. I was forced to base it off of my previous PR, so that I could act with the assumptions related to an empty path. There were a lot of assumptions that were tied to each other in how Paths were defined. I've continued to use the patterns established by the JVM's UnixPath behavior.

In this PR, I updated how toString() behaves for paths that have an empty rootSeparator (e.g. UnixPath) so that they don't output a String with an embedded "null" in them. I've also modified how endsWith() behaves so that it conforms to the expectations of UnixPath and doesn't throw an exception when trying to access an element of an array that is unavailable.

Please let me know if these PRs are welcome or if they are a nuisance. I'm actively developing an NIO plugin and I would like to get this project to a solid next release.

@dekobon
Copy link
Copy Markdown
Author

dekobon commented Nov 18, 2015

I've updated to use the AssertJ library. Sorry that I didn't catch that earlier.

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