Skip to content

Commit

Permalink
Fix raw use of parameterized Class
Browse files Browse the repository at this point in the history
  • Loading branch information
madmiraal committed Jul 2, 2021
1 parent 6ef0b8f commit d237f7d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private static Map<String, SignalInfo> registerPluginWithGodotNative(Object plug
nativeRegisterSingleton(pluginName, pluginObject);

Set<Method> filteredMethods = new HashSet<>();
Class clazz = pluginObject.getClass();
Class<?> clazz = pluginObject.getClass();

Method[] methods = clazz.getDeclaredMethods();
for (Method method : methods) {
Expand All @@ -157,8 +157,8 @@ private static Map<String, SignalInfo> registerPluginWithGodotNative(Object plug
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());
}

Expand Down

0 comments on commit d237f7d

Please sign in to comment.