Skip to content

数组上调用toString() #185

Description

@QiAnXinCodeSafe

直接使用method拼接,默认调用toString方法
数组类中toString进行重写,仅仅是重载为类的静态方法。所以数组直接调用toString方法的结果并不是数组中元素的值,而是[数组的类型@内存地址哈希码]

throw new UnsupportedOperationException("不允许 method = " + parser.getMethod() + " 的请求调用远程函数 " + fb.getMethod() + " ! 必须满足 method 在 " + methods + "内 !");

可以手工拼接或者使用Java工具类Arrays中的toString方法转化数组为字符串。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions