Fix typos in GcpIamAuthenticationOptions and GcpIamCredentialsAuthenticationOptions.

See gh-657
This commit is contained in:
Nikola Kološnjaji
2021-10-01 14:28:24 +02:00
committed by Mark Paluch
parent a3e9c0c3f0
commit 7d408e1c96
2 changed files with 4 additions and 4 deletions

View File

@@ -249,7 +249,7 @@ public class GcpIamAuthenticationOptions extends GcpIamAuthenticationSupport {
*/
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;
@@ -263,7 +263,7 @@ public class GcpIamAuthenticationOptions extends GcpIamAuthenticationSupport {
*/
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;

View File

@@ -200,7 +200,7 @@ public class GcpIamCredentialsAuthenticationOptions extends GcpIamAuthentication
*/
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;
@@ -214,7 +214,7 @@ public class GcpIamCredentialsAuthenticationOptions extends GcpIamAuthentication
*/
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;