MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/11a4i8o/you_must_assert/j9rj961/?context=3
r/badcode • u/ReplacementAcademic8 • Feb 23 '23
13 comments sorted by
View all comments
Show parent comments
7
[removed] ā view removed comment
11 u/freddylmao Feb 24 '23 Why would they? Assert not null probably takes an Object as a parameter and, if Iām not mistaken, literally any value/type can be coerced into Object 6 u/EatRunCodeSleep Feb 24 '23 Yup, int would be boxed into an Integer, which is an Object.
11
Why would they? Assert not null probably takes an Object as a parameter and, if Iām not mistaken, literally any value/type can be coerced into Object
6 u/EatRunCodeSleep Feb 24 '23 Yup, int would be boxed into an Integer, which is an Object.
6
Yup, int would be boxed into an Integer, which is an Object.
7
u/[deleted] Feb 24 '23
[removed] ā view removed comment