Commit 1c544a0
Starting a thread in a constructor can expose a partially constructed
object. Extract the thread start into a separate start() method that
callers invoke after construction completes.
Co-authored-by: Artur Signell <artur@vaadin.com>
Co-authored-by: Marco Collovati <marco@vaadin.com>
1 parent e1163e9 commit 1c544a0
File tree
3 files changed
+6
-1
lines changed- vaadin-dev-server/src
- main/java/com/vaadin/base/devserver
- test/java/com/vaadin/base/devserver
3 files changed
+6
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| |||
0 commit comments