Skip to content

Commit 5da936a

Browse files
committed
string concatenation, whitespace fix
1 parent 67d5dd5 commit 5da936a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

google-cloud-examples/src/test/java/com/google/cloud/examples/pubsub/snippets/ITSubscriberClientSnippets.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ public void replaceSubscriptionPolicyAndTestPermissionsIsSuccessful() throws Exc
189189
assertTrue(response.getPermissionsList().contains("pubsub.subscriptions.get"));
190190
}
191191

192-
193-
194192
private void createTopic(String name) throws Exception {
195193
try (PublisherClient publisherClient = PublisherClient.create()) {
196194
publisherClient.createTopic(TopicName.create(projectId, name));
@@ -201,7 +199,7 @@ private Set<String> publishMessages(String topicName, int numMessages) throws Ex
201199
Set<String> messages = new HashSet<>();
202200
Publisher publisher = Publisher.newBuilder(TopicName.create(projectId, topicName)).build();
203201
for (int i = 1; i<= numMessages; i++) {
204-
String message = formatForTest("message-" + String.valueOf(i));
202+
String message = formatForTest("message-" + i);
205203
PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(
206204
ByteString.copyFromUtf8(message)).build();
207205
publisher.publish(pubsubMessage);

0 commit comments

Comments
 (0)