Skip to content

Commit 344bdb5

Browse files
jjohnstnakurtakov
authored andcommitted
Make fixes based on PR suggestions.
1 parent 7fc85cd commit 344bdb5

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

news/4.38/jdt.md

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,18 @@ See also:
6161

6262
Java 25 has added the ability to use `import module` to specify access to all
6363
classes of packages exported directly or via a transitive required module
64-
statement for the specified module name. For the newly offered implicitly
65-
declared class, an `import module java.base;` statement is already implied.
66-
To use an `import module` statement, the module must either be specified
67-
as a required module in `module-info.java` or else be `java.base`.
64+
statement for the specified module name.
65+
For the newly offered implicitly declared class, an `import module java.base;`
66+
statement is already implied.
67+
To use an `import module` statement, the module name must either be specified
68+
as a required module in `module-info.java` (if it exists) or else be `java.base`.
6869

6970
#### Organize Imports
7071

71-
The organize imports operation has been enhanced to support recognizing an
72+
The `Organize Imports` operation has been enhanced to support recognizing an
7273
`import module` statement and to remove extraneous imports for classes
73-
already included by the module. It will leave imports that are required either
74+
already included by the module.
75+
It will leave imports that are required either
7476
because they are not part of the exported module classes or they are found
7577
in more than one package for the modules imported or they are static imports.
7678

@@ -85,14 +87,15 @@ becomes:
8587
#### New Use Import Module Clean-up
8688

8789
A new clean-up has been added for Java 25 to convert an existing Java class
88-
to use `import module` to replace various import statements. The modules
89-
chosen are from the list of required modules in the `module-info.java` file
90-
or the default `java.base`. This differs from <b>Organize Imports</b> in that
90+
to use `import module` to replace various import statements.
91+
The modules chosen are from the list of required modules in the
92+
`module-info.java` file (if it exists) or the default `java.base`.
93+
This differs from `Organize Imports` in that
9194
the organize imports operation does not add `import module` statements
9295
if they weren't present before.
9396

94-
To use the new clean-up, go to <b>Source → Clean Up... → Configure</b> and
95-
on the <b>Java Features tab</b> choose <b>Java 25 → Use Import Module</b>.
97+
To use the new clean-up, go to `Source → Clean Up... → Configure` and
98+
on the `Java Features tab` choose `Java 25 → Use Import Module`.
9699

97100
For example:
98101

@@ -109,18 +112,19 @@ is changed to:
109112
- [Jeff Johnston](https://github.com/jjohnstn)
110113
</details>
111114

112-
As of Java 23, Javadoc comments can be specified in markdown format. There
113-
are various clean-ups, quick-assists, and code actions where a Javadoc
115+
As of Java 23, Javadoc comments can be specified in markdown format.
116+
There are various clean-ups, quick-assists, and code actions where a Javadoc
114117
comment is added on behalf of the end-user and these are created using
115-
the templates found in the <b>Code Templates</b> dialog in <b>Preferences</b>.
118+
the templates found in the `Code Templates` dialog in `Preferences`.
116119
For example, adding new getters/setters has an option to add comments and
117120
this will add Javadoc comments to the new methods.
118121

119-
A new category: <b>Markdown Comments</b> has been added to the dialog as well
120-
as a new option: <b>Use markdown comments where available</b>. When the option
121-
is enabled and the level of Java is 23 or above, then new Javadoc comments
122-
added on behalf of the end-user will use the new markdown templates. As with
123-
regular comment templates, these can be edited in the dialog and saved.
122+
A new category: `Markdown Comments` has been added to the dialog as well
123+
as a new option: `Use markdown comments where available`.
124+
When the option is enabled and the level of Java is 23 or above, new
125+
Javadoc comments added on behalf of the end-user will use the new markdown
126+
templates.
127+
As with regular comment templates, these can be edited in the dialog and saved.
124128

125129
![Code Templates Dialog](images/markdown-comments-templates.png)
126130

@@ -135,13 +139,15 @@ regular comment templates, these can be edited in the dialog and saved.
135139
</details>
136140

137141
The Open Type dialog has been enhanced to default wild-card characters between
138-
camel-case segments. If the string is entirely upper-case such as `OOME`, no
142+
camel-case segments.
143+
If the string is entirely upper-case such as `OOME`, no
139144
wild-cards will be defaulted and the prior camel-case search logic will occur.
140145
The new logic will prioritize class names in the sort that start with the
141146
most characters of the original string.
142147

143148
For example, specifying `OutMemory` will find `OutOfMemoryError` whereas
144-
it did not before. If there is a class called `OutMemoryAdapter`, it
149+
it did not before.
150+
If there is a class called `OutMemoryAdapter`, it
145151
will appear ahead of `OutOfMemoryError` in the result list.
146152

147153
---

0 commit comments

Comments
 (0)