Skip to content

Commit

Permalink
style: 자바 컨벤션에 맞게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
fucct committed Feb 29, 2020
1 parent f6085be commit eefee76
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/main/java/lotto/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import lotto.domain.controller.LottoController;

public class Application {
public static void main(String[] args) {
new LottoController().run();
}
public static void main(String[] args) {
new LottoController().run();
}
}
4 changes: 2 additions & 2 deletions src/main/java/lotto/domain/LottoCount.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ private void validate(String ManualLotto) {
StringUtil.checkRange(ManualLotto);
}

private void validateMoney(String input, int totalLotto) {
if (totalLotto < Integer.parseInt(input)) {
private void validateMoney(String ManualLotto, int totalLotto) {
if (totalLotto < Integer.parseInt(ManualLotto)) {
throw new ExceedMoneyException(totalLotto + "장 이하만 구매가 가능합니다.");
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/lotto/domain/result/Rank.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public enum Rank {
}

public static Rank getRank(int numberOfMatch, boolean isBonus) {
return Arrays.stream(values())
return Arrays.stream(values())
.filter(rank -> rank.matchingNumbers == numberOfMatch)
.filter(rank->rank.checkBonus(isBonus))
.filter(rank -> rank.checkBonus(isBonus))
.findFirst()
.orElse(DEFAULT);
}
Expand All @@ -47,8 +47,8 @@ public boolean checkBonus(boolean isBonus) {
return true;
}

public boolean isBonus(){
if(this==BONUS){
public boolean isBonus() {
if (this == BONUS) {
return true;
}
return false;
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/lotto/util/StringUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ public class StringUtil {
public static final String NO_BLANK = "";
public static final String DELIMITER = ",";

public static String removeBlank(String value) {
return value.replaceAll(BLANK, NO_BLANK);
public static String removeBlank(String input) {
return input.replaceAll(BLANK, NO_BLANK);
}

public static List<String> parseByComma(String value) {
return Arrays.asList(value.split(DELIMITER));
public static List<String> parseByComma(String input) {
return Arrays.asList(input.split(DELIMITER));
}

public static void checkBlank(String input) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/lotto/view/OutputView.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

public class OutputView {
public static void printPieces(int manualCount, int autoCount) {
System.out.println("수동으로 " +manualCount+ "장, 자동으로 "+autoCount+"개를 구매했습니다.");
System.out.println("수동으로 " + manualCount + "장, 자동으로 " + autoCount + "개를 구매했습니다.");
}

public static void printLottos(Lottos lottos) {
Expand Down

0 comments on commit eefee76

Please sign in to comment.