Skip to content

Commit

Permalink
Fix: Hide constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
UO283615 committed Apr 24, 2024
1 parent 2a700fd commit 2d222ad
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
@Component
public class QuestionHelper {

private QuestionHelper(){} // To hide the implicit public constructor as this is static only

private static final int MAX_DISTRACTORS = 3;

public static List<Answer> getDistractors(AnswerRepository answerRepository, Question question){
Expand Down

0 comments on commit 2d222ad

Please sign in to comment.