Преглед на файлове

Fix raw use of parameterized Class

Marcel Admiraal преди 4 години
родител
ревизия
d237f7d33d
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      platform/android/java/lib/src/org/godotengine/godot/plugin/GodotPlugin.java

+ 3 - 3
platform/android/java/lib/src/org/godotengine/godot/plugin/GodotPlugin.java

@@ -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());
 			}