Commit 019567b
committed
Refactor LB CIDR list comparison & rollback code
- Replace manual null-check comparison with Objects.equals for clarity and null safety
- Simplify CIDR list rollback to always restore backup value unconditionally
- Add JavaDoc for setCidrList method for improved documentation1 parent b59d525 commit 019567b
File tree
2 files changed
+7
-7
lines changed- engine/schema/src/main/java/com/cloud/network/dao
- server/src/main/java/com/cloud/network/lb
2 files changed
+7
-7
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
148 | 153 | | |
149 | 154 | | |
150 | 155 | | |
| |||
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2270 | 2270 | | |
2271 | 2271 | | |
2272 | 2272 | | |
2273 | | - | |
2274 | | - | |
2275 | | - | |
2276 | | - | |
| 2273 | + | |
2277 | 2274 | | |
2278 | 2275 | | |
2279 | 2276 | | |
| |||
2296 | 2293 | | |
2297 | 2294 | | |
2298 | 2295 | | |
2299 | | - | |
2300 | | - | |
2301 | | - | |
| 2296 | + | |
2302 | 2297 | | |
2303 | 2298 | | |
2304 | 2299 | | |
| |||
0 commit comments