Fun one:
Ensure that resources like this boolean object are closed after use
Because of:
final Stream<V1Container> containers = spec.getContainers() != null ? spec.getContainers().stream() : Stream.empty();
How the hell do I close a boolean? :)
Replaced with this and the problem went away:
final Stream<V1Container> containers = Optional.ofNullable(spec.getContainers()).map(Collection::stream).orElse(Stream.empty());
Originally posted by @marcopelegrini in https://github.com/pmd/pmd/issue_comments/710488934 from #1911
Fun one:
Ensure that resources like this boolean object are closed after useBecause of:
How the hell do I close a boolean? :)
Replaced with this and the problem went away:
Originally posted by @marcopelegrini in https://github.com/pmd/pmd/issue_comments/710488934 from #1911