Skip to content

Commit

Permalink
Fix sonar issues: static; var
Browse files Browse the repository at this point in the history
  • Loading branch information
julianladisch committed Feb 26, 2024
1 parent 5cd0df8 commit fe39a3d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ private void migrateToJakarta() {
}
}

private class JakartaMigrator extends SimpleFileVisitor<Path> {
private static class JakartaMigrator extends SimpleFileVisitor<Path> {
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
String java = new String(Files.readAllBytes(file), StandardCharsets.UTF_8);
var java = new String(Files.readAllBytes(file), StandardCharsets.UTF_8);
java = java.replace("import javax.validation.", "import jakarta.validation.");
Files.write(file, java.getBytes(StandardCharsets.UTF_8));
return FileVisitResult.CONTINUE;
Expand Down

0 comments on commit fe39a3d

Please sign in to comment.