-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Useless null check #5560
Copy link
Copy link
Closed
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
- I have checked the FAQ of this repository and believe that this is not a duplicate.
Environment
- Dubbo version: 2.7.6-snapshot
files:
dubbo/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java
Line 359 in a9a69ea
| if (methods != null && methods.length > 0) { |
dubbo/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java
Line 631 in a9a69ea
| if (portToBind == null || portToBind <= 0) { |
This check is useless, always is non-null.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.