I just got a null pointer waring because the use of Void in a generic callback function.
Let’s say I’m using AsyncTask<Void, Void, Void>
this would inherently be an error which is triggered when onPostExecute is executed since Void will always be null.
It would be great if a warning could be triggered when using Void without ? since this would always be an error, alternatively being able to drop the argument in the callbacks which are Void completely like
override fun onPostExecuteEx(dummy: Void?) {}
override fun onPostExecuteEx() {}
What do you think?
Also the automatic code converter should always add ? when converting java code to kotlin code for Void types