On Fri, 9 Feb 2024 13:42:02 GMT, Magnus Ihse Bursie <i...@openjdk.org> wrote:

>> This is an attempt to finally implement the idea brought forward in 
>> JDK-8295729:  Properties files is essentially source code. It should have 
>> the same whitespace checks as all other source code, so we don't get 
>> spurious trailing whitespace changes or leading tabs instead of spaces. 
>> 
>> With Skara jcheck, it is possible to increase the coverage of the whitespace 
>> checks.
>> 
>> However, this turned out to be problematic, since trailing whitespace is 
>> significant in properties files. That issue has mostly been sorted out in a 
>> series of PRs, and this patch will finish the job with the few remaining 
>> files, and actually enable the check in jcheck.
>
> src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/msg/DOMMessages.properties
>  line 24:
> 
>> 22: 
>> 23:         BadMessageKey = The error message corresponding to the message 
>> key can not be found.
>> 24:         FormatFailed = An internal error occurred while formatting the 
>> following message:\n  
> 
> At first glance, it might look like something should follow the `:`, but note 
> that there is a `\n` so if anything this will only make the next line 
> improperly indented.

That could have been intentional though. Not sure if it was a good idea, but 
indenting something is a way of making something stand out as a quote. But 
looking at every use site, there is an extra space added anyway, so this seems 
fine. If we wanted to preserve the exact same behavior, all use sites should be 
updated to add 3 spaces.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/17789#discussion_r1484416962

Reply via email to