File tree Expand file tree Collapse file tree
google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/spi/v1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -178,8 +178,7 @@ public TopicName getTopicName() {
178178 * current thread until there are more resources available to publish.
179179 *
180180 * <p>Example of publishing a message.
181- *
182- * <pre>{@code
181+ * <pre> {@code
183182 * String message = "my_message";
184183 * ByteString data = ByteString.copyFromUtf8(message);
185184 * PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build();
@@ -554,8 +553,7 @@ interface LongRandom {
554553 * Constructs a new {@link Builder} using the given topic.
555554 *
556555 * <p>Example of creating a {@code Publisher}.
557- *
558- * <pre>{@code
556+ * <pre> {@code
559557 * String projectName = "my_project";
560558 * String topicName = "my_topic";
561559 * TopicName topic = TopicName.create(projectName, topicName);
@@ -566,6 +564,8 @@ interface LongRandom {
566564 * // When finished with the publisher, make sure to shutdown to free up resources.
567565 * publisher.shutdown();
568566 * }
567+ * }</pre>
568+ *
569569 */
570570 public static Builder newBuilder (TopicName topicName ) {
571571 return new Builder (topicName );
You can’t perform that action at this time.
0 commit comments