When using try-with-resources, the resource variable is implicitly final. We should flag explicit modifiers as unnecessary.
Code Sample demonstrating the issue:
try (final FileWriter fw = new FileWriter(new File("something.txt"))) {
// do something on fw
}
When using try-with-resources, the resource variable is implicitly final. We should flag explicit modifiers as unnecessary.
Code Sample demonstrating the issue: