1. 30 Jun, 2023 1 commit
  2. 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
  3. 04 Feb, 2023 1 commit
  4. 01 Jan, 2023 1 commit
  5. 31 Oct, 2022 1 commit
  6. 30 Oct, 2022 1 commit
  7. 26 Sep, 2022 1 commit
  8. 23 Aug, 2022 1 commit
  9. 29 Jul, 2022 1 commit
  10. 27 Jun, 2022 1 commit
  11. 16 Apr, 2022 1 commit
  12. 01 Apr, 2022 1 commit
  13. 25 Feb, 2022 1 commit
  14. 22 Feb, 2022 1 commit
  15. 14 Jan, 2022 2 commits
  16. 11 Jan, 2022 1 commit
  17. 07 Jan, 2022 1 commit
  18. 06 Jan, 2022 1 commit
  19. 05 Jan, 2022 1 commit
  20. 30 Dec, 2021 1 commit
  21. 27 Dec, 2021 1 commit
  22. 13 Dec, 2021 1 commit
  23. 01 Dec, 2021 1 commit
  24. 22 Nov, 2021 1 commit
  25. 17 Nov, 2021 1 commit
  26. 16 Nov, 2021 1 commit
  27. 01 Nov, 2021 1 commit
  28. 13 Sep, 2021 1 commit
  29. 24 Aug, 2021 1 commit
  30. 19 Aug, 2021 1 commit
  31. 08 Aug, 2021 1 commit
  32. 30 Jul, 2021 1 commit
  33. 12 Jul, 2021 1 commit
  34. 15 Jun, 2021 1 commit
  35. 25 May, 2021 1 commit
  36. 24 May, 2021 1 commit
  37. 22 May, 2021 1 commit
  38. 22 Feb, 2021 1 commit
  39. 14 Dec, 2020 1 commit