Why is code that returns a genericized Map generating a compiler warning when assigned to a generic Map?

后端 未结 2 1652
庸人自扰
庸人自扰 2021-01-23 21:32

I have a method with this signature:

   protected final Map buildOutputMappings(
                                 AbstractDataObject ado, M         


        
2条回答
  •  渐次进展
    2021-01-23 21:49

    I have a feeling that your actual return statement is not matching your returning the correct type as indicated by your method definition. I can't be sure because you don't have the code included.

提交回复
热议问题