From c6a974e15aabf83990eb9539b8017c343f27a1c2 Mon Sep 17 00:00:00 2001 From: spollapally Date: Mon, 25 Jun 2018 20:18:56 -0400 Subject: [PATCH] defaultRule method name typo fix. --- .../com/google/cloud/bigtable/admin/v2/models/GCRules.java | 2 +- .../cloud/bigtable/admin/v2/models/TableAdminRequests.java | 2 +- .../cloud/bigtable/admin/v2/models/TableAdminResponses.java | 4 ++-- .../bigtable/admin/v2/models/TableAdminResponsesTest.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/GCRules.java b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/GCRules.java index 6817d305e783..624f91781a78 100644 --- a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/GCRules.java +++ b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/GCRules.java @@ -89,7 +89,7 @@ public DurationRule maxAge(Duration duration) { * * @return DefaultRule */ - public DefaultRule defaulRule() { + public DefaultRule defaultRule() { return new DefaultRule(); } diff --git a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/TableAdminRequests.java b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/TableAdminRequests.java index 59c3cb3fb30a..ed4197069099 100644 --- a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/TableAdminRequests.java +++ b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/TableAdminRequests.java @@ -156,7 +156,7 @@ private ModifyFamilies(String tableId) { * @return */ public ModifyFamilies addFamily(String familyId) { - return addFamily(familyId, GCRules.GCRULES.defaulRule()); + return addFamily(familyId, GCRules.GCRULES.defaultRule()); } /** diff --git a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/TableAdminResponses.java b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/TableAdminResponses.java index 41d391e7bdec..82edc5184419 100644 --- a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/TableAdminResponses.java +++ b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/TableAdminResponses.java @@ -214,7 +214,7 @@ public String toString() { /** Wrapper for {@link ColumnFamily} protocol buffer object */ public static final class ColumnFamily { private final String id; - private GCRule gCRule = GCRULES.defaulRule(); + private GCRule gCRule = GCRULES.defaultRule(); private ColumnFamily(String id, com.google.bigtable.admin.v2.ColumnFamily cf) { Preconditions.checkNotNull(id); @@ -282,7 +282,7 @@ private GCRule convertGcRule(GcRule source) { return union; default: - return GCRULES.defaulRule(); + return GCRULES.defaultRule(); } } } diff --git a/google-cloud-clients/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/models/TableAdminResponsesTest.java b/google-cloud-clients/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/models/TableAdminResponsesTest.java index 80fc5fb92bf3..3b759e2f2954 100644 --- a/google-cloud-clients/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/models/TableAdminResponsesTest.java +++ b/google-cloud-clients/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/models/TableAdminResponsesTest.java @@ -88,7 +88,7 @@ public void convertTable() { assertNotNull("cf1", tableResponse.getColumnFamiliesMap().get("cf1").getId()); assertFalse(tableResponse.getColumnFamiliesMap().get("cf1").hasGcRule()); - assertThat(GCRULES.defaulRule().toProto()) + assertThat(GCRULES.defaultRule().toProto()) .isEqualTo(tableResponse.getColumnFamiliesMap().get("cf1").getGCRule().toProto()); assertThat(GCRULES.maxVersions(1).toProto()) .isEqualTo(tableResponse.getColumnFamiliesMap().get("cf2").getGCRule().toProto());