Android: avoid warning about Class rawtype usage

warning: [rawtypes] found raw type: Class
 return connectSignalListener("onParameterisedFunction", new Class[]{
Integer.class, Double.class, Double.class, String.class, Boolean.class
}, signalListener);
   ^

Change-Id: I40f53048c294903dc2a56346a470ff2b429c50ba
Reviewed-by: Soheil Armin <soheil.armin@qt.io>
This commit is contained in:
Assam Boudjelthia 2025-08-29 18:37:50 +03:00
parent bc8a649c38
commit 4d72fc89c8
1 changed files with 1 additions and 1 deletions

View File

@ -3905,7 +3905,7 @@ int generateJavaQmlComponents(const Options &options)
<< "public int connect%1(%2 signalListener) {\n"_L1.arg(
firstCharToUpper(signalInterfaceName), signalInterfaceName)
<< indent
<< " return connectSignalListener(\"%1\", new Class[]{ %2 }, signalListener);\n"_L1
<< " return connectSignalListener(\"%1\", new Class<?>[]{ %2 }, signalListener);\n"_L1
.arg(methodName, javaParamsClassesString)
<< indent << "}\n\n";
}