Map<String, String> fieldAttributes = new HashMap<String, String>();
fieldAttributes.put("a", "48");
fieldAttributes.put("b", "");
fieldAttributes.put("c", "4224");
Now I need to cast Map<String, String> to Map<Object, Object>
How can I do this. I tried ? extends Object but not sure how to use it.
You can use
The compiler gives you an appropriate warning, but it compiles.