cancel
Showing results for 
Search instead for 
Did you mean: 

How to add generic parameter for raw types in public Methods

Former Member
0 Kudos

Hi,

I have a method declared in Component Controller with the UI for adding methods.

I want to add a parameter of type HashMap<String,Object>. How can I do this in the UI?

I just geht HashMap, how do I add <String,Object>?

When I'm adding it direct in the Code, after Rebuilding the project it's again only HashMap.

Is there a way to add <String,Object> to the HashMap?

I want to get rid of the warning and don't wan't to supress the warning.

Best regards,

Peter

Accepted Solutions (1)

Accepted Solutions (1)

siarhei_pisarenka3
Active Contributor
0 Kudos

No way. Just use class casting from generic HashMap or Object.

BR, Siarhei

Former Member
0 Kudos

HI,

thanks for your answer.

Too bad that there is no other way.

Thanks.

Best regards,

Peter

Answers (0)