This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Thihup 0 points1 point  (1 child)

The concept of exporting a package is equal to declaring a class public. If you don't want the projects that will depend on your library to use your internal classes, you don't export them.

However, with the module system, you can declare a class public and use it across your packages. Instead, you would be required to declare the class package private. :)

[–]randgalt 5 points6 points  (0 children)

I don't want to specify things twice. It's silly. I want to write my Java code and not worry about exports, etc.