Commit fb4ddb0
committed
Make getters and setters null-safety consistent
This commit ensure that null-safety is consistent between
getters and setters in order to be able to provide beans
with properties with a common type when type safety is
taken in account like with Kotlin.
It also add a few missing property level @nullable
annotations.
Issue: SPR-157921 parent ff85726 commit fb4ddb0
File tree
201 files changed
+579
-489
lines changed- spring-aop/src/main/java/org/springframework/aop
- aspectj
- framework/autoproxy
- support
- spring-beans/src/main/java/org/springframework/beans
- factory
- config
- serviceloader
- support
- support
- spring-context-support/src/main/java/org/springframework
- cache
- ehcache
- jcache
- interceptor
- mail
- javamail
- spring-context/src/main/java/org/springframework
- cache/interceptor
- context/support
- ejb/access
- format/datetime
- joda
- standard
- jmx
- access
- export
- assembler
- metadata
- support
- jndi
- remoting/support
- scheduling/config
- validation
- spring-core/src/main/java/org/springframework
- core
- convert/support
- task
- util
- xml
- spring-jdbc/src/main/java/org/springframework/jdbc
- core
- metadata
- simple
- support
- datasource
- support
- spring-jms/src
- main/java/org/springframework/jms
- config
- connection
- core
- support
- listener
- adapter
- endpoint
- remoting
- support
- test/java/org/springframework/jms/listener
- spring-messaging/src/main/java/org/springframework/messaging
- converter
- core
- handler/invocation
- simp
- annotation/support
- broker
- config
- stomp
- user
- support
- spring-orm/src/main/java/org/springframework/orm
- hibernate5
- support
- jpa
- persistenceunit
- support
- vendor
- spring-oxm/src/main/java/org/springframework/oxm
- jaxb
- support
- spring-test/src/main/java/org/springframework
- mock/web
- test/web/servlet
- spring-tx/src/main/java/org/springframework
- jca
- cci
- connection
- core
- object
- endpoint
- transaction
- interceptor
- jta
- support
- spring-webflux/src/main/java/org/springframework/web/reactive
- config
- resource
- result
- method/annotation
- view
- freemarker
- spring-webmvc/src/main/java/org/springframework/web/servlet
- config/annotation
- handler
- i18n
- mvc
- method
- annotation
- resource
- support
- tags
- view
- freemarker
- json
- spring-websocket/src/main/java/org/springframework/web/socket
- client
- config/annotation
- messaging
- server/standard
- sockjs/client
- spring-web/src/main/java/org/springframework
- http
- codec
- converter
- json
- server/reactive
- remoting
- httpinvoker
- jaxws
- web
- bind
- support
- context
- support
- cors
- filter
- jsf
- server/i18n
- util
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
201 files changed
+579
-489
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/AbstractAutoProxyCreator.java
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
| 402 | + | |
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
| 413 | + | |
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
| 437 | + | |
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
| 448 | + | |
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | | - | |
| 473 | + | |
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
spring-beans/src/main/java/org/springframework/beans/factory/config/ConstructorArgumentValues.java
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
558 | | - | |
| 557 | + | |
| 558 | + | |
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
0 commit comments