Skip to content

Conversation

@abchaubey
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Dec 30, 2020

Coverage Status

Coverage decreased (-0.01%) to 88.704% when pulling 278b76d on abchaubey:master into a31f5cf on apache:master.

ch0 = Character.toUpperCase(ch0);
if (ch0 >= 'A' && ch0 <= 'Z') {
if (len == 2 || isSeparator(fileName.charAt(2)) == false) {
if (len == 2 && !FileSystem.getCurrent().supportsDriveLetter()) {
Copy link
Member

Choose a reason for hiding this comment

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

The last step is to document this in the Javadoc for the method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

adding this in under Unix section :

  • C: --> "" --> valid filename as only null byte and / are reserved characters
    Let me know your thoughts, thanks

Copy link
Member

Choose a reason for hiding this comment

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

Well, our current Javadoc is lame because while this methods returns an int, the Javadoc shows String examples as 'output' which is not so helpful IMO, so if you can fix the Javadoc to show what the int value is now for all the example strings, that would be appreciated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated Javadoc

@garydgregory garydgregory changed the title IO-600: fix getPrefixLength method for Linux filename [IO-600] Fix getPrefixLength method for Linux filename Dec 31, 2020
@garydgregory garydgregory merged commit 558e930 into apache:master Dec 31, 2020
asfgit pushed a commit that referenced this pull request Dec 31, 2020
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