Merge pull request #50083 from madmiraal/android-fix-raw-use

Fix raw use of parameterized Class
This commit is contained in:
Rémi Verschelde 2021-07-02 22:09:39 +02:00 committed by GitHub
commit aee59c3547
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,7 +136,7 @@ public abstract class GodotPlugin {
nativeRegisterSingleton(pluginName, pluginObject);
Set<Method> filteredMethods = new HashSet<>();
Class clazz = pluginObject.getClass();
Class<?> clazz = pluginObject.getClass();
Method[] methods = clazz.getDeclaredMethods();
for (Method method : methods) {
@ -157,8 +157,8 @@ public abstract class GodotPlugin {
for (Method method : filteredMethods) {
List<String> ptr = new ArrayList<>();
Class[] paramTypes = method.getParameterTypes();
for (Class c : paramTypes) {
Class<?>[] paramTypes = method.getParameterTypes();
for (Class<?> c : paramTypes) {
ptr.add(c.getName());
}