Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

warning in java mapping

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.

Former Member
Not what you were looking for? View more on this topic or Ask a question