Fix null safety bugs, typo in public API, and add missing tests
- isPrimitive(Class<?>): add null check (was NPE)
- isEnum(Type): add isParameterized guard (was ClassCastException on ParameterizedType)
- isEnum(Class<?>): add null check (was NPE)
- isBoxed(Class<?>): add null check and guard getPackage() null (was NPE)
- hasNoArgsContrustor: rename to hasNoArgsConstructor (public API typo); add null
  and isParameterized guard to the Type overload (was ClassCastException/NPE)
- Add missing unit tests for isEnum, isBoxed(null), isPrimitive(null), and the
  new hasNoArgsConstructor null/parameterized cases (143 tests, all passing)
- README: fix getParameterizedType example, add isEnum and isBoxed sections,
  remove incorrectly documented private isEqual method, fix method name typo

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a8b02f4 commit c3af0d4a3bf0064aa1b295dcb30449956f1cbce9
@Alex Ljunggren Alex Ljunggren authored on 4 May
Showing 3 changed files
View
README.md
View
src/main/java/io/ljunggren/reflectionUtils/ReflectionUtils.java
View
src/test/java/io/ljunggren/reflectionUtils/ReflectionUtilsTest.java