JavaSdk icon indicating copy to clipboard operation
JavaSdk copied to clipboard

PushResponseCode valueOf(String value)方法错误将value转换成了Integer

Open hzongsheng opened this issue 5 months ago • 0 comments

public static PushResponseCode valueOf(String value) {
      return (PushResponseCode) intPushResponseCodeMap.get(Integer.valueOf(value));
  }

这里错误将 value 转换为了 Integer,但是 intPushResponseCodeMapkeyString。所以这个方法一直都会获取到 null

private static HashMap<String, PushResponseCode> intPushResponseCodeMap = createIntegerPushResponseCodeMapping();

hzongsheng avatar Aug 13 '25 11:08 hzongsheng