Skip to content

Commit 4d72fc8

Browse files
committed
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 <[email protected]>
1 parent bc8a649 commit 4d72fc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/androiddeployqt/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3905,7 +3905,7 @@ int generateJavaQmlComponents(const Options &options)
39053905
<< "public int connect%1(%2 signalListener) {\n"_L1.arg(
39063906
firstCharToUpper(signalInterfaceName), signalInterfaceName)
39073907
<< indent
3908-
<< " return connectSignalListener(\"%1\", new Class[]{ %2 }, signalListener);\n"_L1
3908+
<< " return connectSignalListener(\"%1\", new Class<?>[]{ %2 }, signalListener);\n"_L1
39093909
.arg(methodName, javaParamsClassesString)
39103910
<< indent << "}\n\n";
39113911
}

0 commit comments

Comments
 (0)