@ -378,7 +378,7 @@ public final class ClientRegistration implements Serializable {
private String clientName ;
private String clientName ;
private ClientSettings clientSettings ;
private ClientSettings clientSettings = ClientSettings . builder ( ) . build ( ) ;
private Builder ( String registrationId ) {
private Builder ( String registrationId ) {
this . registrationId = registrationId ;
this . registrationId = registrationId ;
@ -614,6 +614,7 @@ public final class ClientRegistration implements Serializable {
* @return the { @link Builder }
* @return the { @link Builder }
* /
* /
public Builder clientSettings ( ClientSettings clientSettings ) {
public Builder clientSettings ( ClientSettings clientSettings ) {
Assert . notNull ( clientSettings , "clientSettings cannot be null" ) ;
this . clientSettings = clientSettings ;
this . clientSettings = clientSettings ;
return this ;
return this ;
}
}
@ -651,8 +652,7 @@ public final class ClientRegistration implements Serializable {
clientRegistration . providerDetails = createProviderDetails ( clientRegistration ) ;
clientRegistration . providerDetails = createProviderDetails ( clientRegistration ) ;
clientRegistration . clientName = StringUtils . hasText ( this . clientName ) ? this . clientName
clientRegistration . clientName = StringUtils . hasText ( this . clientName ) ? this . clientName
: this . registrationId ;
: this . registrationId ;
clientRegistration . clientSettings = ( this . clientSettings = = null ) ? ClientSettings . builder ( ) . build ( )
clientRegistration . clientSettings = this . clientSettings ;
: this . clientSettings ;
return clientRegistration ;
return clientRegistration ;
}
}