io.codemodder.codemods.prevent-filewriter-leak-with-nio.yaml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-codemods Show documentation
Show all versions of core-codemods Show documentation
Codemods for fixing common errors across many Java projects
The newest version!
rules:
- id: prevent-filewriter-leak-with-nio
pattern: new BufferedWriter(new FileWriter($X), ...)
message: File leak
languages:
- java
severity: WARNING