Skip to content

Commit a3bce15

Browse files
author
chenyumic
authored
Minor Fix
1 parent da3e2a7 commit a3bce15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateTopicAndPublishMessages.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public static void publishMessagesWithErrorHandler() throws Exception {
9999
ApiFuture<String> future = publisher.publish(pubsubMessage);
100100

101101
// Add an asynchronous callback to handle success / failure
102-
ApiFuture.addCallback(future, new ApiFutureCallback<String>() {
102+
ApiFutures.addCallback(future, new ApiFutureCallback<String>() {
103103

104104
@Override
105105
public void onFailure(Throwable throwable) {

0 commit comments

Comments
 (0)