Hi devs,
The current codestyle for wildcard type parameters is to use spaces
around it, as in:
List< ? >
Map< ? , ? >
Map<String, ? >
As opposed to specific parameters:
List<String>
List<T>
Map<String, String>
Map<T, T>
This might have a historical reason, when we defined the codestyle,
Eclipse couldn't make the difference between "?" as a wildcard type and
"?" as the ternary operator.
The standard Java, Eclipse, and IDEA style conventions don't use the
extra space.
Personally, I don't think that the wildcard needs the extra space, so +1
for this change.
--
Sergiu Dumitriu
http://purl.org/net/sergiu