Closed ajays20078 closed 7 years ago
You're absolutely right. I had been misunderstood the definition of comments in properties files.
A comment line has an ASCII '#' or '!' as its first non-white space character
[https://docs.oracle.com/javase/8/docs/api/java/util/Properties.html#load-java.io.Reader-]
It's almost ready to merge, but could you please update related test cases also to avoid test failures? At least both werker and travis-ci warned about them.
Modified the test cases for the same. Travis is all good now. And the errors in wercker are un-related to this PR.
LGTM. Thanks a lot for the fix!
The for loop beginning here rstrips the rest of the line once it encounters # or !(comment markers) . This is invalid as per wiki for properties file. Any comment markers which is in property value is considered as part of the value itself(Refer to the
message =
key in the wiki.And since the line starting with # or ! (comment markers) are already removed here, there is no need for the for loop which makes it non-compliant with properties format.