concept readability in category java

This is an excerpt from Manning's book The Java Module System.
Whereas phrases like “customer requires bar” and “customer depends on bar” mirror a static, compile-time relationship between customer and bar, readability is its more dynamic, run-time counterpart. Why is it more dynamic? The
requiresdirective is the primal originator of reads edges, but it’s by no means the only one. Others are command-line options (see--add-readsin section 3.4.4) and the reflection API (see section 12.3.4), both of which can be used to add more; in the end, it’s irrelevant. Regardless of how reads edges come to be, their effects are always the same: they’re the basis for reliable configuration and accessibility (see section 3.3).
Figure 11.3 When exposing uses a
requires transitivedirective to depend on exposed, reading exposing implies readability of exposed. As a consequence, modules like depending (left) can read exposed even if they only require exposing.![]()
Listing 11.1 java.sql module descriptor: implies readability of java.xml and java.logging
$ java --describe-module java.sql > java.sql@9.0.4 > exports java.sql > exports javax.sql > exports javax.transaction.xa > requires java.base mandate > requires java.logging transitive #1 > requires java.xml transitive #1 > uses java.sql.Driver
The situation is similar to visibility modifiers. For convenience’s sake, it would be easy to make every class, every field, and every method public. We don’t do that, though, because we know that exposing less reduces the contact surface between different parts of the code and makes modification, replacement, and reuse easier. And like making a type or member public, exposing a dependency becomes part of that module’s public API, and clients may rely on the fact that readability is implied. This can make evolving the module and its dependencies more difficult, so it shouldn’t be undertaken lightly.