graylog2-server
graylog2-server copied to clipboard
Enable Error Prone StreamResourceLeak check
This will help us find unclosed streams that do IO operations.
See: https://errorprone.info/bugpattern/StreamResourceLeak
- Add
MustBeClosed
annotations to MongoDB helper methods that wrap a DB cursor in a stream - Fix Error Prone errors
/nocl Static code analysis changes and fixes