Skip to content

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

@hzongsheng

Description

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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions