mathew murphy
07/11/2019, 5:44 PMjava.lang.String
to String?
rather than String!
within a specified context, so that I get errors or warnings if I try to do (say) resultset.getString(2).trim()
?groostav
07/11/2019, 6:37 PMval resultSet: List<String?> = somejavaAPI.getResults()
solve your problem?
also, if the java API your getting your resultset
back from is one you control, then kotlin will respect JSR 305 annotations, so you can download a copy of JSR 305 and use the `Nullable`/`Nonnull` annotations, and the calling kotlin code will stop using the platform typemathew murphy
07/11/2019, 8:32 PMAlexey Belkov [JB]
07/12/2019, 7:59 AM