Java automodel: also drop boxed types and number types from endpoints

This commit is contained in:
Stephan Brandauer
2023-11-24 15:04:13 +01:00
parent f2de449ce4
commit 2e5971bb57

View File

@@ -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