Replaced getDeclaredConstructor with constructors

This commit is contained in:
Pazaz 2022-04-28 02:41:20 -04:00
parent fd3572f709
commit 37883b9f35
7 changed files with 7 additions and 19 deletions

View file

@ -11,7 +11,7 @@ public abstract class Timer {
@OriginalMember(owner = "client!fi", name = "a", descriptor = "(B)Lclient!s;")
public static Timer create() {
try {
return (Timer) Class.forName("rt4.NanoTimer").getDeclaredConstructor().newInstance();
return new NanoTimer();
} catch (@Pc(15) Throwable ex) {
return new MillisTimer();
}