Skip to content

Commit

Permalink
Remove default title for Member
Browse files Browse the repository at this point in the history
The default title for the Member class was removed. Previously, the title for every new Member was implicitly set to 'LORD'. Now it would require an explicit setting. This change has been prompted to meet the scenario where not all members may have 'LORD' as title, which improves flexibility.
  • Loading branch information
kousen committed Oct 18, 2023
1 parent e25dd5d commit 87fc414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/got/Member.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

public class Member implements Comparable<Member> {
private Long id;
private Title title = Title.LORD;
private Title title;
private String name;
private LocalDate dob;
private double salary;
Expand Down

0 comments on commit 87fc414

Please sign in to comment.