Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
Randgalt committed Mar 31, 2024
1 parent 41b91f4 commit 45d5dd3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,11 @@ private void handleWriteError(TypeElement element, IOException e) {
}

private void deletePossibleClassFile(String packageName, String className, Location location) {
String extension = location.equals(StandardLocation.CLASS_OUTPUT) ? ".class" : ".java";

try {
FileObject resource = processingEnv.getFiler().getResource(location, packageName,
className + ".class");
className + extension);
File file = new File(resource.toUri());
processingEnv.getMessager().printMessage(Diagnostic.Kind.MANDATORY_WARNING,
"Exists: %s File: %s".formatted(file.exists(), file));
Expand Down

0 comments on commit 45d5dd3

Please sign in to comment.