1. 10 4月, 2023 1 次提交
    • Nymph2333's avatar
      newInstance() 已弃用,使用clazz.getDeclaredConstructor().newInstance() · af0e0a11
      Nymph2333 提交于
      This method propagates any exception thrown by the nullary constructor, including a checked exception. Use of this method effectively bypasses the compile-time exception checking that would otherwise be performed by the compiler. The Constructor.newInstance method avoids this problem by wrapping any exception thrown by the constructor in a (checked) InvocationTargetException.
      The call
       clazz.newInstance()
      can be replaced by
       clazz.getDeclaredConstructor().newInstance()
      The latter sequence of calls is inferred to be able to throw the additional exception types InvocationTargetException and NoSuchMethodException. Both of these exception types are subclasses of ReflectiveOperationException.
      Signed-off-by: 's avatarNymph2333 <498092988@qq.com>
      af0e0a11
  2. 05 4月, 2023 7 次提交
  3. 04 4月, 2023 1 次提交
  4. 01 4月, 2023 1 次提交
  5. 30 3月, 2023 2 次提交
  6. 18 3月, 2023 3 次提交
  7. 17 3月, 2023 5 次提交
  8. 11 3月, 2023 3 次提交
  9. 10 3月, 2023 2 次提交
  10. 05 3月, 2023 1 次提交
  11. 28 2月, 2023 1 次提交
  12. 23 2月, 2023 1 次提交
  13. 22 2月, 2023 1 次提交
  14. 21 2月, 2023 4 次提交
  15. 20 2月, 2023 1 次提交
  16. 17 2月, 2023 1 次提交
  17. 16 2月, 2023 1 次提交
  18. 06 2月, 2023 1 次提交
  19. 04 2月, 2023 3 次提交