dengliming commented on a change in pull request #1875:
URL: https://github.com/apache/incubator-shenyu/pull/1875#discussion_r683515121
##########
File path:
shenyu-admin/src/main/java/org/apache/shenyu/admin/transfer/ConditionTransfer.java
##########
@@ -43,12 +44,11 @@
* @return the condition data
*/
public ConditionData mapToSelectorDO(final SelectorConditionDO
selectorConditionDO) {
- if (selectorConditionDO == null) {
+ if (Objects.isNull(selectorConditionDO)) {
Review comment:
Maybe Optional is better?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]