Press "Enter" to skip to content

{ 4Comprehension } Posts

Improving Java’s Visibility Modifiers with ArchUnit

Encapsulation and separation of internal components from public ones is probably one of the most underrated programming techniques when it comes to achieving long-lasting maintainability.

Luckily, Java features an underrated package-private visibility modifier which helps a lot in hiding unwanted implementation details. Unfortunately, if the number of internal classes is significant, it doesn’t scale well… luckily, ArchUnit is there for us.

Leave a Comment