JEP 494: Module Import Declarations (Second Preview)
🧠What is JEP 494?
JEP 494 introduces import module
declarations to improve readability and clarity when using services or static methods from other modules, particularly with requires static
in module-info.java
.
✅ Why it's useful?
Makes it obvious where a static method, class, or service comes from.
Improves clarity when reading large modular codebases.
Especially useful for service usage and static factory methods.
RUN:
PreviousJEP 492: Flexible Constructor Bodies (Third Preview)NextJEP 495: Simple Source Files and Instance Main Methods (Fourth Preview)
Last updated