Fix: issue 4077 After building JavaParser (with tests) on MacOS multi… by jlerbsc · Pull Request #4086 · javaparser/javaparser (original) (raw)

…ple committed files are modified

The cause of this problem comes mainly from the SourceRoot class which uses printing configuration parameters with default values. The default end-of-line character is system-specific (on Windows it's CRLF...). This only raises a problem when this class is asked to parse and save the result, which is done in particular by the SourceRootTest test class. In this case, ideally, one should use the end-of-line character used in the parsed file.

Fixes #4077 .