Java: Fix tests.

This commit is contained in:
Anders Schack-Mulligen
2019-06-27 13:20:03 +02:00
parent 2af3598223
commit a583f000c1
3 changed files with 4 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ predicate serializableType(RefType t) {
// Collection interfaces are not serializable, but their implementations are
// likely to be.
collectionOrMapType(t) and
not t instanceof RawType and
forall(RefType param | param = t.(ParameterizedType).getATypeArgument() | serializableType(param))
or
exists(BoundedType bt | bt = t | serializableType(bt.getUpperBoundType()))