Skip to content

Commit 1774e32

Browse files
authored
cleanup: Fix mismatched region tags (GoogleCloudPlatform#3587)
Fixes #issue > It's a good idea to open an issue first for discussion. - [X] I have followed [Sample Format Guide](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/SAMPLE_FORMAT.md) - [ ] `pom.xml` parent set to latest `shared-configuration` - [ ] Appropriate changes to README are included in PR - [ ] API's need to be enabled to test (tell us) - [ ] Environment Variables need to be set (ask us to set them) - [ ] **Tests** pass: `mvn clean verify` **required** - [ ] **Lint** passes: `mvn -P lint checkstyle:check` **required** - [] **Static Analysis**: `mvn -P lint clean compile pmd:cpd-check spotbugs:check` **advisory only** - [X] Please **merge** this PR for me once it is approved.
1 parent a202cbf commit 1774e32

File tree

10 files changed

+7
-11
lines changed

10 files changed

+7
-11
lines changed

functions/helloworld/hello-pubsub/src/test/java/functions/ExampleSystemTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@ public void helloPubSub_shouldRunOnGcf() throws Exception {
115115
assertThat(logEntry).contains(name);
116116
}
117117
}
118-
// [END functions_pubsub_integration_test]
118+
// [END functions_pubsub_system_test]

functions/helloworld/kotlin-hello-pubsub/src/main/kotlin/functions/eventpojos/PubSubMessage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package functions.eventpojos
1818

19-
// [END functions_helloworld_pubsub_message]
19+
// [START functions_helloworld_pubsub_message]
2020
class PubSubMessage {
2121
// Cloud Functions uses GSON to populate this object.
2222
// Field types/names are specified by Cloud Functions

functions/helloworld/scala-hello-pubsub/src/main/scala/functions/eventpojos/PubSubMessage.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ class PubSubMessage { // Cloud Functions uses GSON to populate this object.
3434
def setData(data: String): Unit = {
3535
this.data = data : String;
3636
}
37-
// [END functions_helloworld_pubsub_message]
37+
// [START functions_helloworld_pubsub_message]
3838
}
3939
// [END functions_helloworld_pubsub_message]

iot/api-client/codelab/manager/src/main/java/com/example/cloud/iot/examples/MqttCommandsDemo.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ private static String createJwtRsa(String projectId, String privateKeyFile)
7676

7777
return jwtBuilder.signWith(SignatureAlgorithm.RS256, kf.generatePrivate(spec)).compact();
7878
}
79-
// [END iot_mqtt_jwt]
8079

8180
/** Create a Cloud IoT Core JWT for the given project id, signed with the given ES key. */
8281
private static String createJwtEs(String projectId, String privateKeyFile)
@@ -243,7 +242,6 @@ public static void mqttDeviceDemo(
243242
throw new IllegalArgumentException(
244243
"Invalid algorithm " + algorithm + ". Should be one of 'RS256' or 'ES256'.");
245244
}
246-
// [END iot_mqtt_configuremqtt]
247245

248246
// [START iot_mqtt_publish]
249247
// Create a client, and connect to the Google MQTT bridge.

iot/api-client/manager/src/main/java/com/example/cloud/iot/examples/MqttExample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ protected static void mqttDeviceDemo(MqttExampleOptions options)
360360
throw new IllegalArgumentException(
361361
"Invalid algorithm " + options.algorithm + ". Should be one of 'RS256' or 'ES256'.");
362362
}
363-
// [END iot_mqtt_configuremqtt]
364363

365364
// [START iot_mqtt_publish]
366365
// Create a client, and connect to the Google MQTT bridge.

jobs/v3/src/main/java/com/google/samples/AutoCompleteSample.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ public static void jobTitleAutoComplete(String companyName, String query) throws
5959

6060
System.out.println(results);
6161
}
62-
// [END auto_complete_default]
62+
// [END auto_complete_job_title]
6363

64+
// [START auto_complete_default]
6465
/** Auto completes job titles within given companyName. */
6566
public static void defaultAutoComplete(String companyName, String query) throws IOException {
6667
Complete complete =

jobs/v3/src/main/java/com/google/samples/BasicJobSample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public static Job updateJob(String jobName, Job jobToBeUpdated) throws IOExcepti
123123
}
124124
}
125125

126-
//
126+
// [END update_job]
127127

128128
// [START update_job_with_field_mask]
129129

spanner/cloud-client/src/main/java/com/example/spanner/SpannerSample.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2113,6 +2113,7 @@ public static void main(String[] args) throws Exception {
21132113
// Use client here...
21142114
// [END init_client]
21152115
run(dbClient, dbAdminClient, instanceAdminClient, command, db, backup);
2116+
// [START init_client]
21162117
} finally {
21172118
spanner.close();
21182119
}

spanner/spring-data/src/main/java/com/example/spanner/SpannerTemplateSample.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
* A quick start code for Spring Data Cloud Spanner. It demonstrates how to use SpannerTemplate to
2929
* execute DML and SQL queries, save POJOs, and read entities.
3030
*/
31-
// [START spring_data_spanner_template_sample]
3231
@Component
3332
public class SpannerTemplateSample {
3433

vision/cloud-client/src/main/java/com/example/vision/snippets/DetectWebEntities.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
package com.example.vision.snippets;
1818

19-
// [START vision_web_detection]
20-
2119
import com.google.cloud.vision.v1.AnnotateImageRequest;
2220
import com.google.cloud.vision.v1.BatchAnnotateImagesResponse;
2321
import com.google.cloud.vision.v1.Feature;

0 commit comments

Comments
 (0)