Fix raw use of parameterized Class
(cherry picked from commit d237f7d33d
)
This commit is contained in:
parent
01ecec451c
commit
c1abbfb605
1 changed files with 3 additions and 3 deletions
|
@ -135,7 +135,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) {
|
||||
|
@ -156,8 +156,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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue