File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public static void createBucketPubSubNotification(
5858
.setPayloadFormat(payloadFormat)
5959
.build();
6060
Notification notification = storage.createNotification(bucketName, notificationInfo);
61-
System.out.println("Successfully created notification for topic " + notification.getTopic());
61+
String topic = notification.getTopic();
62+
System.out.println("Successfully created notification for topic " + topic);
6263
}
6364
}
6465
// [END storage_create_bucket_notifications]

0 commit comments

Comments
 (0)