0

I have this line of code

   Class c1 = Class.forName(BASE_PACKAGE_NAME + "." + appId + ".v" + version.replace(",", "") + NAME);

but I have the compilation Warning:

Raw use of parameterized class
Nunyet de Can Calçada
  • 4,171
  • 41
  • 153
  • 252

1 Answers1

1

You need to specify the generic type. You can use:

Class<?> c1 = Class.forName(...

to silence the warning.

Allen D. Ball
  • 1,636
  • 1
  • 6
  • 12