anderx 1 год назад
Родитель
Сommit
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;
 		return 0;
 	}
 	}
 
 
-	private static Map<Integer, NoticeTypes> status = new HashMap<Integer, NoticeTypes>();
+	private static final Map<Integer, NoticeTypes> status = new HashMap<Integer, NoticeTypes>();
 
 
 	static {
 	static {
 		for (NoticeTypes value : NoticeTypes.values()) {
 		for (NoticeTypes value : NoticeTypes.values()) {
@@ -103,7 +103,7 @@ public enum NoticeTypes {
     }
     }
 
 
 	public static Integer getCount(){
 	public static Integer getCount(){
-		Integer count=0;
+		int count=0;
         for(NoticeTypes x:NoticeTypes.values()){
         for(NoticeTypes x:NoticeTypes.values()){
          if(x!=null)count++;
          if(x!=null)count++;
         }
         }