Commit 2f2fd3d
committed
retrospectively mark operations @Incubating
New API operations should generally be marked @Incubating,
especially when they occur on prominent interfaces like
Session, Query, or SessionFactory. These ones weren't.
(Sometimes we forget.) And there was a reason they should
have been: their signatures are not type safe, featuring
an unbound type parameter in the return type, even though
their type argument is reified internally. So a
RootGraph<Book> can masquerade as a RootGraph<Author>.
This is a big antipattern that I've been trying to
systematically root out throughout the whole codebase.1 parent 092f7d8 commit 2f2fd3d
File tree
2 files changed
+6
-1
lines changed- hibernate-core/src/main/java/org/hibernate
- graph
2 files changed
+6
-1
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
| 546 | + | |
546 | 547 | | |
547 | 548 | | |
548 | 549 | | |
| |||
560 | 561 | | |
561 | 562 | | |
562 | 563 | | |
| 564 | + | |
563 | 565 | | |
564 | 566 | | |
565 | 567 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| |||
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
120 | | - | |
| 122 | + | |
| 123 | + | |
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
| |||
0 commit comments