File tree Expand file tree Collapse file tree
src/main/java/me/smartstore Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public void refresh() {
2727 initCustomerList ();
2828
2929 for (Customer customer : customerList ) {
30- if (customer .getGroup () == GroupType .General ) {
30+ if (customer .getGroup () == GroupType .GENERAL ) {
3131 classifiedByGeneral .add (customer );
3232 continue ;
3333 }
Original file line number Diff line number Diff line change 11package me .smartstore .group ;
22
33public enum GroupType {
4- General ,
4+ GENERAL ,
55 VIP ,
66 VVIP ;
77
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ public class Groups {
77 private static Groups instance ;
88
99 private Groups () {
10- groups .add (new Group (GroupType .General , new Parameter ()));
10+ groups .add (new Group (GroupType .GENERAL , new Parameter ()));
1111 groups .add (new Group (GroupType .VIP , new Parameter ()));
1212 groups .add (new Group (GroupType .VVIP , new Parameter ()));
1313 }
Original file line number Diff line number Diff line change 11package me .smartstore .menu ;
22
33import me .smartstore .collections .MyArrayList ;
4- import me .smartstore .customer .Customer ;
54import me .smartstore .group .Group ;
65import me .smartstore .group .GroupType ;
76import me .smartstore .group .Parameter ;
@@ -51,7 +50,7 @@ public void addData() {
5150
5251 private void printGroupSelectionMessage () {
5352 System .out .println ("다음 등급 중 하나를 선택해주세요." );
54- System .out .println ("1. General " );
53+ System .out .println ("1. GENERAL " );
5554 System .out .println ("2. VIP" );
5655 System .out .println ("3. VVIP" );
5756 System .out .println ("==============================" );
@@ -60,7 +59,7 @@ private void printGroupSelectionMessage() {
6059
6160 private GroupType groupNumberToGroupType (int groupNumber ) {
6261 if (groupNumber == 1 ) {
63- return GroupType .General ;
62+ return GroupType .GENERAL ;
6463 }
6564 if (groupNumber == 2 ) {
6665 return GroupType .VIP ;
You can’t perform that action at this time.
0 commit comments