Last active
March 12, 2020 15:39
-
-
Save cribetti/444999970425d0fe84ba5d5cb9097f98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@NonNull | |
public Fragment instantiate(@NonNull ClassLoader classLoader, @NonNull String className) { | |
try { | |
... | |
return cls.getConstructor().newInstance(); | |
} catch (java.lang.InstantiationException e) { | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment