Skip to content

Commit

Permalink
Fix typos in GcpIamAuthenticationOptions and `GcpIamCredentialsAuth…
Browse files Browse the repository at this point in the history
…enticationOptions`.

See gh-657
  • Loading branch information
nkolosnjaji authored Oct 1, 2021
1 parent b54ddc4 commit b4a3af8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public GcpIamAuthenticationOptionsBuilder role(String role) {
*/
public GcpIamAuthenticationOptionsBuilder jwtValidity(Duration jwtValidity) {

Assert.hasText(this.role, "JWT validity duration must not be null");
Assert.notNull(jwtValidity, "JWT validity duration must not be null");

this.jwtValidity = jwtValidity;
return this;
Expand All @@ -263,7 +263,7 @@ public GcpIamAuthenticationOptionsBuilder jwtValidity(Duration jwtValidity) {
*/
public GcpIamAuthenticationOptionsBuilder clock(Clock clock) {

Assert.hasText(this.role, "Clock must not be null");
Assert.notNull(clock, "Clock must not be null");

this.clock = clock;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public GcpIamCredentialsAuthenticationOptionsBuilder role(String role) {
*/
public GcpIamCredentialsAuthenticationOptionsBuilder jwtValidity(Duration jwtValidity) {

Assert.hasText(this.role, "JWT validity duration must not be null");
Assert.notNull(jwtValidity, "JWT validity duration must not be null");

this.jwtValidity = jwtValidity;
return this;
Expand All @@ -214,7 +214,7 @@ public GcpIamCredentialsAuthenticationOptionsBuilder jwtValidity(Duration jwtVal
*/
public GcpIamCredentialsAuthenticationOptionsBuilder clock(Clock clock) {

Assert.hasText(this.role, "Clock must not be null");
Assert.notNull(clock, "Clock must not be null");

this.clock = clock;
return this;
Expand Down

0 comments on commit b4a3af8

Please sign in to comment.