-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleaned up test code to fix all test related spotbugs warnings #2006
Conversation
@a-sr, @soerendomroes I tried to add the dependencies on |
lf-lang/epoch#54 adds the jcip and spotbugs dependency to the target platform and the LF plugin. |
Thanks to Alex, the Epoch build is now fixed. As far as I am concerned, this is ready to be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! The usage of StandardCharsets.UTF_8
seems a bit verbose to me; is that really the way proper Java ought to be written these days?
Yeah, I am not sure about those, actually. The problem is, that there is no well-defined default. So if you write a file and then read it back in on another machine, you may end up with garbage. This is why it is better to define the encoding we actually want. However, in our case, we don't really know the encoding used in the pipes to external processes. So maybe it would be safer to use the default... but I don't know, and I figured we could try if using UTF-8 throughout causes any troubles. |
This is a step towards #1806. Fixes are based on warnings from spotbugs and IntelliJ Idea.
This builds on #2005 and should only be merged after.