Skip to content

Commit

Permalink
add exception to Parameter visit method
Browse files Browse the repository at this point in the history
  • Loading branch information
LoiNguyenCS committed Oct 2, 2023
1 parent 39e36e2 commit 4622a6d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,10 @@ public Visitable visit(Parameter parameter, Void p) {
try {
parameter.resolve().describeType();
return super.visit(parameter, p);
} catch (UnsolvedSymbolException e) {
}
// If the parameter originates from a Java built-in library, such as java.io or java.lang,
// an UnsupportedOperationException will be thrown instead.
catch (UnsolvedSymbolException | UnsupportedOperationException e) {
String parameterInString = parameter.toString();
if (isAClassPath(parameterInString)) {
// parameterInString needs to be a fully-qualified name. As this parameter has a form of
Expand Down

0 comments on commit 4622a6d

Please sign in to comment.