File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/java.base/share/classes/java/lang Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 3636import org .checkerframework .checker .signature .qual .ClassGetName ;
3737import org .checkerframework .checker .signature .qual .ClassGetSimpleName ;
3838import org .checkerframework .checker .signature .qual .DotSeparatedIdentifiers ;
39+ import org .checkerframework .checker .signedness .qual .Signed ;
3940import org .checkerframework .common .reflection .qual .ForName ;
4041import org .checkerframework .common .reflection .qual .GetConstructor ;
4142import org .checkerframework .common .reflection .qual .GetMethod ;
@@ -3947,7 +3948,7 @@ public Void run() {
39473948 */
39483949 @ SuppressWarnings ("unchecked" )
39493950 @ IntrinsicCandidate
3950- public @ PolyNull T cast (@ PolyNull Object obj ) {
3951+ public @ PolyNull @ Signed T cast (@ PolyNull Object obj ) {
39513952 if (obj != null && !isInstance (obj ))
39523953 throw new ClassCastException (cannotCastMsg (obj ));
39533954 return (T ) obj ;
You can’t perform that action at this time.
0 commit comments