Skip to content

Commit

Permalink
Removed the code smells by sonar code quality.
Browse files Browse the repository at this point in the history
Removed the code smells by sonar code quality.
  • Loading branch information
infstar committed Nov 28, 2023
1 parent 7be783f commit 50c1f18
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class CourseProcess {
private static final String QFRAL_STR = "QFRAL";
private static final String ZFRAL_STR = "ZFRAL";
private static final String IBFAS_STR = "IBFAS";
private static final String QFRAP_STR = "QFRAP";

private static final String ERR_MSG_FORMAT = "For {} : {}";

Expand Down Expand Up @@ -567,8 +568,8 @@ public void createCourseRequirements(ConversionCourseSummaryDTO summary) {
createCourseRequirement(populate(QFRAL_STR, "12", "915"), summary);

// QFRAP 12
createCourseRequirement(populate("QFRAP", "12", "910"), summary);
createCourseRequirement(populate("QFRAP", "12", "915"), summary);
createCourseRequirement(populate(QFRAP_STR, "12", "910"), summary);
createCourseRequirement(populate(QFRAP_STR, "12", "915"), summary);

// ZFRAL 12
createCourseRequirement(populate(ZFRAL_STR, "12", "819"), summary);
Expand Down Expand Up @@ -1137,20 +1138,20 @@ public void createCourseRequirements(ConversionCourseSummaryDTO summary) {
createCourseRequirement(populate("IDAKE", "11", "119"), summary);

// GRAD2-2402: Rule 200
createCourseRequirement(populate("QFRAP", "12", "200"), summary);
createCourseRequirement(populate(QFRAP_STR, "12", "200"), summary);
createCourseRequirement(populate("FCTF", "12", "200"), summary);
createCourseRequirement(populate("FRALP", "12", "200"), summary);
createCourseRequirement(populate(FRALP_STR, "12", "200"), summary);
// GRAD2-2402: Rule 201
createCourseRequirement(populate("ELNMF", "11", "201"), summary);
createCourseRequirement(populate("ELSLF", "11", "201"), summary);
createCourseRequirement(populate("EFLSF", "11", "201"), summary);
createCourseRequirement(populate("FRALP", "11", "201"), summary);
createCourseRequirement(populate(FRALP_STR, "11", "201"), summary);
// GRAD2-2402: Rule 202
createCourseRequirement(populate("QFRAP", "10", "202"), summary);
createCourseRequirement(populate(QFRAP_STR, "10", "202"), summary);
createCourseRequirement(populate("LANMF", "10", "202"), summary);
createCourseRequirement(populate("LAEOF", "10", "202"), summary);
createCourseRequirement(populate("LACWF", "10", "202"), summary);
createCourseRequirement(populate("FRALP", "10", "202"), summary);
createCourseRequirement(populate(FRALP_STR, "10", "202"), summary);
}

private CourseRequirement populate(String courseCode, String courseLevel, String courseRequirementCode) {
Expand Down

0 comments on commit 50c1f18

Please sign in to comment.