Skip to content

Commit

Permalink
Remove redundant SuppressWarnings (apache#4371)
Browse files Browse the repository at this point in the history
  • Loading branch information
liketic authored and sijie committed May 26, 2019
1 parent 7924846 commit f9ab535
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ public ByteBuffer getState(String key) {
}
}

@SuppressWarnings("unchecked")
@Override
public <O> CompletableFuture<Void> publish(String topicName, O object) {
return publish(topicName, object, "");
Expand All @@ -332,7 +331,6 @@ public <O> CompletableFuture<Void> publish(String topicName, O object, String sc
return publish(topicName, object, (Schema<O>) topicSchema.getSchema(topicName, object, schemaOrSerdeClassName, false));
}

@SuppressWarnings("unchecked")
@Override
public <O> TypedMessageBuilder<O> newOutputMessage(String topicName, Schema<O> schema) throws PulsarClientException {
MessageBuilderImpl<O> messageBuilder = new MessageBuilderImpl<>();
Expand All @@ -341,7 +339,6 @@ public <O> TypedMessageBuilder<O> newOutputMessage(String topicName, Schema<O> s
return messageBuilder;
}

@SuppressWarnings("unchecked")
public <O> CompletableFuture<Void> publish(String topicName, O object, Schema<O> schema) {
try {
return newOutputMessage(topicName, schema).value(object).sendAsync().thenApply(msgId -> null);
Expand Down

0 comments on commit f9ab535

Please sign in to comment.