Skip to content

[ggj][codegen][test] feat: ServiceClientTest.rpcExceptionTest support for LRO, streaming #350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Sep 26, 2020
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,14 @@ public boolean isFromPackage(String pkg) {
@Override
public boolean isSupertypeOrEquals(Reference other) {
// Not handling more complex cases for VaporReference.
return equals(other);
if (!(other instanceof VaporReference)) {
return false;
}

VaporReference ref = (VaporReference) other;
return pakkage().equals(ref.pakkage())
&& plainName().equals(ref.plainName())
&& Objects.equals(enclosingClassName(), ref.enclosingClassName());
}

@Override
Expand Down
Loading