Skip to content

Commit

Permalink
add exception
Browse files Browse the repository at this point in the history
  • Loading branch information
LoiNguyenCS committed Oct 3, 2023
1 parent ee4c32a commit 218ef62
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,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 218ef62

Please sign in to comment.