Open ichttt opened 4 years ago
(Originally opened as https://github.com/MinecraftForge/ForgeGradle/issues/713 on the wrong repo) This is a very minor enchancement, but it should be pretty easy to implement
See InputMapping clinit:
MethodType methodtype = MethodType.methodType(Boolean.TYPE); MethodHandle methodhandle = null; int i = 0; try { methodhandle = lookup.findStatic(GLFW.class, "glfwRawMouseMotionSupported", methodtype); MethodHandle methodhandle1 = lookup.findStaticGetter(GLFW.class, "GLFW_RAW_MOUSE_MOTION", Integer.TYPE);
Integer.TYPE and Boolean.TYPE should be replaced with int.class and boolean.class respectively, as that's more easy to understand (the compiler converts any primitive .class call to the respective wrapper class .TYPE)
Integer.TYPE
Boolean.TYPE
int.class
boolean.class
.class
.TYPE
(Originally opened as https://github.com/MinecraftForge/ForgeGradle/issues/713 on the wrong repo) This is a very minor enchancement, but it should be pretty easy to implement
See InputMapping clinit:
Integer.TYPE
andBoolean.TYPE
should be replaced withint.class
andboolean.class
respectively, as that's more easy to understand (the compiler converts any primitive.class
call to the respective wrapper class.TYPE
)