Skip to content

Commit

Permalink
Java automodel: also drop boxed types and number types from endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
kaeluka committed Nov 24, 2023
1 parent f2de449 commit 2e5971b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ newtype JavaRelatedLocationType =
ClassDoc()

newtype TFrameworkModeEndpoint =
TExplicitParameter(Parameter p) { not p.getType() instanceof PrimitiveType } or
TExplicitParameter(Parameter p) {
not p.getType() instanceof PrimitiveType and
not p.getType() instanceof BoxedType and
not p.getType() instanceof NumberType
} or
TQualifier(Callable c) { not c instanceof Constructor } or
TReturnValue(Callable c) {
c instanceof Constructor
Expand Down

0 comments on commit 2e5971b

Please sign in to comment.