Fix typos in GcpIamAuthenticationOptions and GcpIamCredentialsAuthenticationOptions.
See gh-657
This commit is contained in:
committed by
Mark Paluch
parent
a3e9c0c3f0
commit
7d408e1c96
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user