Skip to content

Commit

Permalink
Change class to record in RecordFieldSetMapperTests
Browse files Browse the repository at this point in the history
  • Loading branch information
fmbenhassine committed Apr 25, 2024
1 parent 7841258 commit 8a11339
Showing 1 changed file with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,26 +68,7 @@ void testMapFieldSetWhenFieldNamesAreNotSpecified() {
assertEquals("Field names must be specified", exception.getMessage());
}

public static class Person {

// TODO change to record in v5
private final int id;

private final String name;

public Person(int id, String name) {
this.id = id;
this.name = name;
}

public int id() {
return id;
}

public String name() {
return name;
}

record Person(int id, String name) {
}

}

0 comments on commit 8a11339

Please sign in to comment.