Skip to content

Commit

Permalink
refactor: Converter static으로 변경 (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeonbinn committed Jan 24, 2024
1 parent f188510 commit 8e14bbf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@Component
public class ProblemConverter {

public ProblemDto convertToDto(BojProblem bojProblem) {
public static ProblemDto convertToDto(BojProblem bojProblem) {
if (bojProblem == null) {
return null;
}
Expand All @@ -23,7 +23,7 @@ public ProblemDto convertToDto(BojProblem bojProblem) {
.build();
}

public BojProblem convertToEntity(ProblemDto problemDto) {
public static BojProblem convertToEntity(ProblemDto problemDto) {
if (problemDto == null) {
return null;
}
Expand Down

0 comments on commit 8e14bbf

Please sign in to comment.