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
Nuñito Calzada
  • 4,394
  • 47
  • 174
  • 301

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,916
  • 1
  • 9
  • 16