graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

Enable Error Prone StreamResourceLeak check

Open bernd opened this issue 2 months ago • 0 comments

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

bernd avatar Jun 17 '24 10:06 bernd