Providing Java library, but hiding some classes

后端 未结 6 1437
鱼传尺愫
鱼传尺愫 2020-12-15 08:32

I am developing an application in Java ME that I want to provide as a library. Is there no way to hide classes that I don\'t want everyone to use, but is essential still in

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-15 09:03

    You can make the classes package protected which only other classes in the same package can see. If this isn't feasible, then you can use ProGuard to mangle the classes and hide their implementations.

提交回复
热议问题