39
39
*/
40
40
public class RequestReplyTypedMessageFuture <K , V , P > extends RequestReplyMessageFuture <K , V > {
41
41
42
+ private static final String UNCHECKED = "unchecked" ;
43
+
42
44
private Completable completable ;
43
45
44
46
RequestReplyTypedMessageFuture (ListenableFuture <SendResult <K , V >> sendFuture ) {
45
47
super (sendFuture );
46
48
}
47
49
48
- @ SuppressWarnings ("unchecked" )
50
+ @ SuppressWarnings (UNCHECKED )
49
51
@ Override
50
52
public Message <P > get () throws InterruptedException , ExecutionException {
51
53
return (Message <P >) super .get ();
52
54
}
53
55
54
- @ SuppressWarnings ("unchecked" )
56
+ @ SuppressWarnings (UNCHECKED )
55
57
@ Override
56
58
public Message <P > get (long timeout , TimeUnit unit )
57
59
throws InterruptedException , ExecutionException , TimeoutException {
@@ -74,17 +76,17 @@ public synchronized Completable asCompletable() {
74
76
*/
75
77
public class Completable extends RequestReplyMessageFuture .Completable {
76
78
77
- Completable (RequestReplyMessageFuture requestReplyMessageFuture , Future delegate ) {
79
+ Completable (RequestReplyMessageFuture requestReplyMessageFuture , Future < Message <?>> delegate ) { // NOSONAR
78
80
requestReplyMessageFuture .super (delegate );
79
81
}
80
82
81
- @ SuppressWarnings ("unchecked" )
83
+ @ SuppressWarnings (UNCHECKED )
82
84
@ Override
83
85
public Message <P > get () throws InterruptedException , ExecutionException {
84
86
return (Message <P >) super .get ();
85
87
}
86
88
87
- @ SuppressWarnings ("unchecked" )
89
+ @ SuppressWarnings (UNCHECKED )
88
90
@ Override
89
91
public Message <P > get (long timeout , TimeUnit unit )
90
92
throws InterruptedException , ExecutionException , TimeoutException {
0 commit comments