Skip to content

Commit

Permalink
defaultRule method name typo fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
spollapally committed Jun 26, 2018
1 parent d530655 commit c6a974e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public DurationRule maxAge(Duration duration) {
*
* @return DefaultRule
*/
public DefaultRule defaulRule() {
public DefaultRule defaultRule() {
return new DefaultRule();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -282,7 +282,7 @@ private GCRule convertGcRule(GcRule source) {
return union;

default:
return GCRULES.defaulRule();
return GCRULES.defaultRule();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit c6a974e

Please sign in to comment.