Jagdeep Singh
asked on
Type safety: Unchecked cast from Object to Map<String,String>
Getting "Type safety: Unchecked cast from Object to Map<String, String>" warning during the typecasting.
Could you guide me how I can resolve it?. Please check below-mentioned code:-
Map<String, String> columns = ((Map<String, String>) map.get("columns"));
Could you guide me how I can resolve it?. Please check below-mentioned code:-
Map<String, String> columns = ((Map<String, String>) map.get("columns"));
ASKER
Yes, it can help me.
-Thanks-
-Thanks-
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
If it's all right then your code will work without warnings or casting (renamed to 'things' to avoid confusion)
Open in new window