Skip to content

Commit 84ddd08

Browse files
committed
doc update
1 parent 5183ca7 commit 84ddd08

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ so package:
5050
* `moduleA.exportOnlyToB` will be exported only to `moduleB`
5151
* `moduleA.internal` is encapsulated & other modules don't have access
5252
to it. For example if you uncomment the line in `moduleB.TestB`:
53-
```
54-
// InternalA internalA; // no access
55-
```
56-
project will not compile.
53+
```
54+
// InternalA internalA; // no access
55+
```
56+
project will not compile.
5757
### moduleB
5858
```
5959
module moduleB {
@@ -73,7 +73,7 @@ so (we don't repeat keyword defined in previous step):
7373
* `moduleB` is reporting dependency on `moduleA`, what is more - every
7474
further module that will be requiring `moduleB` will get access to
7575
`moduleA` also.
76-
Note that we have to put `moduleA` also in `pom.xml` (without `pom.xml`
76+
* Note that we have to put `moduleA` also in `pom.xml` (without `pom.xml`
7777
we should add `moduleA` to `module-path` of `moduleB` otherwise project
7878
will not compile).
7979

@@ -102,15 +102,15 @@ so:
102102
`moduleB`) we have to also add it to `pom.xml` - if not, nothing more
103103
should be done.
104104
* note that if you uncomment the line in `moduleC.TestC`:
105-
```
106-
// ExportAOnlyToB exportAOnlyToB; // no access
107-
```
105+
```
106+
// ExportAOnlyToB exportAOnlyToB; // no access
107+
```
108108
project will not compile, so package `ExportAOnlyToB` was correctly
109109
exported only to `moduleB` (`moduleB.TestB`)
110110
* in `moduleC.TestC` we use transitive dependency on `moduleA`:
111-
```
112-
ExportA.export();
113-
```
111+
```
112+
ExportA.export();
113+
```
114114
____
115115
### reflection
116116
Module with only one simple class `Invoker` to invoker static methods:
@@ -153,8 +153,8 @@ the `Sources Root` (`src/main/java`)
153153
* Note that if we put file `moduleA.TestA` on the same level as
154154
`module-info.java` compilation will succedd, but running main method
155155
will result in `error`:
156-
```
157-
Error occurred during initialization of boot layer
158-
java.lang.module.FindException: Error reading module: path\moduleB\target\classes
159-
Caused by: java.lang.module.InvalidModuleDescriptorException: TestB.class found in top-level directory (unnamed package not allowed in module)
160-
```
156+
```
157+
Error occurred during initialization of boot layer
158+
java.lang.module.FindException: Error reading module: path\moduleB\target\classes
159+
Caused by: java.lang.module.InvalidModuleDescriptorException: TestB.class found in top-level directory (unnamed package not allowed in module)
160+
```

0 commit comments

Comments
 (0)