@@ -105,6 +105,7 @@ public final class PostgresqlConnectionConfiguration {
105
105
106
106
private final Map <String , String > options ;
107
107
108
+ @ Nullable
108
109
private final Publisher <CharSequence > password ;
109
110
110
111
private final boolean preferAttachedBuffers ;
@@ -127,16 +128,12 @@ public final class PostgresqlConnectionConfiguration {
127
128
128
129
private final Publisher <String > username ;
129
130
130
- private PostgresqlConnectionConfiguration (String applicationName , boolean autodetectExtensions , @ Nullable boolean compatibilityMode , @ Nullable Duration connectTimeout , @ Nullable String database ,
131
- LogLevel errorResponseLogLevel ,
132
- List <Extension > extensions , ToIntFunction <String > fetchSize , boolean forceBinary , @ Nullable Duration lockWaitTimeout ,
133
- @ Nullable LoopResources loopResources ,
134
- @ Nullable MultiHostConfiguration multiHostConfiguration ,
135
- LogLevel noticeLogLevel , @ Nullable Map <String , String > options , Publisher <CharSequence > password , boolean preferAttachedBuffers ,
136
- int preparedStatementCacheQueries , @ Nullable String schema ,
137
- @ Nullable SingleHostConfiguration singleHostConfiguration , SSLConfig sslConfig , @ Nullable Duration statementTimeout ,
138
- boolean tcpKeepAlive , boolean tcpNoDelay , TimeZone timeZone ,
139
- Publisher <String > username ) {
131
+ private PostgresqlConnectionConfiguration (String applicationName , boolean autodetectExtensions , @ Nullable boolean compatibilityMode , @ Nullable Duration connectTimeout , @ Nullable String database
132
+ , LogLevel errorResponseLogLevel , List <Extension > extensions , ToIntFunction <String > fetchSize , boolean forceBinary , @ Nullable Duration lockWaitTimeout ,
133
+ @ Nullable LoopResources loopResources , @ Nullable MultiHostConfiguration multiHostConfiguration , LogLevel noticeLogLevel ,
134
+ @ Nullable Map <String , String > options , @ Nullable Publisher <CharSequence > password , boolean preferAttachedBuffers , int preparedStatementCacheQueries ,
135
+ @ Nullable String schema , @ Nullable SingleHostConfiguration singleHostConfiguration , SSLConfig sslConfig , @ Nullable Duration statementTimeout ,
136
+ boolean tcpKeepAlive , boolean tcpNoDelay , TimeZone timeZone , Publisher <String > username ) {
140
137
this .applicationName = Assert .requireNonNull (applicationName , "applicationName must not be null" );
141
138
this .autodetectExtensions = autodetectExtensions ;
142
139
this .compatibilityMode = compatibilityMode ;
@@ -264,7 +261,7 @@ Map<String, String> getOptions() {
264
261
}
265
262
266
263
Publisher <CharSequence > getPassword () {
267
- return this .password ;
264
+ return this .password == null ? Mono . empty () : this . password ;
268
265
}
269
266
270
267
boolean isPreferAttachedBuffers () {
0 commit comments