Skip to content

Commit

Permalink
[sytle] : 코드 리포맷팅
Browse files Browse the repository at this point in the history
  • Loading branch information
dudxo committed Aug 26, 2024
1 parent 70d3424 commit 6c23a86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ public static CreditType of(String input) {
.orElseThrow(IllegalArgumentException::new);
}

private boolean isEqual(String input) {
return input.equals(this.label);
}

public static CreditType fromDetail(String detail) {
return Arrays.stream(values())
.filter(type -> type.isDetailEqual(detail))
.findAny()
.orElseThrow(IllegalArgumentException::new);
}

private boolean isEqual(String input) {
return input.equals(this.label);
}

private boolean isDetailEqual(String input) {
return input.equals(this.detail);
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/dnd/gongmuin/member/domain/Member.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
@NoArgsConstructor(access = PROTECTED)
public class Member extends TimeBaseEntity {

@Column(name = "profile_image_no", nullable = false)
private final int profileImageNo = setRandomNumber();
@Id
@GeneratedValue(strategy = IDENTITY)
@Column(name = "member_id")
Expand All @@ -46,8 +48,6 @@ public class Member extends TimeBaseEntity {
private int credit;
@Column(name = "role", nullable = false)
private String role;
@Column(name = "profile_image_no", nullable = false)
private final int profileImageNo = setRandomNumber();

@Builder(access = PRIVATE)
private Member(String nickname, String socialName, JobGroup jobGroup, JobCategory jobCategory, String socialEmail,
Expand Down

0 comments on commit 6c23a86

Please sign in to comment.