Similar issue:
private static <C extends InternationallyLabeled> String getProductCode( Map<C, String> map, C key ) {
return map.containsKey( key ) ? map.get( key ) : "NO_PROD_CODE";
}
“A “Map<C, String>” cannot contain a “C” in a “C” type.”
SonarQube 10.2.1