Skip to content

Commit

Permalink
[type:refactor] Optimize code for shenyu-register-common (#5875)
Browse files Browse the repository at this point in the history
* [type:refactor] Optimize code for shenyu-register-common

* [type:refactor] Optimize code for shenyu-register-common

---------

Co-authored-by: aias00 <[email protected]>
  • Loading branch information
po-168 and Aias00 authored Jan 20, 2025
1 parent 6907654 commit 6929e09
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* The type Shenyu client config.
*/
public final class ShenyuClientConfig {

private Map<String, ClientPropertiesConfig> client = new HashMap<>() {
@Override
public ClientPropertiesConfig get(final Object key) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (Objects.isNull(o) || getClass() != o.getClass()) {
return false;
}
ApiDocRegisterDTO that = (ApiDocRegisterDTO) o;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (Objects.isNull(o) || getClass() != o.getClass()) {
return false;
}
MetaDataRegisterDTO that = (MetaDataRegisterDTO) o;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public boolean equals(final Object o) {
return Boolean.TRUE;
}

if (o == null || getClass() != o.getClass()) {
if (Objects.isNull(o) || getClass() != o.getClass()) {
return Boolean.FALSE;
}

Expand Down

0 comments on commit 6929e09

Please sign in to comment.