I believe the new rule is effective already. But I’m only seeing that the FileWriter or FileReader constructors are no longer being reported as an issue, but whenever I declare a variable of type FileWriter or FileReader the report still complains. I believe this should also be fixed.
versions used: SonarQube
For example: FileReader fileReader = new FileReader(file, StandardCharsets.ISO_8859_1);
SonarQube now would not complain about the usages of the FileReader constructor, but it still complains about the variable fileReader by reporting Remove this use of "java.io.FileReader". @Quentin
The issue you are facing seems to be the same as the one described in the ticket.
The ticket is fixed in version 6.15 of the analyzer, version not yet included in any version of SonarQube, explaining why you are still facing the issue.
Hi Quentin,
So we are currently using SonarQube 7.8, and I don’t think we want to upgrade it anytime soon because we want a SonarQube version that can support both Java 8 and Java 11. Is there any way we can still use the new rule implemented for that ticket?