A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/1405 below:

[java] New Rule: UseTryWithResources - Replace close and IOUtils.closeQuietly with try-with-resources · Issue #1405 · pmd/pmd · GitHub

As mentioned here on #1401, we could create a new rule, that finds usages of IOUtils.closeQuietly within a finally block.

The rule would have a minimum language version of 7.

A simple XPath expression could be:

//TryStatement[FinallyStatement//Name[@Image='IOUtils.closeQuietly']]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4