Skip to content

Commit

Permalink
[ELY-2797] check for null Boolean and return boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
rsearls committed Aug 27, 2024
1 parent 1eb5d16 commit b4f6712
Show file tree
Hide file tree
Showing 2 changed files with 386 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ public void setClaimTypesSupported(List<String> claimTypesSupported) {
this.claimTypesSupported = claimTypesSupported;
}

public Boolean getClaimsParameterSupported() {
return claimsParameterSupported;
public boolean getClaimsParameterSupported() {
return claimsParameterSupported == null ? false : claimsParameterSupported;
}

public void setClaimsParameterSupported(Boolean claimsParameterSupported) {
Expand All @@ -345,16 +345,16 @@ public void setScopesSupported(List<String> scopesSupported) {
this.scopesSupported = scopesSupported;
}

public Boolean getRequestParameterSupported() {
return requestParameterSupported;
public boolean getRequestParameterSupported() {
return requestParameterSupported == null ? false : requestParameterSupported;
}

public void setRequestParameterSupported(Boolean requestParameterSupported) {
this.requestParameterSupported = requestParameterSupported;
}

public Boolean getRequestUriParameterSupported() {
return requestUriParameterSupported;
public boolean getRequestUriParameterSupported() {
return requestUriParameterSupported == null ? false : requestUriParameterSupported;
}

public void setRequestUriParameterSupported(Boolean requestUriParameterSupported) {
Expand Down Expand Up @@ -393,12 +393,12 @@ public void setRevocationEndpointAuthSigningAlgValuesSupported(List<String> revo
this.revocationEndpointAuthSigningAlgValuesSupported = revocationEndpointAuthSigningAlgValuesSupported;
}

public Boolean getBackchannelLogoutSupported() {
return backchannelLogoutSupported;
public boolean getBackchannelLogoutSupported() {
return backchannelLogoutSupported == null ? false : backchannelLogoutSupported;
}

public Boolean getBackchannelLogoutSessionSupported() {
return backchannelLogoutSessionSupported;
public boolean getBackchannelLogoutSessionSupported() {
return backchannelLogoutSessionSupported == null ? false : backchannelLogoutSessionSupported;
}

public void setBackchannelLogoutSessionSupported(Boolean backchannelLogoutSessionSupported) {
Expand All @@ -416,8 +416,8 @@ public List<String> getCodeChallengeMethodsSupported() {

// KEYCLOAK-6771 Certificate Bound Token
// https://tools.ietf.org/html/draft-ietf-oauth-mtls-08#section-6.2
public Boolean getTlsClientCertificateBoundAccessTokens() {
return tlsClientCertificateBoundAccessTokens;
public boolean getTlsClientCertificateBoundAccessTokens() {
return tlsClientCertificateBoundAccessTokens == null ? false : tlsClientCertificateBoundAccessTokens;
}

public List<String> getRequestObjectEncryptionAlgValuesSupported() {
Expand Down
Loading

0 comments on commit b4f6712

Please sign in to comment.