Skip to content

Commit

Permalink
fix connectparam and hascollection param databaseName can be null. (#659
Browse files Browse the repository at this point in the history
)

Signed-off-by: “yelusion” <[email protected]>
  • Loading branch information
yelusion2 authored Oct 16, 2023
1 parent 75629f0 commit b588b6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/io/milvus/param/ConnectParam.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public Builder withPort(int port) {
* @param databaseName databaseName
* @return <code>Builder</code>
*/
public Builder withDatabaseName(@NonNull String databaseName) {
public Builder withDatabaseName(String databaseName) {
this.databaseName = databaseName;
return this;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/milvus/param/MultiConnectParam.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public Builder withPort(int port) {
* @param databaseName databaseName
* @return <code>Builder</code>
*/
public Builder withDatabaseName(@NonNull String databaseName) {
public Builder withDatabaseName(String databaseName) {
super.withDatabaseName(databaseName);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ private Builder() {
}

/**
* Sets the database name. Database name can be empty.
* Sets the database name.
*
* @param databaseName database name
* @return <code>Builder</code>
*/
public Builder withDatabaseName(@NonNull String databaseName) {
public Builder withDatabaseName(String databaseName) {
this.databaseName = databaseName;
return this;
}
Expand Down

0 comments on commit b588b6d

Please sign in to comment.