Roach
12/19/2022, 2:52 PM@JvmStatic
when converting java file to kotlin?
this result occurs compile errorKevin Del Castillo
12/19/2022, 2:55 PM@JvmStatic
, I guess it's more of an optional step, or an edge case that hasn't been actually considered.
Said this you should always check the resulting Kotlin file for any inconsistency, as already mentioned transforming it is not perfect so there might be still things you'd like to change afterwards.Roach
12/19/2022, 3:13 PMJoffrey
12/19/2022, 3:15 PMobject
because everything in it was static. This makes it a singleton. Therefore the problem is not really in the missing @JvmStatic
but rather in the access on java side. Use Shortlists.INSTANCE.sorted(...)
insteadRoach
12/19/2022, 3:34 PM