Commit 64cd753
authored
[improve][bk] Improve getIsolationGroup by avoid creating arrayList (apache#20952)
### Motivation
Minor improve `getIsolationGroup` by avoid creating arrayList. And it' beneficial to GC
### Modifications
`new HashSet<>(Arrays.asList(...))` -> `Sets.newHashSet(...)`1 parent d9538ea commit 64cd753
File tree
1 file changed
+3
-3
lines changed- pulsar-broker-common/src/main/java/org/apache/pulsar/bookie/rackawareness
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | | - | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
0 commit comments