I also use the second variant when I need Class<T> cls to be dynamic, for example if I use reflection but in all other cases I prefer the first one. Well I guess that's just a personal taste.
↧