Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace ArrayStoreException with TypeNotPresentException in try/catch using Class.getAnnotation() #613

Merged
Prev Previous commit
Next Next commit
Updated the display name
bhavanapidapa committed Nov 22, 2024
commit d2a31afc62fa806bf6f0fe3ef335f8c194dc61be
Original file line number Diff line number Diff line change
@@ -16,12 +16,12 @@
public class ArrayStoreExceptionToTypeNotPresentException extends Recipe {
@Override
public String getDisplayName() {
return "Handle TypeNotPresentException instead of ArrayStoreException";
return "ArrayStoreExceptionToTypeNotPresentException";
BhavanaPidapa marked this conversation as resolved.
Show resolved Hide resolved
}

@Override
public String getDescription() {
return "This recipe replaces catch blocks for ArrayStoreException around getAnnotation() with TypeNotPresentException or both exceptions, to ensure compatibility with Java 11+.";
return "This recipe replaces catch blocks for ArrayStoreException around getAnnotation() with TypeNotPresentException to ensure compatibility with Java 11+.";
timtebeek marked this conversation as resolved.
Show resolved Hide resolved
}

@Override