Fix raw use of parameterized Class
This commit is contained in:
parent
6ef0b8fcd3
commit
d237f7d33d
@ -136,7 +136,7 @@ public abstract class GodotPlugin {
|
|||||||
nativeRegisterSingleton(pluginName, pluginObject);
|
nativeRegisterSingleton(pluginName, pluginObject);
|
||||||
|
|
||||||
Set<Method> filteredMethods = new HashSet<>();
|
Set<Method> filteredMethods = new HashSet<>();
|
||||||
Class clazz = pluginObject.getClass();
|
Class<?> clazz = pluginObject.getClass();
|
||||||
|
|
||||||
Method[] methods = clazz.getDeclaredMethods();
|
Method[] methods = clazz.getDeclaredMethods();
|
||||||
for (Method method : methods) {
|
for (Method method : methods) {
|
||||||
@ -157,8 +157,8 @@ public abstract class GodotPlugin {
|
|||||||
for (Method method : filteredMethods) {
|
for (Method method : filteredMethods) {
|
||||||
List<String> ptr = new ArrayList<>();
|
List<String> ptr = new ArrayList<>();
|
||||||
|
|
||||||
Class[] paramTypes = method.getParameterTypes();
|
Class<?>[] paramTypes = method.getParameterTypes();
|
||||||
for (Class c : paramTypes) {
|
for (Class<?> c : paramTypes) {
|
||||||
ptr.add(c.getName());
|
ptr.add(c.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user