1. 10 Apr, 2023 1 commit
    • Nymph2333's avatar
      newInstance() 已弃用,使用clazz.getDeclaredConstructor().newInstance() · af0e0a11
      Nymph2333 authored
      
      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: default avatarNymph2333 <498092988@qq.com>
      af0e0a11
  2. 05 Apr, 2023 7 commits
  3. 04 Apr, 2023 1 commit
  4. 01 Apr, 2023 1 commit
  5. 30 Mar, 2023 2 commits
  6. 18 Mar, 2023 3 commits
  7. 17 Mar, 2023 5 commits
  8. 11 Mar, 2023 3 commits
  9. 10 Mar, 2023 2 commits
  10. 05 Mar, 2023 1 commit
  11. 28 Feb, 2023 1 commit
  12. 23 Feb, 2023 1 commit
  13. 22 Feb, 2023 1 commit
  14. 21 Feb, 2023 4 commits
  15. 20 Feb, 2023 1 commit
  16. 17 Feb, 2023 1 commit
  17. 16 Feb, 2023 1 commit
  18. 06 Feb, 2023 1 commit
  19. 04 Feb, 2023 3 commits