Java : The import collides with another import statement

后端 未结 3 836
面向向阳花
面向向阳花 2021-02-02 10:41

I have imported an Existing Java Application into my Workspace . I see that , a class with same name is present in different packages with in the Application.

For exampl

3条回答
  •  無奈伤痛
    2021-02-02 10:56

    You can use them explicitly without importing them, so the included package name differentiates between the two:

     //No imports required!
    public class Adapter
    {
         private com.tata.model.common.Status x;
         private com.bayer.frontlayer.dao.Status y;
    }
    

提交回复
热议问题