I have a `newInstance()` method inside a companion...
# android
a
I have a
newInstance()
method inside a companion object for a fragment. Can someone ELI5 the difference between just that and using the `@JvmStatic`annotation? If it helps the context, the newInstance method is called from a Java class. I used the annotation so I wouldn't have to change the Java code, but I'll be honest I don't truly understand why it matters. Is it different under the hood from having to do
MyFragment.Companion.newInstance()
?