Skip to content

Commit 007c153

Browse files
authored
Remove override annotation from snippets to avoid breaking javadoc (#1287)
1 parent 0e61bd3 commit 007c153

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,6 @@ public void pullAsync(String subscriptionName) throws ExecutionException, Interr
557557
public void pullWithMessageConsumer(String subscriptionName) throws Exception {
558558
// [START pullWithMessageConsumer]
559559
MessageProcessor callback = new MessageProcessor() {
560-
@Override
561560
public void process(Message message) throws Exception {
562561
// Ack deadline is renewed until this method returns
563562
// Message is acked if this method returns successfully

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ public void pullAsync() throws ExecutionException, InterruptedException {
208208
public void pullWithMessageConsumer(String subscriptionName) throws Exception {
209209
// [START pullWithMessageConsumer]
210210
MessageProcessor callback = new MessageProcessor() {
211-
@Override
212211
public void process(Message message) throws Exception {
213212
// Ack deadline is renewed until this method returns
214213
// Message is acked if this method returns successfully

google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/PubSub.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,6 @@ interface MessageConsumer extends AutoCloseable {
771771
* <pre> {@code
772772
* String subscriptionName = "my_subscription_name";
773773
* MessageProcessor callback = new MessageProcessor() {
774-
* @Override
775774
* public void process(Message message) throws Exception {
776775
* // Ack deadline is renewed until this method returns
777776
* // Message is acked if this method returns successfully

google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/Subscription.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ public Future<Iterator<ReceivedMessage>> pullAsync(int maxMessages) {
371371
* <pre> {@code
372372
* String subscriptionName = "my_subscription_name";
373373
* MessageProcessor callback = new MessageProcessor() {
374-
* @Override
375374
* public void process(Message message) throws Exception {
376375
* // Ack deadline is renewed until this method returns
377376
* // Message is acked if this method returns successfully

0 commit comments

Comments
 (0)