on 01-02-2015 10:21 AM
Dear Friends,
In the below code in java mapping I am getting a warning - Map is a raw type. "Map is a raw type. References to generic type Map<K,V> should be parameterized"
public void setParameter(Map param) { | |
if (param != null) { | |
Object o = param.get(StreamTransformationConstants.MAPPING_TRACE); | |
if (o != null && o instanceof MappingTrace) { | |
trace = (MappingTrace) o; | |
} | |
} | |
} |
Can anybody plz help me in correcting this code to remove this warning. I am using eclipse 4.3.
Thanks.
Sumeet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Summet,
Why don't you try to use the example code for setParameter?
Check the point 3 in Carlos Ivan Prieto Rubio's blog
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.