I have the following code
protected <TProperty> TProperty getPropertyFromConfig(SubConfiguration cfg,
String property, TProperty defaultValue, Class<TProperty> clazz)
Which seems readable, but Sonar warns about generic name:
Rename this generic name to match the regular expression '^[A-Z][0-9]?$'
But the description statement is about using a single letter
Following the established convention of single-letter type parameter names helps users and maintainers
So it allows also a digit:
protected <T1> TProperty getPropertyFromConfig(SubConfiguration cfg,
String property, T1 defaultValue, Class<T1> clazz)
Should it allows generic type name with digits?
EDIT
The duplicate questions/answers doesn't refer to adding digit to generic name