Bad practice to have two classes of the same name in different packages?

前端 未结 5 1597
Happy的楠姐
Happy的楠姐 2021-01-17 13:41

We have split our application so that package A handles data from one external source and package B from another. In both cases we need to create a domain object and have a

5条回答
  •  佛祖请我去吃肉
    2021-01-17 14:20

    Nothing wrong with that, since it's very unlikely you'll use both classes together in the same code. Duplicating the a/b distinction from the package in all class names would be worse.

提交回复
热议问题