Skip to content

Commit 8717686

Browse files
jjohnstnmerks
authored andcommitted
Apply review suggestions
1 parent 43f3668 commit 8717686

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

news/4.39/jdt.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,12 @@ Javadoc pop‑up shown after activating the proposal
6868

6969
A new refactoring has been added: `Right-click` -> `Refactoring` -> `Convert Class to Record...`, which will convert an appropriate class into a record.
7070

71-
1. the class must have only one or more private instance field members that are all initialized in a single constructor by simple assignment and no static members.
72-
2. the class must have, at most, one getter method per instance field that simply returns the field value and no other methods.
71+
1. The class must have only one or more private instance field members that are all initialized in a single constructor by simple assignment and no static members.
72+
2. The class must have at most one getter method per instance field that simply returns the field value and no other methods.
7373
3. The class can only extend Object and cannot implement any interface.
7474

75-
The refactoring may note that the conversion is not possible or issue a warning before conversion: for example, if there is a field that does not have a getter, a warning will be issued that the field will be exposed via an accessor and the user may choose to continue or not.
75+
The refactoring may note that the conversion is not possible or issue a warning before conversion:
76+
for example, if there is a field that does not have a getter, a warning will be issued that the field will be exposed via an accessor and the user may choose to continue or not.
7677

7778
When the record is created, all references to the previous getters will be changed to call the appropriate record accessors.
7879

0 commit comments

Comments
 (0)