Explorar el Código

创建订单BUG修复

anderx hace 1 año
padre
commit
58eac52794
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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++;
         }