File tree Expand file tree Collapse file tree 5 files changed +10
-104
lines changed
checker-qual/src/main/java/org/checkerframework/checker/optional/qual Expand file tree Collapse file tree 5 files changed +10
-104
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import java .util .Optional ;
2
2
import org .checkerframework .checker .optional .qual .MaybePresent ;
3
- import org .checkerframework .checker .optional .qual .OptionalBottom ;
4
3
import org .checkerframework .checker .optional .qual .Present ;
5
4
6
5
/** Basic test of subtyping. */
7
6
public class SubtypeCheck {
8
7
9
8
@ SuppressWarnings ("optional.parameter" )
10
- void foo (
11
- @ MaybePresent Optional <String > mp ,
12
- @ Present Optional <String > p ,
13
- @ OptionalBottom Optional <String > ob ) {
9
+ void foo (@ MaybePresent Optional <String > mp , @ Present Optional <String > p ) {
14
10
@ MaybePresent Optional <String > mp2 = mp ;
15
11
@ MaybePresent Optional <String > mp3 = p ;
16
- @ MaybePresent Optional <String > mp4 = ob ;
17
12
// :: error: (assignment)
18
13
@ Present Optional <String > p2 = mp ;
19
14
@ Present Optional <String > p3 = p ;
20
- @ Present Optional <String > p4 = ob ;
21
- // :: error: (assignment)
22
- @ OptionalBottom Optional <String > ob2 = mp ;
23
- // :: error: (assignment)
24
- @ OptionalBottom Optional <String > ob3 = p ;
25
- @ OptionalBottom Optional <String > ob4 = ob ;
26
15
}
27
16
}
Original file line number Diff line number Diff line change 1
- Version 3.46.1 (September 3, 2024)
1
+ Version 3.47.0 (September 3, 2024)
2
2
-----------------------------
3
3
4
4
** User-visible changes:**
5
5
6
6
The Checker Framework runs under JDK 22 -- that is, it runs on a version 22 JVM.
7
7
The Checker Framework runs under JDK 23 -- that is, it runs on a version 23 JVM.
8
8
9
+ The Optional Checker no longer supports the ` @OptionalBottom ` annotation.
10
+
9
11
** Implementation details:**
10
12
13
+ Removed annotations:
14
+ * ` @OptionalBottom `
15
+
11
16
** Closed issues:**
12
17
13
18
Original file line number Diff line number Diff line change 78
78
\item [\refqualclass {checker/optional/qual}{Present}]
79
79
The annotated \< Optional> container definitely contains a (non-null) value.
80
80
81
- \item [\refqualclass {checker/optional/qual}{OptionalBottom}]
82
- The annotated expression evaluates to \< null> rather than to an \< Optional> container.
83
- Programmers rarely write this annotation.
84
-
85
81
\item [\refqualclass {checker/optional/qual}{PolyPresent}]
86
82
indicates qualifier polymorphism.
87
83
For a description of qualifier polymorphism, see
You can’t perform that action at this time.
0 commit comments