File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
api/src/main/java/io/grpc Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ private StatusOr(Status status, T value) {
33
33
}
34
34
35
35
/** Construct from a value. */
36
- public static <T > StatusOr <T > fromValue (@ Nullable T value ) {
36
+ public static <T > StatusOr <T > fromValue (T value ) {
37
37
StatusOr <T > result = new StatusOr <T >(null , value );
38
38
return result ;
39
39
}
@@ -54,7 +54,7 @@ public boolean hasValue() {
54
54
* Returns the value if set or throws exception if there is no value set. This method is meant
55
55
* to be called after checking the return value of hasValue() first.
56
56
*/
57
- public @ Nullable T getValue () {
57
+ public T getValue () {
58
58
if (status != null ) {
59
59
throw new IllegalStateException ("No value present." );
60
60
}
@@ -105,6 +105,7 @@ public String toString() {
105
105
return stringHelper .toString ();
106
106
}
107
107
108
+ @ Nullable
108
109
private final Status status ;
109
110
private final T value ;
110
111
}
You can’t perform that action at this time.
0 commit comments