How to remove type safety markers for following "Map" in Java usingEclipse?
Map<String, String> errorStatus = exchange.getIn().getHeader("totalCount", Map.class);
It prints following message.
The Expression of type map needs unchecked conversion to confirm to Map<String,String>
UPDATE:
getIn() and getHeader are inbuilt Camel Method. In a route, i have setHeader("headerkey",mapOfErrors) and when i need this error key further i am just fetching it from Camel Message using those functions.
Following are available parameters of getHeader():