Are there package level annotations for subpackages?

If I have a tree of such packages:

com.foo com.foo.bar com.foo.bar.baz 

and then add the package-info.java file to com.foo and add the annotation to the com.foo package, will the annotation also apply to child packages, com.foo.bar and com.foo.bar.baz (and so on)? Or do I need to do another package-info.java in each of them with the same annotations?

+5
source share

Source: https://habr.com/ru/post/1232539/


All Articles