Skip to content

Commit 0d9d1b3

Browse files
authored
Revert library name to gcloud-java (#1444)
1 parent 243d0d1 commit 0d9d1b3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public abstract class ServiceOptions<ServiceT extends Service<OptionsT>, Service
7373
private static final String MANIFEST_ARTIFACT_ID_KEY = "artifactId";
7474
private static final String MANIFEST_VERSION_KEY = "Implementation-Version";
7575
private static final String ARTIFACT_ID = "google-cloud-core";
76-
private static final String LIBRARY_NAME = "google-cloud-java";
76+
private static final String LIBRARY_NAME = "gcloud-java";
7777
private static final String LIBRARY_VERSION = defaultLibraryVersion();
7878
private static final String APPLICATION_NAME =
7979
LIBRARY_VERSION == null ? LIBRARY_NAME : LIBRARY_NAME + "/" + LIBRARY_VERSION;
@@ -570,30 +570,30 @@ public Clock getClock() {
570570
}
571571

572572
/**
573-
* Returns the application's name as a string in the format {@code google-cloud-java/[version]}.
573+
* Returns the application's name as a string in the format {@code gcloud-java/[version]}.
574574
*/
575575
@Deprecated
576576
public String applicationName() {
577577
return getApplicationName();
578578
}
579579

580580
/**
581-
* Returns the application's name as a string in the format {@code google-cloud-java/[version]}.
581+
* Returns the application's name as a string in the format {@code gcloud-java/[version]}.
582582
*/
583583
public String getApplicationName() {
584584
return APPLICATION_NAME;
585585
}
586586

587587
/**
588-
* Returns the library's name, {@code google-cloud-java}, as a string.
588+
* Returns the library's name, {@code gcloud-java}, as a string.
589589
*/
590590
@Deprecated
591591
public String libraryName() {
592592
return getLibraryName();
593593
}
594594

595595
/**
596-
* Returns the library's name, {@code google-cloud-java}, as a string.
596+
* Returns the library's name, {@code gcloud-java}, as a string.
597597
*/
598598
public String getLibraryName() {
599599
return LIBRARY_NAME;

google-cloud-core/src/test/java/com/google/cloud/ServiceOptionsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public class ServiceOptionsTest {
102102
private static final TestServiceOptions DEPRECATED_DEFAULT_OPTIONS =
103103
TestServiceOptions.newBuilder().projectId("project-id").build();
104104
private static final TestServiceOptions OPTIONS_COPY = OPTIONS.toBuilder().build();
105-
private static final String LIBRARY_NAME = "google-cloud-java";
105+
private static final String LIBRARY_NAME = "gcloud-java";
106106
private static final Pattern APPLICATION_NAME_PATTERN =
107107
Pattern.compile(LIBRARY_NAME + "(/[0-9]+.[0-9]+.[0-9]+)?");
108108

0 commit comments

Comments
 (0)