(doc) [IO-484] Fix incorrect FilenameUtils documentation for null bytes#310
Conversation
|
Hi @Marcono1234 |
|
@Marcono1234 ping |
|
You are right, I have used the term "null character" now, which is also used by Wikipedia and in some of the documentation comments of the JDK classes. Also, what should I do regarding the TODO comments I added, should I just leave them in? |
|
@Marcono1234 |
|
Ok, I have removed the comments now. Here are the issues the TODO comments were about, in case you or someone else wants to have a look at them in the future:
|
During the development of IO-484 the behavior was first to remove null bytes (afe78a0) but then later the implementation was changed to throw an exception instead (5d072ef).
However, not the complete documentation was adjusted.
This pull request corrects the documentation by mentioning that an
IllegalArgumentExceptionwill be thrown for null bytes.However, there are cases where the null bytes check is missing, or might be undesired. I have added TODO comments at these locations. Please let me know if you want any additional changes there.