소스 검색

创建订单BUG修复

anderx 1 년 전
부모
커밋
58eac52794
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/com/goafanti/common/enums/NoticeTypes.java

+ 2 - 2
src/main/java/com/goafanti/common/enums/NoticeTypes.java

@@ -79,7 +79,7 @@ public enum NoticeTypes {
 		return 0;
 	}
 
-	private static Map<Integer, NoticeTypes> status = new HashMap<Integer, NoticeTypes>();
+	private static final Map<Integer, NoticeTypes> status = new HashMap<Integer, NoticeTypes>();
 
 	static {
 		for (NoticeTypes value : NoticeTypes.values()) {
@@ -103,7 +103,7 @@ public enum NoticeTypes {
     }
 
 	public static Integer getCount(){
-		Integer count=0;
+		int count=0;
         for(NoticeTypes x:NoticeTypes.values()){
          if(x!=null)count++;
         }