We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cd007d commit a821773Copy full SHA for a821773
api/src/main/java/io/grpc/StatusOr.java
@@ -66,6 +66,14 @@ public Status getStatus() {
66
return status == null ? Status.OK : status;
67
}
68
69
+ /**
70
+ * Note that StatusOr containing statuses, the equality comparision is delegated to
71
+ * {@link Status#equals} which just does a reference equality check because equality on
72
+ * Statuses is not well defined.
73
+ * Instead, do comparison based on their Code with {@link Status#getCode}. The description and
74
+ * cause of the Status are unlikely to be stable, and additional fields may be added to Status
75
+ * in the future.
76
+ */
77
@Override
78
public boolean equals(Object other) {
79
if (!(other instanceof StatusOr)) {
0 commit comments