diff --git a/src/main/java/com/mju/capstone/member/service/calculator/FemaleCalculator.java b/src/main/java/com/mju/capstone/member/service/calculator/FemaleCalculator.java index faada9e..2624cd3 100644 --- a/src/main/java/com/mju/capstone/member/service/calculator/FemaleCalculator.java +++ b/src/main/java/com/mju/capstone/member/service/calculator/FemaleCalculator.java @@ -12,14 +12,14 @@ public class FemaleCalculator implements CalorieCalculator { private static final double COEFFICIENT_1 = 6.91; private static final double COEFFICIENT_2 = 9.36; private static final double COEFFICIENT_3 = 726; - private static double[] pa = {0, 1.0, 1.12, 1.27}; - private static int[] dietKcal = {0, -1000, -500, 0, 500, 1000}; - - private int weight; - private int age; - private double height; - private int level; - private int dietPlan; + private static final double[] pa = {0, 1.0, 1.12, 1.27}; + private static final int[] dietKcal = {0, -1000, -500, 0, 500, 1000}; + + private final int weight; + private final int age; + private final double height; + private final int level; + private final int dietPlan; @Builder public FemaleCalculator(int weight, int birth, int height, int level, int dietPlan) { diff --git a/src/main/java/com/mju/capstone/member/service/calculator/MaleCalculator.java b/src/main/java/com/mju/capstone/member/service/calculator/MaleCalculator.java index 924b8af..c405e5b 100644 --- a/src/main/java/com/mju/capstone/member/service/calculator/MaleCalculator.java +++ b/src/main/java/com/mju/capstone/member/service/calculator/MaleCalculator.java @@ -12,14 +12,14 @@ public class MaleCalculator implements CalorieCalculator { private static final double COEFFICIENT_1 = 9.53; private static final double COEFFICIENT_2 = 15.91; private static final double COEFFICIENT_3 = 539.6; - private static double[] pa = {0, 1.0, 1.13, 1.26}; - private static int[] dietKcal = {0, -1000, -500, 0, 500, 1000}; - - private int weight; - private int age; - private double height; - private int level; - private int dietPlan; + private static final double[] pa = {0, 1.0, 1.13, 1.26}; + private static final int[] dietKcal = {0, -1000, -500, 0, 500, 1000}; + + private final int weight; + private final int age; + private final double height; + private final int level; + private final int dietPlan; @Builder public MaleCalculator(int weight, int birth, int height, int level, int dietPlan) {